-
Install the OpenSolaris Xen Update (July 2007) .
-
Adjust the default boot item in /boot/grub/menu.lst to point to the Xen line. You need to boot xen first in order to get the right devices created and reboot.
When booting Solaris on Xen, the kernel$ line must refer to the Xen hypervisor, and there must be two module$ lines. The first module$ line must list the path to unix twice, with any arguments (once again, represented by [*] in the example) at the end of the line. The second module$ line lists the path to the boot archive:
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris on Xen kernel$ /boot/$ISADIR/xen.gz
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix [*]
module$ /platform/i86pc/$ISADIR/boot_archive
#---------------------END BOOTADM--------------------To boot Solaris on Xen in 32-bit mode on a 64-bit capable system, all instances of $ISADIR must be removed:
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title 32-bit Solaris on Xen kernel /boot/xen.gz
module /platform/i86xpv/kernel/unix /platform/i86xpv/kernel/unix [*]
module /platform/i86pc/boot_archive
#---------------------END BOOTADM--------------------
-
A simple test to determine if things look about right is to run xm top. (This command provides details of running domains; you should just have a single one called Domain-0.)
# xm top
NOTE: By default, you reboot into bare metal after install. If you subsequently reboot into dom0, you might need to manually enable all xctl services.
-
In Solaris, all of the properties from xend-config.sxp have been put into SMF xctl/xend (config/*).
-
To modify an existing property:
# svccfg -s xctl/xend listprop
# svccfg -s xctl/xend setprop config/dom0-cpus = 1
# svcadm refresh xctl/xend
-
To create a new property.
# svccfg -s xctl/xend setprop config/vncpasswd = astring: /"password/"
# svcadm refresh xctl/xend
# svcadm restart xend
# svcprop xctl/xend
To enable the Xen services running on the system:
-
Become superuser, or assume the Primary Administrator role..
-
Verify that the xctl services are running.
# svcs -a | grep xctl
If the system displays the following, the services are not running:
disabled 12:29:34 svc:/system/xctl/console:default
disabled 12:29:34 svc:/system/xctl/xend:default
disabled 12:29:34 svc:/system/xctl/store:default -
If the services are not running, verify that you booted an i86xpv kernel.
# uname -i i86xpv
Reboot if necessary.
-
If the correct kernel is running, enable the services.
# svcadm enable xctl/store
# svcadm enable xctl/xend
# svcadm enable xctl/consoleYou are now ready to create guest domains (domUs).