It looks like there will be a preview build of OpenSolaris 2010.02 available later this week which will also be based on snv_121.
Among other things this build have LatencyTOP included and xVM is based on XEN 3.3.
Solaris for the masses
$ pfexec mkdir -m 0755 -p /var/pkg/sslNow install VirtualBox:
$ pfexec cp -i ~/Desktop/OpenSolaris_extras.key.pem /var/pkg/ssl
$ pfexec cp -i ~/Desktop/OpenSolaris_extras.certificate.pem /var/pkg/ssl
$ pfexec pkg set-authority \
-k /var/pkg/ssl/OpenSolaris_extras.key.pem \
-c /var/pkg/ssl/OpenSolaris_extras.certificate.pem \
-O https://pkg.sun.com/opensolaris/extra/ extra
$ pfexec pkg install virtualbox virtualbox/kernel
$ cd /opt/VirtualBox
$ VBoxManage createvm --name "WinXP" --register
$ VBoxManage modifyvm "WinXP" --memory "512MB" \
--acpi on --boot1 dvd --nic1 nat
$ VBoxManage createhd --filename "WinXP.vdi" \
--size 5000 --remember
$ VBoxManage modifyvm "WinXP" --hda "WinXP.vdi"
$ VBoxManage controlvm "WinXP" dvdattach \
/path_to_dvd/winxp.iso
$ VBoxHeadLess --startvm "WinXP"
Solaris/OpenSolaris/*BSD: rdekstop (pkg install SUNWrdesktop)After the installation is done, the guest can be controlled with VBoxManage. VBoxManage can control all aspects of the guest, snapshots, power, USB sound. Here are a few basic commands:
MacOS X: Remote Desktop Connection
Start: VBoxHeadLess -s winxpPoweroff: VboxManage controlvm WinXP poweroffReset: VboxManage controlvm WinXP reset
$ VBoxManage controlvm "WinXP" dvdattach \
/opt/VirtualBox/additions/VBoxGuestAdditions.iso
pfexec pkg install xvm-gui SUNWvdisk
Reboot into this grub entry and if everything works set this as your default boot entry:title OpenSolaris 2009.06 xVM
findroot (pool_rpool,1,a)
bootfs rpool/ROOT/opensolaris
kernel$ /boot/$ISADIR/xen.gz
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS,console=text
module$ /platform/i86pc/$ISADIR/boot_archive
Enable the xVM services$ bootadm list-menu
the location for the active GRUB menu is: /rpool/boot/grub/menu.lst
default 0
timeout 30
0 OpenSolaris 2009.06
1 OpenSolaris 2009.06 xVM
$ bootadm set-menu default=1
$ pfexec svccfg -s xvm/xend setprop config/vnc-listen = astring: \"0.0.0.0\"
$ pfexec svccfg -s xvm/xend setprop config/vncpasswd = astring \"yourpass\"
$ pfexec svcadm refresh xvm/xend
$ pfexec svcadm enable -r xvm/virtd
$ pfexec svcadm enable -r xvm/domains
$ pfexec zfs create -o compression=on -V 10G zpool01/myzvol
$ pfexec virt-install --nographics -p -r 1024 -n osol0906 -f /dev/zvol/zpool01/myzvol -l /zpool01/dump/osol-0906-x86.iso
$ pfexec /usr/lib/xen/bin/xenstore-read /local/domain//ipaddr/0
$ pfexec /usr/lib/xen/bin/xenstore-read /local/domain//guest/vnc/port
$ pfexec /usr/lib/xen/bin/xenstore-read /local/domain//guest/vnc/passwd
$ pfexec virt-install -v --vnc -n windows -r 1024 -f /dev/zvol/dsk/zpool01/myzvol -c /zpool01/dump/windows.iso --os-type=windows
$ pfexec pkg install storage-nasAdd compilers (sunstudio, it can be replaced with e.g. gcc-dev-4)
$ pfexec pkg install sunstudioAdd the contrib repository for contributed packages
$ pfexec pkg set-publisher -O http://pkg.opensolaris.org/contrib contrib
$ pkg list -a SUNWgzip
NAME (PUBLISHER) VERSION STATE UFIX
SUNWgzip 1.3.5-0.111 installed ----
$ pkg list -a '*Python26*'Sharing
NAME (PUBLISHER) VERSION STATE UFIX
SUNWPython26 2.6.1-0.111 known ----
SUNWPython26-extra 0.5.11-0.111 known ----
$ pfexec zfs create -o compression=on rpool/export/share
$ pfexec svcadm enable -r nfs/serverEnable sharing over NFS for the share filesystem
$ zfs set sharenfs=on rpool/export/shareShare with CIFS
$ pfexec svcadm enable smb/serverTo enable users to access the CIFS share add the following line to /etc/pam.conf and reset users pw with passwd(1):
$ pfexec zfs set sharesmb=on rpool/export/share
$ pfexec zfs set sharesmb=name=mysharename rpool/export/share
other password required pam_smb_passwd.so.1 nowarnEnable auto ZFS-snapshots
$ pfexec zfs set com.sun:auto-snapshot=false rpoolEnable snapshots for the share:
$ pfexec zfs set com.sun:auto-snapshot=true rpool/export/shareEnable daily snapshots (can be frequent, hourly, daily, weekly or monthly):
$ pfexec svcsadm enable auto-snapshot:dailyList snapshots:
$ zfs list -t snapshot