Virsh (Libvirt 0.7.2) & managing DomUs on openSUSE 11.2

Recent “zypper update” on November’s openSUSE 11.2 release brought system to the most recent status. Current 2.6.31.8-xen kernel works fine . Seems like a next generation of xenified aka Suse kernels is on the go right now. However, i believe,that vm-install on recently updated 11.2 works same way as before maintenance update.
View https://bugzilla.novell.com/show_bug.cgi?id=555181
So, in meantime vm-install doesn’t understand either HTTP or CDROM sources attempting to create PV Guest and virsh scripting appears to be the only one option to create Xen PV Guests manageable via virt-manager. Notice, that F12 PV Guest install doesn’t require HTTP or NFS share , pygrub performs install just via F12 ISO image , like OpenSolaris PV Guests get installed as usual.

Installation profile f12-install.xml :-

<domain type='xen'>
<name>VM12G</name>
<bootloader>/usr/bin/pygrub</bootloader>
<bootloader_args>--kernel=/images/pxeboot/vmlinuz --ramdisk=/images/pxeboot/initrd.img</bootloader_args>
<memory>2097152</memory>
<vcpu>2</vcpu>
<devices>
<disk type='file' device='cdrom'>
<driver name='file'/>
<source file='/root/vmf/f12.iso'/>
<target dev='xvdc' bus='xen'/>
<readonly/>
</disk>
<disk type='block' device='disk'>
<driver name='phy'/>
<source dev='/dev/sdb9'/>
<target dev='xvda' bus='xen'/>
</disk>
<interface type='bridge'>
<source bridge='br0'/>
<mac address='00:16:36:43:2a:72'/>
</interface>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='-1' keymap='en-us'/>
</devices>
</domain>
</code>

Start F12 DomU install
# virsh create f12-install.xml
# vncviewer localhost:0







Runtime profile f12-run.xml :-

<domain type='xen' id='3'>
<name>VF12G</name>
<memory>2097152</memory>
<currentMemory>2097152</currentMemory>
<vcpu>1</vcpu>
<bootloader>/usr/bin/pygrub</bootloader>
<bootloader_args>-q</bootloader_args>
<os>
<type>linux</type>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>restart</on_crash>
<devices>
<disk type='block' device='disk'>
<driver name='phy'/>
<source dev='/dev/sdb9'/>
<target dev='xvda' bus='xen'/>
</disk>
<interface type='bridge'>
<mac address='00:16:3e:12:bf:6b'/>
<source bridge='br0'/>
<script path='/etc/xen/scripts/vif-bridge'/>
<target dev='vif3.0'/>
</interface>
<console type='pty' tty='/dev/pts/1'>
<source path='/dev/pts/1'/>
<target port='0'/>
</console>
<input type='mouse' bus='xen'/>
<graphics type='vnc' port='5900' autoport='yes'/>
</devices>
</domain>

# virsh define f12-run.xml
# virsh start VF12G
# vncviewer localhost:0







Managing created domain via virt-manager:-




2 Responses to Virsh (Libvirt 0.7.2) & managing DomUs on openSUSE 11.2

  1. […] Virsh ( Libvirt 0.7.2) & managing DomUs on openSUSE 11.2 […]

Leave a comment