Thursday, February 21, 2008

Pygrub & install Solaris (build >75) DomU at Fedora 8 Dom0 (x86_64)

Procedure descibed bellow attaches Solaris DomU to libvirtd's daemon
subnet (netmask 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

Re: Xen 3.1 Linux Dom0 (x86_64) & PYGRUB

Xen implementation on Fedora 8 allows to utilize pygrub as bootloader for Solaris
DomUs, what significantly simplifies creating installation and runtime profiles for SNV DomUs and also will work for any build of OpenSolaris (76,78,79) regardless of
"Bug 633784 checksum offload with Linux dom0 produces invalid checksum", been fixed
in build 81.
Fedora 8 Dom0 (64-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)

This changes requires daemon xend restart.

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

Report "xm list -l Solaris81F8X" running in the backend window demonstrates,
that virtual interface for SNV DomU install is attached to virbr0, what
guarantees DHCP request from SNV DomU to dnsmasq service to succeed and does
allow to avoid creating DHCP bridge on F8 box, wich consequently requires
external DHCP Server on the LAN to turn on old fashioned xen-bridging on F8 Dom0.

Runtime profile
name = 'Solaris81F8X'
memory = '1024'
disk = [ 'phy:/dev/sdb14,0,w' ]
vif = [ 'bridge = virbr0' ]

SSH connection from SNV81 DomU to F8 Dom0 and getting "xm list -l SNV_DomU_Name"

Install SNV81 DomU at Fedora 7 Dom0 (x86_64)