Ben Panzer wrote:> Hello everyone,
>
> I would like to run a PV domu with OpenSolaris 2009.06 under a dom0 also
with OpenSolaris 2009.06.
> So I set up dom0 and domu as described in [1-3]. Fine so far, domu boots
and works as expected.
Make sure you apply the workaround for 6840704 in the domU. This can cause
hangs.
6840704 osol_0906 PV guests sometimes hang at login prompt
root@opensolaris:~# echo -e "\n"\
"forceload: drv/domcaps\n"\
"forceload: drv/xencons\n"\
"forceload: drv/xenbus\n"\
"forceload: drv/balloon\n"\
"forceload: drv/evtchn\n"\
"forceload: drv/privcmd\n"\
"forceload: drv/xdf\n"\
"forceload: drv/xnf\n\n" >> /etc/system
root@opensolaris:~# bootadm update-archive
updating //platform/i86pc/boot_archive
updating //platform/i86pc/amd64/boot_archive
root@opensolaris:~# reboot
> However, if I pass a further hard disk to the domu using [i]xm
block-attach[/i] the domu does not boot properly:
>
> root@opensolaris:~# uname -a
> SunOS opensolaris 5.11 snv_111b i86pc i386 i86xpv Solaris
> root@opensolaris:~# dd if=/dev/urandom of=/var/xen/test1.hdd bs=1024
count=10240
> root@opensolaris:~# chown xvm:xvm /var/xen/test1.hdd
> root@opensolaris:~# ls -l /var/xen/test1.hdd
> -rwxrwxrwx 1 xvm xvm 10485760 2009-08-17 20:40 /var/xen/test1.hdd
> root@opensolaris:~# xm block-attach domu-samba file:/var/xen/test1.hdd 1 w
> root@opensolaris:~# xm block-list domu-samba
for file based disks, you should really use vdiskadm. You should
also be using xvd*.
vdiskadm -u xvm create -s 10g /var/xen/test1
xm block-attach domu-samba tap:vdisk:/var/xen/test1 xvdb w
With a zfs root, you need to set a dom0 mem limit in grub''s menu.lst?
e.g.
kernel$ /boot/$ISADIR/xen.gz com1=9600,8n1 console=com1 dom0_mem=2g
And make sure you don''t balloon down.
svccfg -s xvm/xend setprop config/dom0-min-mem=2000
svcadm refresh xvm/xend;svcadm restart xvm/xend
And limit the ARC cache
echo "set zfs:zfs_arc_max = 0x10000000" >> /etc/system
With all that, do you still see a problem?
MRJ
> Vdev BE handle state evt-ch ring-ref BE-path
> 0 -1 0 -1 -1 -1 0
> 1 -1 0 -1 -1 -1 ??
> root@opensolaris:~# xm start domu-samba
> root@opensolaris:~# xm console domu-samba
> v3.1.4-xvm chgset ''Wed Apr 08 14:27:49 2009 -0700
15914:cd2d74aa8832''
> SunOS Release 5.11 Version snv_111b 64-bit
> Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved.
> Use is subject to license terms.
> Hostname: samba
> Reading ZFS config: done.
> Mounting ZFS filesystems: (6/6)
> Aug 17 21:19:13 svc.startd[7]: svc:/system/hal:default: Method
"/lib/svc/method/svc-hal start" failed with exit status 95.
> Aug 17 21:19:13 svc.startd[7]: system/hal:default failed fatally:
transitioned to maintenance (see ''svcs -xv'' for details)
> Aug 17 21:24:48 svc.startd[7]:
svc:/application/desktop-cache/icon-cache:default: Method or service exit timed
out. Killing contract 46.
> Aug 17 21:24:48 svc.startd[7]:
svc:/application/desktop-cache/icon-cache:default: Method
"/lib/svc/method/icon-cache start" failed due to signal KILL.
>
> Once I tried to pass the disk as hdc instead but that doesn''t help
either:
>
> root@opensolaris:~# xm block-attach domu-samba file:/var/xen/test1.hdd hdc
w
> root@opensolaris:~# xm start domu-samba
> root@opensolaris:~# xm console domu-samba
> v3.1.4-xvm chgset ''Wed Apr 08 14:27:49 2009 -0700
15914:cd2d74aa8832''
> SunOS Release 5.11 Version snv_111b 64-bit
> Copyright 1983-2009 Sun Microsystems, Inc. All rights reserved.
> Aug 17 22:06:38 svc.startd[7]: svc:/network/routing-setup:default: Method
or service exit timed out. Killing contract 36.
> Aug 17 22:06:38 svc.startd[7]: svc:/network/routing-setup:default: Method
"/lib/svc/method/net-routing-setup" failed due to signal KILL.
>
> In both cases the domu does not respond any more, not even to xm shutdown
domu-samba.
>
> Help gratefully appreciated ;-)
> Regards, Ben
>
> [1]http://www.opensolaris.org/os/community/xen/docs/2008_11_dom0/
> [2]http://www.opensolaris.org/os/community/xen/docs/configuring-dom0/
> [3]http://www.opensolaris.org/os/community/xen/docs/opensolaris_domu/