I''m using wheezy running kernel 3.2.0 + xen 4.1 as base/dom0.
I want to run a virtual solaris 11 machine. I was able to install it using:
# cat /etc/xen/solaris11.cfg
name = "solaris11"
vcpus = 4
memory = 2048
kernel = "/home/xen/domains/solaris11/unix"
ramdisk = "/home/xen/domains/solaris11/boot_archive"
extra = "/platform/i86xpv/kernel/amd64/unix -B
console=ttya,livemode=text"
# ISO of Solaris mounted as CDROM during initial install
#disk =
[''file:/home/xen/sol-11-1111-text-x86.iso,6:cdrom,r'',''file://home/xen/domains/solaris11/solaris11-disk.img,0,w'']
#
# ISO of Solaris removed after install
disk =
[''file://home/xen/domains/solaris11/solaris11-disk.img,0,w'']
dhcp = ''dhcp''
vif = [ ''mac=00:16:3E:2E:25:68'' ]
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"
but on reboot, it doesn''t see the drive. What am I doing wrong?
I get the following:
# xm create -c solaris11.cfg
Using config file "/etc/xen/solaris11.cfg".
Started domain solaris11 (id=7)
network interface name ''eth0''
replaced
with ''xnf0''
v4.1.2 chgset ''unavailable''
SunOS Release 5.11 Version 11.0 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Remounting root read/write
Probing for device nodes ...
dcpc: unable to resolve dependency, cannot load module
''drv/cpc''
Preparing image for use
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run
Enter user name for system maintenance (control-d to bypass):
And if I login, no zpools are available.
root@:~# zpool list ;df -h
no pools available
Filesystem Size Used Available Capacity Mounted on
/devices/ramdisk:a 209M 192M 17M 92% /
/devices 0K 0K 0K 0% /devices
/dev 0K 0K 0K 0% /dev
ctfs 0K 0K 0K 0% /system/contract
proc 0K 0K 0K 0% /proc
mnttab 0K 0K 0K 0% /etc/mnttab
swap 1.6G 1.1M 1.6G 1% /system/volatile
objfs 0K 0K 0K 0% /system/object
sharefs 0K 0K 0K 0% /etc/dfs/sharetab
--
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
"This officer''s men seem to follow him merely out of idle
curiosity."
-- Sandhurst officer cadet evaluation.
"Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted." -- Gene Spafford
learn french: http://www.youtube.com/watch?v=30v_g83VHK4
OK, updated my solaris11.cfg following:
http://xen.1045712.n5.nabble.com/How-to-install-OpenIndiana-DomU-td3411490.html
#format gives:
AVAILABLE DISK SELECTIONS:
0. c3d0 <Unknown-Unknown-0001 cyl 10198 alt 0 hd 255 sec 63>
/xpvd/xdf@0
After installing, I updated the solaris11.cfg this way:
# cat /etc/xen/solaris11.cfg
name = "solaris11"
vcpus = 4
memory = 2048
kernel = "/home/xen/domains/solaris11/unix"
ramdisk = "/home/xen/domains/solaris11/boot_archive"
extra = "/platform/i86xpv/kernel/amd64/unix -B
zfs-bootfs=rpool/ROOT/solaris,bootpath=''/xpvd/xdf@0:a''"
disk =
[''file://home/xen/domains/solaris11/solaris11-disk.img,xvda,w'']
dhcp = ''dhcp''
vif = [ ''mac=00:16:3E:2E:25:68'' ]
on_shutdown = "destroy"
on_reboot = "destroy"
on_crash = "destroy"
# xm create -c solaris11.cfg
Using config file "/etc/xen/solaris11.cfg".
Started domain solaris11 (id=17)
network interface name ''eth0''
replaced
with ''xnf0''
v4.1.2 chgset ''unavailable''
SunOS Release 5.11 Version 11.0 64-bit
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
NOTICE: Can not read the pool label from ''/xpvd/xdf@0:a''
NOTICE: spa_import_rootpool: error 5
Cannot mount root on /xpvd/xdf@0:a fstype zfs
panic[cpu0]/thread=fffffffffbc640e0: vfs_mountroot: cannot mount root
Warning - stack not written to the dump buffer
fffffffffbcbecf0 genunix:vfs_mountroot+33a ()
fffffffffbcbed10 genunix:main+171 ()
fffffffffbcbed20 unix:_locore_start+7e ()
skipping system dump - no dump device configured
rebooting...
Any ideas?
--
http://www.glumbert.com/media/shift
http://www.youtube.com/watch?v=tGvHNNOLnCk
"This officer''s men seem to follow him merely out of idle
curiosity."
-- Sandhurst officer cadet evaluation.
"Securing an environment of Windows platforms from abuse - external or
internal - is akin to trying to install sprinklers in a fireworks
factory where smoking on the job is permitted." -- Gene Spafford
learn french: http://www.youtube.com/watch?v=30v_g83VHK4