Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

  




 

 

Red Hat Enterprise Linux 6 Essentials eBook now available in PDF and ePub formats for only $9.99
RHEL 6 Essentials contains 40 chapters and over 250 pages.

Chapter 7. Installing Red Hat Enterprise Linux 6 as a virtualized guest

This Chapter covers how to install Red Hat Enterprise Linux 6 as a fully virtualized guest on Red Hat Enterprise Linux 6.
This procedure assumes that the KVM hypervisor and all other required packages are installed and the host is configured for virtualization. For more information on installing the virtualization pacakges, refer to Chapter 5, Installing the virtualization packages.

7.1. Creating a Red Hat Enterprise Linux 6 guest with local installation media

This procedure covers creating a virtualized Red Hat Enterprise Linux 6 guest with a locally stored installation DVD or DVD image. DVD images are available from rhn.redhat.com for Red Hat Enterprise Linux 6.
Procedure 7.1. Creating a Red Hat Enterprise Linux 6 guest with virt-manager
  1. Optional: Preparation

    Prepare the storage environment for the virtualized guest. For more information on preparing storage, refer to Part V, “Virtualization storage topics”.

    Note

    Various storage types may be used for storing virtualized guests. However, for a guest to be able to use migration features the guest must be created on networked storage.
    Red Hat Enterprise Linux 6 requires at least 1GB of storage space. However, Red Hat recommends at least 5GB of storage space for a Red Hat Enterprise Linux 6 installation and for the procedures in this guide.
  2. Open virt-manager and start the wizard

    Open virt-manager by executing the virt-manager command as root or opening Applications -> System Tools -> Virtual Machine Manager.
    The main virt-manager window
    Figure 7.1. The main virt-manager window

    Press the create new virtualized guest button (see figure Figure 7.2, “The create new virtualized guest button”) to start the new virtualized guest wizard.
    The create new virtualized guest button
    Figure 7.2. The create new virtualized guest button

    The Create a new virtual machine window opens.
  3. Name the virtualized guest

    Guest names can contain letters, numbers and the following characters: '_', '.' and '-'. Guest names must be unique for migration.
    Choose the Local install media (ISO image or CDROM) radio button.
    The Create a new virtual machine window - Step 1
    Figure 7.3. The Create a new virtual machine window - Step 1

    Press Forward to continue.
  4. Select the installation media

    Select the installation ISO image location or a DVD drive with the installation disc inside. This example uses an ISO file image of the Red Hat Enterprise Linux 6.0 installation DVD image.
    The Locate ISO media volume window
    Figure 7.4. The Locate ISO media volume window

    Image files and SELinux

    For ISO image files and guest storage images, the recommended directory to use is the /var/lib/libvirt/images/ directory. Any other location may require additional configuration for SELinux, refer to Section 16.2, “SELinux and virtualization” for details.
    Select the operating system type and version which match the installation media you have selected.
    The Create a new virtual machine window - Step 2
    Figure 7.5. The Create a new virtual machine window - Step 2

    Press Forward to continue.
  5. Set RAM and virtual CPUs

    Choose appropriate values for the virtualized CPUs and RAM allocation. These values affect the host's and guest's performance. Memory and virtualized CPUs can be overcommitted, for more information on overcommitting refer to Chapter 20, Overcommitting with KVM.
    Virtualized guests require sufficient physical memory (RAM) to run efficiently and effectively. Red Hat supports a minimum of 512MB of RAM for a virtualized guest. Red Hat recommends at least 1024MB of RAM for each logical core.
    Assign sufficient virtual CPUs for the virtualized guest. If the guest runs a multithreaded application, assign the number of virtualized CPUs the guest will require to run efficiently.
    You cannot assign more virtual CPUs than there are physical processors (or hyper-threads) available on the host system. The number of virtual CPUs available is noted in the Up to X available field.
    The Create a new virtual machine window - Step 3
    Figure 7.6. The Create a new virtual machine window - Step 3

    Press Forward to continue.
  6. Storage

    Enable and assign storage for the Red Hat Enterprise Linux 6 guest. Assign at least 5GB for a desktop installation or at least 1GB for a minimal installation.

    Migration

    Live and offline migrations require guests to be installed on shared network storage. For information on setting up shared storage for guests refer to Part V, “Virtualization storage topics”.
    1. With the default local storage

      Select the Create a disk image on the computer's hard drive radio button to create a file-based image in the default storage pool, the /var/lib/libvirt/images/ directory. Enter the size of the disk image to be created. If the Allocate entire disk now check box is selected, a disk image of the size specified will be created immediately. If not, the disk image will grow as it becomes filled.
      The Create a new virtual machine window - Step 4
      Figure 7.7. The Create a new virtual machine window - Step 4

    2. With a storage pool

      Select Select managed or other existing storage to use a storage pool.
      The Locate or create storage volume window
      Figure 7.8. The Locate or create storage volume window

      1. Press the browse button to open the storage pool browser.
      2. Select a storage pool from the Storage Pools list.
      3. Optional: Press the New Volume button to create a new storage volume. Enter the name of the new storage volume.
      4. Press the Choose Volume button to select the volume for the virtualized guest.
      The Create a new virtual machine window - Step 4
      Figure 7.9. The Create a new virtual machine window - Step 4

    Press Forward to continue.
  7. Verify and finish

    Verify there were no errors made during the wizard and everything appears as expected.
    Select the Customize configuration before install check box to change the guest's storage or network devices, to use the para-virtualized drivers or, to add additional devices.
    Press the Advanced options down arrow to inspect and modify advanced options. For a standard Red Hat Enterprise Linux 6 none of these options require modification.
    The Create a new virtual machine window - Step 5
    Figure 7.10. The Create a new virtual machine window - Step 5

    Press Finish to continue into the Red Hat Enterprise Linux installation sequence. For more information on installing Red Hat Enterprise Linux 6 refer to the Red Hat Enterprise Linux 6 Installation Guide.
A Red Hat Enterprise Linux 6 guest is now created from a an ISO installation disc image.

 
 
  Published under the terms of the Creative Commons License Design by Interspire