Chapter 9. Installing a Fully-virtualized Windows Guest
virt-install), launch the operating system's installer inside the guest, and access the installer through
virt-viewertool. This tool allows you to display the graphical console of a virtual machine (using the SPICE or VNC protocol). In doing so,
virt-viewerallows you to install a fully-virtualized guest's operating system with that operating system's installer .
- Creating the guest virtual machine, using either
- Installing the Windows operating system on the guest virtual machine, using
9.1. Using virt-install to Create a Guest
virt-installcommand allows you to create a fully-virtualized guest from a terminal, without the need for a GUI.
# virt-install \ --name=guest-name \ --os-type=windows \ --network network=default \ --disk path=path-to-disk,size=disk-size \ --cdrom=path-to-install-disk \ --graphics spice --ram=1024
path-to-diskmust be a device (e.g.
/dev/sda3) or image file (
/var/lib/libvirt/images/name.img). It must also have enough free space to support the
/var/lib/libvirt/images/by default. Other directory locations for file-based images are possible, but may require SELinux configuration. If you run SELinux in enforcing mode, refer to the Red Hat Enterprise Linux 6 Virtualization Administration Guide for more information on SELinux.
virt-installinteractively. To do so, use the
--promptcommand, as in:
# virt-install --prompt
virt-viewerwill launch the guest and run the operating system's installer. Refer to the relevant Microsoft installation documentation for instructions on how to install the operating system.