SUSE Conversations


Virtualization on SLES 10 using Xen and Creating a Virtual Machine



By: rraghu

March 28, 2008 5:08 pm

Reads:410

Comments:3

Rating:0

What is Xen?

Xen is a free software virtual machine monitor for IA-32, x86-64, IA-64 and PowerPC 970 architectures. It allows several guest operating systems to be executed on the same computer hardware, at the same time.

A Xen system is structured with the Xen Hypervisor as the lowest and most privileged layer. Above this layer are one or more guest operating systems, which the hypervisor schedules across the physical CPUs.

The first guest operating system (also called as host operating system) domain 0 or dom0 in Xen terminology is booted when the hypervisor boots and gets special management privileges and direct access to the physical hardware. The system administrator logs in to dom0 to start other guest operating systems. In Xen terminology, other guest operating systems are referred to as domain U or domU.

Novell provides package updates for Xen Hypervisor and Xen enabled Linux kernels.

Check the following links for more information on Xen:

http://www.novell.com/products/server/virtualization.html

http://forgeftp.novell.com//library/SLES%2010%20Virtualization%20Presentation/SLES_10_Virtualization_Presentation.pdf

Installing Xen on SLES 10 through YaST

Do the following steps to install Xen on SLES 10.

  1. Open YaST and type vi in the filter text box .
  2. Double-click the Install Hypervisor and Tools to install Xen packages.
  3. Click Continue in the dialog box that appears.
  4. Click OK to complete the installation. Type Boot in the Filter text box.
  5. Select Xen from the Boot Loader menu.
  6. When you set Xen as default, the following screen appears.
  7. Reboot the system.
  8. Verify that system reboots with Xen kernel, by executing the command on terminal uname -r. Check that out put of this command will show the xen kernel version.

    2.6.16.60-0.6-xen
  9. Open YaST and type vir. Create Virtual Machines and Virtual Machine Manager applications appear on the YaST screen.
    • Create Virtual Machines: Creates new virtual machines.
    • Virtual Machine Manager: Manages new virtual machines. You can also create a virtual machine by using Virtual Machine Manager.

Creating a Virtual Machine (VM)

In the following steps assume that you are creating a virtual machine of SLES 10.

NOTE: You must have different IP addresses for each of the virtual machines that you create.

Do the following steps:

  1. Click the Create Virtual Machines application in YaST. It invokes a window for creating virtual machine.
  2. Click Forward. The subsequent screens are self descriptive and guide you to create a virtual machine.

    Select the first option because you are installing operating system from scratch. Click Forward.

  3. Select the operating system that you are installing on the virtual machine. (Select SLES 10 as assumed above). Click Forward.
  4. Specify the machine settings required for virtual machine. You can change the default parameters by clicking on the setting. In addition, you can also change the default name of the virtual machine, hardware configuration, etc. Click OK to save your changes.
  5. Click the Hardware tab from the Screen*(Hyperlink). Change the memory setting, allocated processors of virtual machine. Click Apply for these changes to take effect immediately.
  6. Click the Operating System Installation tab from the Screen*(Hyperlink). Specify the installation source used for installing operating system. In this example, it is Network URL. Click Apply.
    NOTE: You can also install from a virtual disk or an autoYaST file.
  7. Click OK to save your changes. And to start the installation of operating system. The Installation console appears.

    The operating system installation is similar to the SLES 10 installation.

  8. After installing SLES 10 on the virtual machine, click the Virtual Machine Manager from the YaST.

    The Virtual Machine Manager manages the virtual machines. You can start, stop, and delete the virtual machine by using this console. You can also monitor the resources used by the different virtual machines.

  9. Double-click a virtual machine and its console appears. The console has the name of the virtual machine. You can now use the virtual machine as a real machine. Use console to start and stop the virtual machine.
  10. Use the same procedure to create virtual machines of different guest operating systems.

Enjoy using virtualization on SLES 10.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags: ,
Categories: SUSE Linux Enterprise Server, Technical Solutions, Virtualization

Disclaimer: As with everything else at SUSE Conversations, this content is definitely not supported by SUSE (so don't even think of calling Support if you try something and it blows up).  It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.

3 Comments

  1. By:p_b_h

    This is great reference for newbie like me.

Comment

RSS