Setup Fedora 12 RC3 PV DomU at xVM 3.3.2 Dom0 OpenSolaris 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 via command :

# virsh create f12-pv-install.xml

I believe mentioned restriction is mostly connected with xVM version 3.3.2 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-pv-install.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-pv-install.xml
During install i’ve changed type of FS for /boot to ext3fs due to Xen version on OSOL-1002-126

When done shutdown DomU and load via pygrub . CS 19740 from xen-3.4-testing.hg still has to be applied
to patch pygrub for loading DomUs with timeout=0. View for details :-
CS 19740

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'

# xm create
# vncviewer localhost:0

At runtime :-

# virsh dumpxml VMF12 > VMF12.xml

Shutdown DomU and issue

# virsh define VMF12.xml
# xm list
# xm start VMF12
# vncviewer localhost:0

virsh create f12.xml may also create F12 PV DomU with /boot FS of type ext4, then
profile bellow would load and run DomU on OSOL-1002-126

root@opensolaris:/export/home/boris/fedora12ext4# cat f12.cfg
disk = ['phy:/dev/zvol/dsk/tank02/disk1,xvda,w' ]
vif = [ ' ' ]
vfb = [ 'type=vnc,vncunused=1']
on_reboot = 'restart'
on_crash = 'restart'

About these ads

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

%d bloggers like this: