Wednesday, April 30, 2008


Install HVM FreeBSD 7.0 DomU (32-bit) at Xen 3.2.1 CentOS 5.1 Dom0 (64-bit)



This Xen build has been done with VMXASSIST disabled as advised in [2].
Clone Xen 3.2.1 from mercurial repository@xenbits.xensource.com on xen-disabled CentOS 5.1 64-bit instance as follows:-



# cd /usr/src/
# hg clone http://xenbits.xensource.com/xen-3.2-testing.hg
# cd xen-3.2-testing.hg
# make world vmxassist=n
# make install




The rest of install Xen 3.2 Dom0 goes exactly as in [1].
Installation profile.



name = "FreeBSD7"
builder = "hvm"
memory = "1024"
disk = ['phy:/dev/sdb12,ioemu:hda,w','file:/etc/xen/isos/7.0-RELEASE-i386-dvd.iso,hdc:cdrom,r']
vif = [ 'type=ioemu,bridge=eth0' ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
boot="d"
vcpus=1
acpi="0"
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'




Runtime profile:-



name = "FreeBSD7"
builder = "hvm"
memory = "1024"
disk = ['phy:/dev/sdb12,ioemu:hda,w']
vif = [ 'type=ioemu,bridge=eth0' ]
device_model = "/usr/lib64/xen/bin/qemu-dm"
kernel = "/usr/lib/xen/boot/hvmloader"
vnc=1
boot="c"
vcpus=1
acpi="0"
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'




Runtime snapshots:-

















SSH connections:-
1.Free BSD DomU to Dom0
2.Dom0 to Free BSD DomU
3.HVM S10U4 DomU to HVM FreeBSD 7 DomU














To install Gnome Desktop run:-



# pkg_add -r gnome2




Enable Gnome Desktop by adding gdm_enable="YES" to /etc/rc.conf and
reboot DomU.


GNOME may also be started from the command-line by properly configuring a file named ~/.xinitrc. If a custom .xinitrc is already in place, simply replace the line that starts the current window manager with one
that starts /usr/local/bin/gnome-session instead.
Next, type startx, and the GNOME desktop environment will be started.








References.
1.http://lxer.com/module/newswire/view/100541/index.html
2.http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=622