POUWIEL|COM

JeroenPouwiel

OpenSolaris 2008.11 xVM Hypervisor

So, here i am. Trying to setup a Solaris xVM hypervisor….
Installed OpenSolaris using the ‘install’ icon on the desktop of the livecd.

According to the package manager, SUNWxvmdom, SUNWxvmipa and SUNWxvmpv were already installed, so i downloaded the rest (available via the package repository from opensolaris.org): SUNWvirtinst, SUNWvirt-manager and SUNWxvm. Those 3 were prox. 8 Mb in size.

Using this pdf, i verified that the xVM Server packages exists on the machine and the libvirt tools were present.

pouwiel@behemoth:~$ cat /etc/release
                       OpenSolaris 2008.11 snv_101b_rc2 X86
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 19 November 2008

 

pouwiel@behemoth:~$ pkginfo|grep xvm
system      SUNWxvmdomr                     Hypervisor Domain Tools (Root)
system      SUNWxvmdomu                     Hypervisor Domain Tools (Usr)
system      SUNWxvmh                        Hypervisor Header Files
system      SUNWxvmhvm                      Hypervisor HVM
system      SUNWxvmipar                     xVM PV IP address agent (Root)
system      SUNWxvmipau                     xVM PV IP address agent (Usr)
system      SUNWxvmpv                       xVM Paravirtualized Drivers
system      SUNWxvmr                        Hypervisor (Root)
system      SUNWxvmu                        Hypervisor (Usr)

pouwiel@behemoth:~$ pkginfo|grep libvirt
system      SUNWlibvirt                     Libvirt (Usr)
system      SUNWlibvirtr                    Libvirt (Root)

pouwiel@behemoth:~$ pkginfo|grep virtinst
system      SUNWvirtinst                    virt-install

pouwiel@behemoth:~$ pkginfo|grep grabber
system      SUNWurlgrabber                  urlgrabber

So far so good.
Now it’s time to verify xVM is part of the boot-menu:

pouwiel@behemoth:~$ bootadm list-menu
The location for the active GRUB menu is: /rpool/boot/grub/menu.lst
default 0
timeout 30
0 OpenSolaris 2008.11 snv_101b_rc2 X86
1 OpenSolaris 2008.11 snv_101b_rc2 X86 text boot

Alas, let’s try the upgrade then…

pouwiel@behemoth:~$ bootadm -m upgrade
bootadm: you must be root to run this command
pouwiel@behemoth:~$ su
Password:
pouwiel@behemoth:~# bootadm -m upgrade
bootadm: failed to determine fdisk partition: rpool/ROOT/opensolaris
bootadm: Cannot find GRUB signature for /

Nope, no luck there.
So i searched for the error and got LOTS of hits, like this one (could be useful for someone!) and eventually this one.
I manually alterd my grub menu, like so:

pfexec gedit /rpool/boot/grub/menu.lst
add:

title   ... xVM
 findroot (pool_rpool,0,a)
 kernel$ /boot/$ISADIR/xen.gz
 module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS
 module$ /platform/i86pc/$ISADIR/boot_archive
 bootfs rpool/ROOT/opensolaris-1

And rebooted.
And now it looks like this:

pouwiel@behemoth:~# bootadm list-menu
The location for the active GRUB menu is: /rpool/boot/grub/menu.lst
default 2
timeout 30
0 OpenSolaris 2008.11 snv_101b_rc2 X86
1 OpenSolaris 2008.11 snv_101b_rc2 X86 text boot
2 ... xVM

Sadly, the services didn’t start automatically, so i started them like so:

pouwiel@behemoth:~# svcs|grep xvm
disabled       15:10:05 svc:/system/xvm/ipagent:default
online         15:10:05 svc:/system/xvm/vnc-config:default
pouwiel@behemoth:~# svcadm enable store
pouwiel@behemoth:~# svcadm enable xend
pouwiel@behemoth:~# svcadm enable console
pouwiel@behemoth:~# svcadm enable domains
pouwiel@behemoth:~# svcadm enable virtd
pouwiel@behemoth:~# svcs | grep xvm
disabled       15:10:05 svc:/system/xvm/ipagent:default
online         15:10:05 svc:/system/xvm/vnc-config:default
online         15:13:32 svc:/system/xvm/store:default
online         15:13:40 svc:/system/xvm/xend:default
online         15:13:48 svc:/system/xvm/console:default
online         15:13:58 svc:/system/xvm/domains:default
online         15:14:08 svc:/system/xvm/virtd:default

Now back to the pdf from Sun on page 4, i just entered paragraph Post-Installation Configuration. With step 1, essentially covered above, we go on to step 2….

Next up is the network configuration, i followed step 2, here are the results:

pouwiel@behemoth:~# dladm show-link
LINK        CLASS    MTU    STATE    OVER
rge0        phys     1500   up       --
rge1        phys     1500   up       --
pouwiel@behemoth:~# svccfg -s xvm/xend listprop config/default-nic
config/default-nic  astring
pouwiel@behemoth:~# dladm show-link
LINK        CLASS    MTU    STATE    OVER
rge0        phys     1500   up       --
rge1        phys     1500   up       --
pouwiel@behemoth:~# svccfg -s xvm/xend listprop config/default-nic
config/default-nic  astring

Comments are closed.

Categories