Installing the Xen Domain0

To install Xen, you need to start with the required software:

1. In YaST, open Software > Software Management.

2. From the Filter drop-down list, select Patterns, and make sure that all packages in the Xen pattern are selected.

3. Click Accept to copy all the required packages to your server.

4. Open a console window, and from there use the command less /boot/grub/menu.lst to show the current contents of the GRUB boot loader's boot file. It should include the entry shown in Listing 31-1.

Listing 31-1. Required Boot Options in menu.lst for the Xen Domain-0

###Don't change this comment - YaST2 identifier: Original name: xen### title XEN

root (hd0,1) kernel /boot/xen.gz module /boot/vmlinuz-xen root=/dev/sda2 vga=0x314 resume=/dev/sda1 splash=silent showopts module /boot/initrd-xen s.

If an entry like the one shown in Listing 31-1 doesn't exist, add it with an editor. If you type it yourself, make sure you are referring to the correct hard drive partition with the root (hd0,1) and root=/dev/sda2 options. In this example, the root file system is on the second partition on the first SCSI hard drive; your system might be configured differently, so change this if needed, and then save and close the file.

Since the SuSE firewall cannot handle the complex network settings that are installed byXen, you should disable SuSE firewall completely. Use the commands insserv -r SuSEfirewall2_setup and insserv -r SuSEfirewall2_init to do that. Before you reboot, make sure you have taken other measures to protect your server.

Now reboot your system. In the boot menu (see Figure 31-1), select the SUSE Linux Enterprise Server 10 (XEN) option, and hit Enter. This will start the domain-0 environment. While the system is starting, watch all Xen components being started automatically.

N Startup Options

SUSE Linux Enterprise Server 10

SUSE Linux Enterprise Server 10

Floppy

SUSE Linux Enterprise Server 10 (Failsafe)

Figure 31-1. Make sure you select the SUSE Linux Enterprise Server 10 (XEN) option when you reboot your server.

Tip If your Xen environment has been configured, you will probably want to start it all the time from now on. To do that, open the boot loader configuration in YaST's System menu, and make it your default boot image. Check Chapter 10 for details about how to do that.

8. When the system is up and running again, open a terminal window, and as root, from that window, run the xm list command. This should give a result like in Listing 31-2, indicating that domain-0 is up and running.

Listing 31-2. Use the xm list Command to Check That Domain-0 Is Up and Running BTN:~ # xm list

Name ID Mem(MiB) VCPUs State Time(s)

If you've come this far, you're ready to configure the first virtual machine. In the next section you'll learn how.

Was this article helpful?

0 0

Post a comment