Product SiteDocumentation Site

Chapter 7. Installing Windows XP as a fully virtualized guest

Windows XP can be installed as a fully virtualized guest. This section describes how to install Windows XP as a fully virtualized guest on Fedora.
Before commencing this procedure ensure you must have root access.
  1. Starting virt-manager

    Open Applications > System Tools > Virtual Machine Manager. Open a connection to a host (click File > Add Connection). Click the New button to create a new virtual machine.
  2. Naming your guest

    Enter the System Name and click the Forward button.
  3. Choosing a virtualization method

    The Choosing a virtualization method window appears.
    Full virtualization requires a processor with the AMD 64 and the AMD-V extensions or a processor with the Intel 64 and Intel VT extensions. If the virtualization extensions are not present, KVM will not be avilable.
    Press Forward to continue.
  4. Choosing an installation method

    This screen enables you to specify the installation method and the type of operating system.
    Select Windows from the OS Type list and Microsoft Windows XP from the OS Variant list.
    PXE installation is not covered by this chapter.

    Image files and SELinux

    For ISO image files and guest storage images the recommended to use the /var/lib/libvirt/images/ directory. Any other location may require additional configuration for SELinux, refer to Section 19.2, “SELinux and virtualization” for details.
    Press Forward to continue.
  5. Choose installation image

    Choose the installation image or CD-ROM. For CD-ROM or DVD installation select the device with the Windows installation disc in it. If you chose ISO Image Location enter the path to a Windows installation .iso image.
    Press Forward to continue.
  6. The Storage window displays. Choose a disk partition, LUN or create a file-based image for the guest's storage.
    All image files should be stored in the /var/lib/libvirt/images/ directory. Other directory locations for file-based images are prohibited by SELinux. If you run SELinux in enforcing mode, refer to Section 19.2, “SELinux and virtualization” for more information on installing guests.
    Allocate extra space if the guest needs additional space for applications or other data. For example, web servers require additional space for log files.
    Choose the appropriate size for the guest on your selected storage type and click the Forward button.

    Note

    It is recommend that you use the default directory for virtual machine images, /var/lib/libvirt/images/. If you are using a different location (such as /images/ in this example) make sure it is added to your SELinux policy and relabeled before you continue with the installation (later in the document you will find information on how to modify your SELinux policy)
  7. Network setup

    Select either Virtual network or Shared physical device.
    The virtual network option uses Network Address Translation (NAT) to share the default network device with the virtualized guest. Use the virtual network option for wireless networks.
    The shared physical device option uses a network bond to give the virtualized guest full access to a network device.
    Press Forward to continue.
  8. The Memory and CPU Allocation window displays. Choose appropriate values for the virtualized CPUs and RAM allocation. These values affect the host's and guest's performance.
    Virtualized guests require sufficient physical memory (RAM) to run efficiently and effectively. Choose a memory value which suits your guest operating system and application requirements. Most operating system require at least 512MB of RAM to work responsively. Remember, guests use physical RAM. Running too many guests or leaving insufficient memory for the host system results in significant usage of virtual memory and swapping. Virtual memory is significantly slower causing degraded system performance and responsiveness. Ensure to allocate sufficient memory for all guests and the host to operate effectively.
    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. Do not assign more virtual CPUs than there are physical processors (or hyper-threads) available on the host system. It is possible to over allocate virtual processors, however, over allocating has a significant, negative effect on guest and host performance due to processor context switching overheads.
  9. Before the installation continues you will see the summary screen. Press Finish to proceed to the guest installation:
  10. You must make a hardware selection so open a console window quickly after the installation starts. Click Finish then switch to the virt-manager summary window and select your newly started Windows guest. Double click on the system name and the console window opens. Quickly and repeatedly press F5 to select a new HAL, once you get the dialog box in the Windows install select the 'Generic i486 Platform' tab. Scroll through selections with the Up and Down arrows.
  11. The installation continues with the standard Windows installation.
  12. Partition the hard drive when prompted.
  13. After the drive is formatted, Windows starts copying the files to the hard drive.
  14. The files are copied to the storage device, Windows now reboots.
  15. Restart your Windows guest:
    # virsh start WindowsGuest
    
    Where WindowsGuest is the name of your virtual machine.
  16. When the console window opens, you will see the setup phase of the Windows installation.
  17. If your installation seems to get stuck during the setup phase, restart the guest with virsh reboot WindowsGuestName. When you restart the virtual machine, the Setup is being restarted message displays:
  18. After setup has finished you will see the Windows boot screen:
  19. Now you can continue with the standard setup of your Windows installation:
  20. The setup process is complete.