You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= Adding VirtIO drivers container disk to a virtual machine
10
10
11
-
{VirtProductName} distributes VirtIO drivers for Microsoft Windows as a
12
-
container disk, which is available from the
13
-
link:https://access.redhat.com/containers/#/registry.access.redhat.com/container-native-virtualization/virtio-win[Red Hat Ecosystem Catalog].
14
-
To install these drivers to a Windows virtual machine, attach the
15
-
`container-native-virtualization/virtio-win` container disk to the virtual machine as a SATA CD drive
16
-
in the virtual machine configuration file.
11
+
You can add a VirtIO drivers container disk to a Windows virtual machine (VM) as a SATA CD drive.
17
12
18
-
.Prerequisites
13
+
VirtIO drivers are paravirtualized device drivers required for Microsoft Windows VMs to run in {VirtProductName}.
19
14
20
-
* Download the `container-native-virtualization/virtio-win` container disk from the
21
-
link:https://access.redhat.com/containers/#/registry.access.redhat.com/container-native-virtualization/virtio-win[Red Hat Ecosystem Catalog].
22
-
This is not mandatory, because the container disk will be downloaded from the Red Hat registry
23
-
if it not already present in the cluster, but it can reduce installation time.
15
+
[TIP]
16
+
====
17
+
Downloading the `container-native-virtualization/virtio-win` container disk from the link:https://catalog.redhat.com/software/containers/search?q=virtio-win&p=1[Red Hat Ecosystem Catalog] is not mandatory, because the container disk is downloaded from the Red Hat registry if it not already present in the cluster. However, downloading reduces the installation time.
18
+
====
24
19
25
20
.Procedure
26
21
27
-
. Add the `container-native-virtualization/virtio-win` container disk as a `cdrom` disk in the
28
-
Windows virtual machine configuration file. The container disk will be
29
-
downloaded from the registry if it is not already present in the cluster.
22
+
. Add the `container-native-virtualization/virtio-win` container disk as a CD drive by editing the `VirtualMachine` manifest:
30
23
+
31
24
[source,yaml]
32
25
----
26
+
# ...
33
27
spec:
34
28
domain:
35
29
devices:
@@ -43,18 +37,21 @@ volumes:
43
37
image: container-native-virtualization/virtio-win
44
38
name: virtiocontainerdisk
45
39
----
46
-
<1> {VirtProductName} boots virtual machine disks in the order defined in the
47
-
`VirtualMachine` configuration file. You can either define other disks for the
48
-
virtual machine before the `container-native-virtualization/virtio-win` container disk or use the optional
49
-
`bootOrder` parameter to ensure the virtual machine boots from the correct disk.
50
-
If you specify the `bootOrder` for a disk, it must be specified for all disks
51
-
in the configuration.
52
-
53
-
. The disk is available once the virtual machine has started:
54
-
** If you add the container disk to a running virtual machine, use
55
-
`oc apply -f <vm.yaml>` in the CLI or reboot the virtual machine for the changes
56
-
to take effect.
57
-
** If the virtual machine is not running, use `virtctl start <vm>`.
58
-
59
-
After the virtual machine has started, the VirtIO drivers can be installed from
60
-
the attached SATA CD drive.
40
+
<1> {VirtProductName} boots the VM disks in the order defined in the `VirtualMachine` manifest. You can either define other VM disks that boot before the `container-native-virtualization/virtio-win` container disk or use the optional `bootOrder` parameter to ensure the VM boots from the correct disk. If you configure the boot order for a disk, you must configure the boot order for the other disks.
41
+
42
+
. Apply the changes:
43
+
* If the VM is not running, run the following command:
44
+
+
45
+
[source, terminal]
46
+
----
47
+
$ `virtctl start <vm>`
48
+
----
49
+
50
+
* If the VM is running, reboot the VM or run the following command:
51
+
+
52
+
[source, terminal]
53
+
----
54
+
$ run `oc apply -f <vm.yaml>`
55
+
----
56
+
57
+
. After the virtual machine has started, install the VirtIO drivers from the SATA CD drive.
0 commit comments