Setup opensolaris 2009.06 PV DomU at Xen 3.5-unstable Dom0 ( kernel 2.6.30-rc6-tip)

Pygrub ZFS support for the most recent Sun Solaris Nevada and OpenSolaris images has been introduced into Xen 3.4
via change sets 19323,19322, what makes OpenSolaris 2009.06 PV DomU install pretty much straight forward vs it happened under Xen 3.3.1 Hypervisor. Backport this CS’s to Xen 3.3.1 would very helpful in my opinion.

**********************************
Copy ramdisk and kernel to Dom0
**********************************

[root@ServerXen isos]# cat copy.sh
mount -o loop,ro osol-0906-x86.iso /mnt
cp /mnt/boot/amd64/x86.microroot /home/boris/solaris
cp /mnt/platform/i86xpv/kernel/amd64/unix /home/boris/solaris

***********************
Installation profile:-
***********************

[root@ServerXen solaris]# cat osol200906.install
name = "sol0906"
vcpus = 1
memory = "1024"
kernel = "/home/boris/solaris/unix"
ramdisk = "/home/boris/solaris/x86.microroot"
extra = "/platform/i86xpv/kernel/amd64/unix - nowin -B install_media=cdrom"
disk = ['phy:/dev/loop0,6:cdrom,r','phy:/dev/sdb5,0,w']
vif = ['bridge=eth1']
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"

When logged in as jack/jack:

$ mkdir .vnc
$ cp .Xclients .vnc/xstartup
$ vncserver
$ pfexec ifconfig -a

Connect via vncviewer from Dom0 to IP-DomU:1 and proceed
with install:-



************************************************
Runtime profile for Xen 3.4 (3.5-unstable) Dom0
************************************************

[root@ServerXen solaris]# cat os0906.pyrun
name = 'OS0L906'
memory = 2048
vcpus = 2
bootloader = '/usr/bin/pygrub'
disk = ['phy:/dev/sdb5,0,w']
vif = [ 'bridge=eth1' ]











VNC Setup

cat /etc/X11/gdm/custom.conf
# GDM Custom Configuration file.
# overrides: /usr/share/gdm/defaults.conf
[daemon]
RemoteGreeter=/usr/lib/gdmgreeter
[security]
DisallowTCP=false
# AllowRoot=true
# AllowRemoteRoot=true
[xdmcp]
Enable=true
[gui]
[greeter]
[chooser]
[debug]
[servers]

Services restart:-

svcadm disable xvnc-inetd gdm
svcadm enable xvnc-inetd gdm






Failure to obtain IP via DHCP at boot up causes services error messages go to console and loosing login prompt.
Seems like old bug “failure chechsum offloading” is still affecting
OSOL 2009.06. At your earliest convenience add to /etc/system

set xnf:xnf_cksum_offload = 0

and reboot .
It happened to me on the box with Marvell Yukon PCI-E Gigabit
Ethernet 88E8056 in Dom0.

2 Responses to Setup opensolaris 2009.06 PV DomU at Xen 3.5-unstable Dom0 ( kernel 2.6.30-rc6-tip)

  1. rotyyu says:

    I got this error
    Error: Boot loader didn’t return any data!
    when try to boot the installed osol0906 in
    a virtual disk. any idea??

  2. dbaxps says:

    Please, run
    # xm info
    at Dom0.
    Image has ZFS v.14. It’s supported by Xen 3.4.0 and higher.

Leave a comment