In this blog I will walk you through the steps of creating a domU within your OpenSolaris 2008.05 installation.
To accomplish this task you must have done your OpenSolaris 2008.05 install and I assume you are familiar with this if not please refer to OpenSolaris web-site.
Once you done installing this you need to use IPS(Image Packaging System) so that your system will have the packages related to xen. Make sure your pkg authority is set right and you are able to download the packages.
If this is set right i.e. if you haven't changed anything then it should look like this:
-bash-3.2# pkg authority
opensolaris.org (preferred) http://pkg.opensolaris.org:80/
Now you will need to add the following packages(you can cut and paste these commands to your terminal):
pkg install SUNWvirtinst
pkg install SUNWurlgrabber
pkg install SUNWlibvirt
pkg install SUNWxvmhvm
pkg install SUNWxvmdom
pkg install SUNWxvm
pkg install SUNWgccruntime
pkg install SUNWgnutls
pkg install SUNWlibsdl
pkg install FSWxwpft
pkg install FSWxwrtl
Once done doing this now you have all the necessary packages. Now you need to modify you GRUB BOOT Loader so that you have the option to load xVM when you system boots. This can be achieved by doing this:
Open the file "/rpool/boot/grub/menu.lst" in vi and add the following entry:
title Solaris xVM
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS
Save your changes and exit out of the editor.
Now reboot your system and when you get to the grub loader select the "Solaris xVM" so that you will have the xVM related modules loaded.
Once the boot is complete you will need to start some of the services to enable you to use the xen management command. The services need to be enabled are as:
svcadm enable svc:/system/xvm/store:default
svcadm enable svc:/system/xvm/xend:default
svcadm enable svc:/system/xvm/console:default
Note: Enabling the console is really necessary otherwise when you run your xm commands you will get into error like following:
/usr/lib/xen/bin/xenconsole: Could not open tty `/dev/pts/7': No such file or directory
Once you have done this follow the instruction listed in MJR's blog.
Which will have your domU up and running.