17.7. Creating a New Virtual Machine
The Virtual Machine Manager (virt-manager) is the desktop application that manages virtual machines.
You can use Red Hat's Virtual Machine Manager to:
Create new domains.
Configure or adjust a domain's resource allocation and virtual hardware.
Summarize running domains with live performance and resource utilization statistics.
Display graphs that show performance and resource utilization over time.
Use the embedded VNC client viewer which presents a full graphical console to the guest domain.
You must install Red Hat Enterprise Linux , virt-manager, and the kernel packages on all systems that require virtualization. All systems then must be booted and running the Red Hat Virtualization kernel.
These are the steps required to install a guest operating system on Red Hat Enterprise Linux 5 using the Virtual Machine Monitor:
Procedure 17.1. Creating a Guest Operating System
From the Applications menu, select System Tools and then Virtual Machine Manager.
The Virtual Machine Manager main window appears.
From the File menu, select New machine.
The Creating a new virtual system wizard appears.
Click Forward.
Enter the name of the new virtual system and then click Forward.
Enter the location of your install media. Location of the kickstart file is optional. Then click Forward .
Install either to a physical disk partition or install to a virtual file system within a file.
This example installs a virtual system within a file.
SELinux policy only allows xen disk images to reside in /var/lib/xen/images.
Open a terminal and create the /xen directory and set the SELinux policy with the command restorecon -v /xen. Specify your location and the size of the virtual disk, then click Forward.
Select memory to allocate the guest and the number of virtual CPUs then click Forward.
Select Forward to open a console and the files start to install.
Complete your installation in the window provided.
When installing Red Hat Enterprise Linux on a fully virtualized guest, do not use the kernel-xen kernel. Using this kernel on fully virtualized guests can cause your system to hang.
If you are using an Installation Number when installing Red Hat Enterprise Linux on a fully virtualized guest, be sure to deselect the Virtualization package group during the installation. The Virtualization package group option installs the kernel-xen kernel.
Note that paravirtualized guests are not affected by this issue. Paravirtualized guests always use the kernel-xen kernel.
Type xm create -c xen-guest to start the Red Hat Enterprise Linux guest. Right click on the guest in the Virtual Machine Manager and choose Open to open a virtual console.
Enter user name and password to continue using the Virtual Machine Manager.