Installing OES Linux as a Xen Guest on SLES10
Novell Cool Solutions: Feature
By Glen Davis
Digg This -
Posted: 17 Aug 2006
Steps to install OES Linux SP2 as a Fully-Virtualized Xen VM Guest on SLES10.
Prerequisite Hardware — Intel Processor with VT, such as the Intel Pentium D 900 series processors or a Xeon type that supports it. You will also need to enable VT in the bios, so make sure your bios support this. After enabling in the bios, be sure to completely power off the server for 10 seconds. Also, AMD Pacifica processors should work, but were not released or tested at the time of writing this article.
Note: To install OES sp2 as a Xen Para-virtualized guest requires a new kernel (sles9 sp3 x86) that supports this functionality. Currently the kernel has not yet shipped, but is in technical preview status. It can be downloaded from http://forge.novell.com/modules/xfcontent/downloads.php/xenpreview/SUSE%20Linux%20Enterprise%20Server/9%20SP3/i586/.
Paravirtualized guests do not require special processors as noted above, and typically give better performance. For this document we go through a Fully-Virtualized guest installation, which does not require the new kernel but does require a processor that supports virtualization.
Prerequisite Software — Install SLES10 with Xen.
- Boot the SLES10 server using the Xen kernel. There should be entry in /boob/grub/menu.lst, to show Xen as a boot option when starting the server.
- Once logged into the server, give Dom0 (your VM Server host) a limited amount of memory. By default it will consume all memory, and Fully-Virtualized guests currently have a problem unless setting a hard limit.
-> xm mem-set 0 1024
This gives Dom0 1024 mb of memory and frees the rest for your VM guests.
- From a shell, type the following to launch the Xen Management module:
-> yast2 xen
- Click Add and you will brought to a screen that allows you to configure your OES SP2 VM guest.
- Change the Virtualization Mode to Full Virtualization.
- In VM Properties, give your VM a unique name (must not start with numbers).
- Recommendation — change the default disk to 8-12G or more. For example a disk size of 12288 MB.
- Recommendation — Add a second disk if you will NSS volumes. Add hdb to a size you desire.
- Recommendation — Give the server a minimum of 512mb ram.
- Insert your OES SP2 CD1 into the cdrom drive, wait for spin up, and click Next.
- Now you will proceed with the installation of OES as normally. One parameter you should add to the initial Installation screen to allow for video compatibility is vga=791, or another video setting that will work, otherwise the graphical install will fail.
Screenshot of a sample configuration:
The rest is pretty straight forward, you finish the installation, then the VM will show up in your Xen Management console. Type 'xm' at a command prompt to get commands for command line management.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com