3.2. Starting the virtual machine using Run Once

3.2.1. Installing Windows on VirtIO-optimized hardware

Install VirtIO-optimized disk and network device drivers during your Windows installation by attaching the virtio-win_version.iso file to your virtual machine. These drivers provide a performance improvement over emulated device drivers.

Use the Run Once option to attach the virtio-win_version.iso file in a one-off boot different from the Boot Options defined in the New Virtual Machine window.

Prerequisites

The following items have been added to the virtual machine:

  • a Red Hat VirtIO network interface.
  • a disk that uses the VirtIO interface. This disk can be on a

You can upload virtio-win_version.iso to a data storage domain.

Note

Red Hat recommends uploading ISO images to the data domain with the Administration Portal or with the REST API. For more information, see Uploading Images to a Data Storage Domain in the Administration Guide.

If necessary, you can upload the virtio-win ISO file to an ISO storage domain that is hosted on the Manager. The ISO storage domain type is deprecated. For more information, see Uploading images to an ISO domain in the Administration Guide.

Procedure

To install the virtio-win drivers when installing Windows, complete the following steps:

  1. Click ComputeVirtual Machines and select a virtual machine.
  2. Click RunRun Once.
  3. Expand the Boot Options menu.
  4. Select the Attach CD check box, and select a Windows ISO from the drop-down list.
  5. Select the Attach Windows guest tools CD check box.
  6. Move CD-ROM to the top of the Boot Sequence field.
  7. Configure other Run Once options as required. See Section A.2, “Explanation of settings in the Run Once window” for more details.
  8. Click OK. The status of the virtual machine changes to Up, and the operating system installation begins.

    Open a console to the virtual machine if one does not open automatically during the Windows installation.

  9. When prompted to select a drive onto which you want to install Windows, click Load driver and OK.
  10. Under Select the driver to install, select the appropriate driver for the version of Windows. For example, for Windows Server 2019, select Red Hat VirtIO SCSI controller (E:\amd64\2k19\viostor.inf)
  11. Click Next.

The rest of the installation proceeds as normal.

3.2.2. Opening a console to a virtual machine

Use Remote Viewer to connect to a virtual machine.

Connecting to Virtual Machines

  1. Install Remote Viewer if it is not already installed. See Section 1.4.1, “Installing Console Components”.
  2. Click ComputeVirtual Machines and select a virtual machine.
  3. Click Console.

    • If the connection protocol is set to SPICE, a console window will automatically open for the virtual machine.
    • If the connection protocol is set to VNC, a console.vv file will be downloaded. Click the file and a console window will automatically open for the virtual machine.
Note

You can configure the system to automatically connect to a virtual machine. See Section 2.2.4, “Automatically Connecting to a Virtual Machine”.