Skip to content

Commit abc7b87

Browse files
authored
Merge pull request #62430 from apinnick/OCPBUGS-16184-fix-qemu-link
OCPBUGS-16184: Fix QEMU link
2 parents 46da6dd + 08aaf8c commit abc7b87

File tree

1 file changed

+26
-29
lines changed

1 file changed

+26
-29
lines changed

modules/virt-adding-virtio-drivers-vm-yaml.adoc

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,22 @@
88
[id="virt-adding-virtio-drivers-vm-yaml_{context}"]
99
= Adding VirtIO drivers container disk to a virtual machine
1010

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.
1712

18-
.Prerequisites
13+
VirtIO drivers are paravirtualized device drivers required for Microsoft Windows VMs to run in {VirtProductName}.
1914

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+
====
2419

2520
.Procedure
2621

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:
3023
+
3124
[source,yaml]
3225
----
26+
# ...
3327
spec:
3428
domain:
3529
devices:
@@ -43,18 +37,21 @@ volumes:
4337
image: container-native-virtualization/virtio-win
4438
name: virtiocontainerdisk
4539
----
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

Comments
 (0)