Archive for October, 2010

Xen 64 bit HVM strangeness

Don’t know if I mis-installed something, but trying to create a 64 bit HVM causes a libvirt error when using Virtual Manager to create a new VM. Namely that the device module “/usr/lib64/xen/bin/qemu-dm” isn’t found. But, qemu-dm exists in “/usr/lib/xen/bin”. So a cp /usr/lib/xen/bin/* /usr/lib64/xen/bin/ later, my OpenIndiana system boots, albeit running as 32bit, not 64bit.

But where I’m only giving it 2GB of RAM, not too significant.

No Comments

Content of Kickstart install file

install
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp --hostname helium
rootpw --iscrypted longstringofcharacters firewall --service=ssh
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
selinux --permissive
timezone --utc Asia/Singapore
bootloader --location=mbr --driveorder=xvda --append=" LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us console=hvc0"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --drives=xvda --initlabel
zerombr yes
part /boot --fstype=ext3 --size=500 --asprimary
part pv.01 --grow --size=1

volgroup vg_helium --pesize=4096 pv.01
logvol / --fstype=ext4 --name=lv_root --vgname=vg_helium --grow --size=1024
logvol swap --name=lv_swap --vgname=vg_helium --size=512

user --name=username --password=sha512edstring  --iscrypted --groups=wheel
vnc

%packages
@base
@core
@editors
@online-docs
@system-tools
@text-internet
@web-server
@smb-server
gpgme
gnupg2
vbetool
radeontool
ntpdate
-pam_ccreds
-pam_smb
-pam_pkcs11
-ftp
-pam_krb5
-microcode_ctl
-coolkey
-pcmciautils
-irda-utils
-pam_passwdqc
-zsh
-openconnect
-zisofs-tools
-NetworkManager-openconnect
-openvpn
-jigdo
-NetworkManager-openvpn
-vpnc
-NetworkManager-vpnc
-ipsec-tools
-openldap-clients
-bittorrent
-fetchmail
-slrn
-cadaver
-fpaste
-mutt
%end

%post

# Setup password-less ssh logins for user 'kyl191'
mkdir /home/kyl191/.ssh
touch /home/kyl191/.ssh/authorized_keys
echo authorizedkeydetails > /home/kyl191/.ssh/authorized_keys

# Set screen options globally
echo "vbell off
startup_message off
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%d/%m %{G}%C%A]'
termcapinfo xterm|xterms|xs|rxvt ti@:te@" >> /etc/screenrc

# Allow people in group 'wheel' access to sudo
echo "# Added by Kickstart install options
%wheel ALL=(ALL) ALL" >> /etc/sudoers

# disable & enable a few services
# note: have to do a clean install and remove packages which we don't want in the final install
# So the services which will be disabled may disappear.
chkconfig --levels=35 ntpd on
chkconfig avahi-daemon off
chkconfig cpuspeed off
chkconfig netfs off
chkconfig nfslock off
chkconfig pcscd off
chkconfig sendmail off


%end

No Comments