|
|
If you are running build 126 or later of OpenSolaris, enabling xVM is as simple as:
$ pfexec pkg install xvm-gui $ pfexec svcadm enable milestone/xvm $ pfexec reboot
If you're on an older release, follow the instructions below.
$ pfexec beadm create -a -d xvm xvm
$ pfexec beadm mount xvm /tmp/xvm-be $ pfexec pkg -R /tmp/xvm-be install SUNWvirt-manager SUNWxvm SUNWvdisk SUNWvncviewer $ pfexec beadm umount xvm
If you're running a recent version of OpenSolaris, you can install the xvm-gui cluster instead of the individual packages.
Run the AWK script over the menu.lst file that controls the GRUB menu. This step is necessary for beadm to reboot into Xen.
$ awk '
/^title/ { xvm=0; }
/^title.xvm$/ { xvm=1; }
/^(splashimage|foreground|background)/ {
if (xvm == 1) next
}
/^kernel\$/ {
if (xvm == 1) {
print("kernel\$ /boot/\$ISADIR/xen.gz")
sub("^kernel\\$", "module$")
gsub("console=graphics", "console=text")
gsub("i86pc", "i86xpv")
$2=$2 " " $2
}
}
{ print }' /rpool/boot/grub/menu.lst >/var/tmp/menu.lst.xvm
Verify that the AWK script worked properly.
$ tail /var/tmp/menu.lst.xvm #============ End of LIBBE entry ============= title xvm findroot (pool_rpool,0,a) bootfs rpool/ROOT/xvm 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 #============ End of LIBBE entry =============
$ pfexec cp /rpool/boot/grub/menu.lst /rpool/boot/grub/menu.lst.saved $ pfexec mv /var/tmp/menu.lst.xvm /rpool/boot/grub/menu.lst $ pfexec reboot
Enable the xVM services (ignore any warnings about multiple instances).
$ svcadm enable -r xvm/virtd ; svcadm enable -r xvm/domains
You should be able to install guest domains now.
Terms of Use
|
Privacy
|
Trademarks
|
Copyright Policy
|
Site Guidelines
|
Site Map
|
Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2012, Oracle Corporation and/or its affiliates.