Tuesday, August 26, 2008


Solaris Nevada DomUs internet working at Xen 3.3 CentOS 5.2 Dom0 (64 bit)



First install Xen 3.3 from mercurial repository on xen-disabled CentOS 5.2 instance,previously installed the most recent version of "git" on the system (git-1.6.0.tar.gz), otherwise "make world" would fail.



# cd /usr/src/
# hg clone http://xenbits.xensource.com/xen-3.3-testing.hg
# cd xen-3.3-testing.hg
# make world
# make install




Determine the name of the Xen Linux kernel version that was installed.



# ls /lib/modules




There should be a directory for the Xen Linux kernel (e.g., 2.6.18.8-xen)
Generate the module dependency list and map files



# /sbin/depmod 2.6.18.8-xen




Create the Xen initial ramdisk image



# /sbin/mkinitrd /boot/initrd-2.6.18.8-xen.img 2.6.18.8-xen




Disable tls


 
# mv /lib64/tls /lib64/tls.disabled




Set xend service to start



# /sbin/chkconfig --add xend
# /sbin/chkconfig xend on




Install bridge-utils:-



# yum install bridge-utils




Edit /boot/grub/grub.conf and copy one of the existing boot entries to make the required changes for Xen and reboot into new kernel.



title Xen-3.3 CentOS 5.2 x86_64 (2.6.18.8-xen)
root (hd1,4)
kernel /xen-3.3.gz
module /vmlinuz-2.6.18.8-xen ro root=/dev/VolGroup01/LogVol00 rhgb quiet
module /initrd-2.6.18.8-xen.img












Open following 3 ports on firewall:-


67/UDP Bootstrap Protocol (BOOTP) Server; also used by Dynamic Host Configuration Protocol (DHCP)
68/UDP Bootstrap Protocol (BOOTP) Client; also used by Dynamic Host Configuration Protocol (DHCP)
53/TCP,UDP Domain Name System (DNS)


Allow SSH,HTTPS,HTTP services and proceed with SNV94 DomU install in DHCP mode with pygrub profile:-



name = 'Solaris94PV'
memory = '2048'
disk = [ 'file:/usr/lib/xen-solaris/snv94.iso,6:cdrom,r','phy:/dev/sda10,0,w']
vif = [ 'bridge = eth0' ]
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'









Load SNV94 DomU with profile:-



name = 'Solaris94PV'
memory = '2048'
disk = ['phy:/dev/sda10,0,w']
vif = [ 'bridge = eth0' ]




Bfu DomU to build 96 and reboot:-








Setup Sun Xvnc on DomU and verify Internet access:-











Notice also,that Solaris 10 (05/08) and Free BSD 7 HVM DomUs (32-bit on Intel,64-bit on AMD X2) may be easily installed at Xen 3.3 Linux Dom0(64 bit)
References
1.http://lxer.com/module/newswire/view/100541/index.html