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

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

Create f12-pv-install.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-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 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'

# xm create f12.py
# 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
name="VF124"
memory=2048
kernel="./vmlinuz-2.6.31.5-122.fc12.x86_64"
ramdisk="./initramfs-2.6.31.5-122.fc12.x86_64.img"
root="/dev/mapper/vg_fedora-lv_root"
disk = ['phy:/dev/zvol/dsk/tank02/disk1,xvda,w' ]
vif = [ ' ' ]
vfb = [ 'type=vnc,vncunused=1']
vcpus=1
on_reboot = 'restart'
on_crash = 'restart'
a

About these ads

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: