18.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.
Note:
You must install Red Hat Enterprise Linux 5.0, 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 18.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.
Note
This example installs a virtual system within a file.
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.
-
Type xm create -c xen-guest to start the Red Hat Enterprise Linux 5.0 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.