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

wget http://192.168.1.35/f12/images/pxeboot/vmlinuz
wget http://192.168.1.35/f12/images/pxeboot/initrd.img

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

<domain type='xen'>
<name>VMF12</name>
<os>
<type>linux</type>
<kernel>/export/home/boris/fedora12/vmlinuz</kernel>
<initrd>/export/home/boris/fedora12/initrd.img</initrd>
</os>
<memory>1048576</memory>
<vcpu>1</vcpu>
<devices>
<disk type='block' device='disk'>
<driver name='phy' type='zvol'/>
<source dev='/tank01/disk1'/>
<target dev='xvda' bus='xen'/>
</disk>
<interface type='bridge'>
<source bridge='rge0'/>
<mac address='00:16:36:43:2a:72'/>
</interface>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='-1' keymap='en-us'/>
</devices>
</domain>

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 f12.py
name="VMF12"
memory=2048
disk = ['phy:/dev/zvol/dsk/tank01/disk1,xvda,w' ]
vif = [ ' ' ]
vfb = [ 'type=vnc,vncunused=1']
bootloader = "/usr/lib/xen/bin/pygrub"
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'

At runtime :-

# virsh dumpxml VMF12 > VMF12.xml

Shutdown DomU and issue

# virsh define VMF12.xml