Justin's IT and Security Pages

Archive for February, 2009

Updating OpenSolaris on XenServer 5

8 comments

Following my previous post from December on installing OpenSolaris 2008.11 in a para-virtualized environment on XenServer 5, I thought it might be helpful for some folks to understand how to update their new virtual machines. A commenter on the original article (Thanks phrost!) discovered some of this. Since originally installing the 2008.11 release, I’ve switched to the development repository and I’ve been tracking the pre-release 2009.06 code.

When an “Update All” operation is performed on the OpenSolaris machine, a new Boot Environment (BE) is created. This new BE will be suffixed with a “-#” as an iteration to the original BE (e.g., an original “opensolaris” becomes “opensolaris-1″ which would later become “opensolaris-2″, etc.).

Because the PV method described in my original post specifies the kernel, ramdisk, and boot arguments outside of the typical OS boot process, all of those items need to be updated to reflect the changes when a new boot environment is created. The steps to do this are fairly straightforward:

  1. After updating, but before rebooting, copy the new kernel and ramdisk over to the XenServer.
    1. Determine the mountpoint of the new boot environment. This will typically be “/tmp/<random characters>. Use beadm list to find that mountpoint.
    2. Change directories to /tmp/<random characters>/platform. Use scp to copy i86xpv/kernel/unix and i86pc/boot_archive over to the XenServer. You’ll place these in the /opt/kernels directory and you’ll probably want to name them something to uniquely identify them. Avoid writing over the currently configured kernel and ramdisk.
  2. Re-configure the “PV-kernel”, “PV-ramdisk” and “PV-args” values of your OpernSolaris VM to point to the new files and the new BE. The change to “PV-args” will likely just be to specify the “-#” of the desired BE in the boot path.

Reboot the OpenSolaris VM and you should be running the new code!

One interesting tidbit: if you later do anything that modifies the boot_archive (e.g., installing the SMB server kernel modules), you’ll want to copy the modified boot_archive over to the XenServer and modify “PV-ramdisk” accordingly. I learned that the hard way when I installed SMB, rebooted, and was greeted by all kinds of obtuse errors about the SMB service not starting.

Written by justin

February 27th, 2009 at 7:40 pm

Posted in Uncategorized

XenServer 5 and Windows 7

3 comments

To install Windows 7 on XenServer 5, you need to alter one setting on the XenServer.

Set up your VM the way you want it in XenCenter, but don’t actually boot it up. Use the “Other Install Media” option.

Log in to the XenServer via SSH and find the UUID of your newly created VM. Use xe vm-list to do that.

Disable the “viridian” setting on the new VM:

xe vm-param-set uuid=<VM UUID> platform:viridian=false

Boot your VM with the install DVD mounted and you should be set!

Written by justin

February 5th, 2009 at 12:04 am

Posted in Uncategorized