Just summarize how I managed to install and boot an opensolaris domU (latest drop, nv66) under a Linux dom0 (RHEL 5, x64)
1. The instructions in the community documentation here doesn't include a kernel or a ramdisk specification, so the Linux dom0's tools didn't care for it. To get around this, I loop mounted the DVD image.
2. Create the virtual disk for the Solaris domU
Surf to www.rpmfind.net, and search the rpm package with the key words "qemu, el5, x86_64". Download the matched rpm file, qemu-0.9.0-2.el5.rf.x86_64.rpm.
# rpm -ivh qemu-0.9.0-2.el5.rf.x86_64.rpm
# qemu-img create -f raw solaris.raw 10G
Or, directly create the raw file.
# dd if=/dev/zero of=/etc/xen/vdisks/solaris.raw bs=1k seek=8192k count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 4.4e-05 seconds, 23.3 MB/s
The following xen python config file is created and stored at /etc/xen/configs/opensol.cfg.
Note:
1. The statement in Solaris such as
'file:/etc/xen/vdisks/solaris.raw,0,w'
doesn't work on Linux. Replace it with
'file:/etc/xen/vdisks/solaris.raw,hda,w'
2. [iyunv@localhost xen]# xm creat -c opensol.cfg
Using config file "./opensol.cfg".
Error: (22, 'Invalid argument')
This looks like the error Xen gives you when you try to boot a 32-bit domU on 64-bit dom0 (which is supported in 3.1, but not in 3.0.4-1 which our current bits are based off of).
and pass this file-backed v-disk to Solaris domU with:
disk = [ 'file:/home/export/images/ISO/66-0624-nd.iso,6:cdrom,r','file:/etc/xen/vdisks/solaris.raw,hda,w' ]
During installation after typing 'xm create -c opensolaris.cfg', I allocated the entire disk to SOLARIS and made it auto-layouted.
After this, it comes to an error:
The following disk configuration condition(s) have been
detected. Errors must be fixed to ensure a successful
installation. Warnings can be ignored without causing the
installation to fail.
ERROR: The '/' slice extends beyond HBA cylinder 1023
I tried to layout the partition manually, but not helpful.