Friday, February 15, 2008


Install SNV81 DomU at Fedora 8 Dom0 (i386)



Procedure descibed bellow attaches Solaris DomU to libvirtd's daemon
subnet 192.168.122.0 (netmask 255.255.255.0) utilizing interface virbr0
and dnsmasq service as DHCP server. It doesn't require DHCP bridge and
external DHCP Server to turn on old fashion xen-bridging on F8,
as was suggested in xen-discuss forum at opensolaris.org:-

Re: Xen 3.1 Linux Dom0 (x86_64) & PYGRUB



Fedora 8 Dom0 (32 bit) has been installed on the box with static IP address.
File /etc/xen/xend-config.sxp was modified to set up a isolated bridge + NAT forwarding:-



# (network-script network-bridge)
#### LAPTOP USERS ! #####
# For laptops, or machines where network interfaces come/go on-the-fly,
# or are otherwise managed by NetworkManager, comment out the above line.
# Then, uncomment the line below, and use libvirt's virtual networking
# capability which sets up a isolated bridge + NAT forwarding
(network-script /bin/true)




and:-



# service xend restart




Both services libvirtd and dnsmasq were up and running.
Interface virbr0 actived 192.168.122.1
SNV81 DomU installed with DHCP option on libvirtd's (dnsmasq) subnet.


In case when vif=[' ']


[root@fedora8xen vm]# brctl show



bridge name bridge id STP enabled interfaces
tmpbridge 8000.feffffffffff no vif6.0
virbr0 8000.000000000000 no




DHCP request to libvirtd's subnet timed out


In case when vif=['bridge = virbr0']



[root@fedora8xen vm]# brctl show
bridge name bridge id STP enabled interfaces
tmpbridge 8000.000000000000 no
virbr0 8000.feffffffffff no vif5.0




DHCP request to libvirtd's subnet succeeded in 1-2 minutes


Installation profile:-



name = 'Solaris81PVM'
memory = '1024'
bootloader = '/usr/bin/pygrub'
disk = [ 'file:/usr/lib/xen-solaris/snv81.iso,6:cdrom,r','phy:/dev/sdb11,0,w']
vif = [ 'bridge = virbr0' ]
kernel = '/boot/platform/i86xpv/kernel/unix'
ramdisk = '/boot/x86.miniroot'
extra = '/platform/i86xpv/kernel/unix - nowin -B install_media=cdrom'
on_shutdown = 'destroy'
on_reboot = 'destroy'
on_crash = 'destroy'




Command "xm list -l Solaris81" been executed in backend window reported, that bridge
used during installation was virbr0.








Runtime profile:-



name = 'Solaris81PVM'
memory = '1024'
disk = [ 'phy:/dev/sdb11,0,w' ]
vif = [ 'bridge = virbr0' ]