Wednesday, May 14, 2008


Install Solaris (Nevada build 87) DomU at Xen 3.2 Ubuntu 8.04 Server Dom0 (64-bit)



Install Ubuntu 8.04 Xen Server (amd64) as advised by Todd Deshane ([1]).
To configure startup profile for Solaris Nevada build 87 at Ubuntu 8.04 Server Dom0 manage as follows:-



$ sudo su
# mount /dev/scd1 /media/cdrom0
# dd if=/dev/scd1 of=/usr/lib/xen-solaris/snv87.iso




Then copy 64-bit xen-solaris kernel and x86.miniroot to Dom0:-



# mkdir -p /mnt01/tmp
# mount -o loop,ro snv87.iso /mnt01/tmp
# cp /mnt01/tmp/boot/amd64/x86.miniroot /usr/lib/xen-solaris/x86.miniroot-87
# cp /mnt01/tmp/boot/platform/i86xpv/kernel/amd64/unix /usr/lib/xen-solaris/unix-87
# umount /mnt01/tmp




Losetup ISO image:-



$ sudo su
# cd /usr/lib/xen-solaris/
# losetup -f snv87.iso




Installation profile:-



name = "Solaris87PVM"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-87"
ramdisk = "/usr/lib/xen-solaris/x86.miniroot-87"
extra = "/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom"
disk = ['phy:/dev/loop0,6:cdrom,r','tap:aio:/etc/xen/images/snv87.img,0,w']
# disk = ['phy:/dev/loop0,6:cdrom,r','phy:/dev/sdb9,0,w']
vif = ['bridge=eth0']
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"




Go through normal install and switch profile to runtime:-



name = "Solaris87PVM"
vcpus = 1
memory = "1024"
kernel = "/usr/lib/xen-solaris/unix-87"
ramdisk = "/usr/lib/xen-solaris/x86.miniroot-87"
extra = "/platform/i86xpv/kernel/amd64/unix"
disk = ['tap:aio:/etc/xen/images/snv87.img,0,w']
# disk = ['phy:/dev/sdb9,0,w']
root="/dev/dsk/c0d0s0"
vif = ['bridge=eth0']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"




Set up Sun Xvnc at SNV87 DomU and connect with any user (different from
root) credentials from remote desktop to SNV87 DomU at Ubuntu 8.04 Xen Server Dom0.



# svccfg -s application/x11/x11-server \
add display1
# svccfg -s application/x11/x11-server:display1 \
addpg options application
# svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server astring: "/usr/X11/bin/Xvnc"
# svccfg -s application/x11/x11-server:display1 \
addpropvalue options/server_args astring: '"SecurityTypes=None"'




Configure dtlogin to start it:-



# mkdir -p /etc/dt/config
# cp /usr/dt/config/Xservers /etc/dt/config/Xservers
# echo " :1 Local local_uid@none root /usr/X11/bin/Xserver :1" \
>> /etc/dt/config/Xservers
# pkill -HUP dtlogin




Then open ssh connection to Ubuntu 8.04 Xen Server Dom0 and
get a couple reports. SNV87 DomU behaves just fine on the LAN.

















Same schema works fine at Ubuntu 8.04 Desktop Dom0 (amd64)










References.
1.http://deshantm.livejournal.com/29959.html