Wednesday, November 11, 2009

Setup Fedora 12 RC3 PV DomU at xVM 3.3.2 Dom0 OpenSolalris 1002-126

Setup xvm per Sun the most recent instructions. As appears latter Virt-Manager is broken in 126 ( vs 124), but this is not the worst thing supposed to happen. Virt-install rejects to install Fedora12 PV DomU which is not yet in the dictionary in meantime. XML startup file for f12 allows to avoid this restriction mostly connected i believe with xVM version unable to handle ext4 FS for boot partition of Linux DomU

$ pfexec pkg install xvm-gui
$ pfexec svcadm enable milestone/xvm
$ pfexec reboot

Reboot to Xen environment
Setup local Apache:-

pkg install SUNWapch22
svccfg -v import /var/svc/manifest/network/http-apache22.xml
svcadm enable svc:/network/http:apache22

Create local HTTP source:-

mkdir /var/apache2/2.2/htdocs/f12
lofiadm -a /export/home/boris/f12.iso
mount -o ro -F hsfs /dev/lofi/1 /var/apache2/2.2/htdocs/f12

Download vmlinuz and inittrd.img


Create f12.xml virsh installation profile , virt-install will detect f12
distro and reject to run

<domain type='xen'>
<disk type='block' device='disk'>
<driver name='phy' type='zvol'/>
<source dev='/tank01/disk1'/>
<target dev='xvda' bus='xen'/>
<interface type='bridge'>
<source bridge='rge0'/>
<mac address='00:16:36:43:2a:72'/>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='-1' keymap='en-us'/>

Start installer as follows:-
# virsh create f12.xml

During install i've changed type of FS for /boot to ext3fs due to Xen version on OSOL-1002-126

root@opensolaris:/export/home/boris/fedora12# cat
disk = ['phy:/dev/zvol/dsk/tank01/disk1,xvda,w' ]
vif = [ ' ' ]
vfb = [ 'type=vnc,vncunused=1']
bootloader = "/usr/lib/xen/bin/pygrub"
on_reboot = 'restart'
on_crash = 'restart'

At runtime :-

# virsh dumpxml VMF12 > VMF12.xml

Shutdown DomU and issue

# virsh define VMF12.xml