kubevirt: virtio-win-gt-x64.msi missing from latest virtio-container-disk

The setup shown in https://kubevirt.io/user-guide/user_workloads/startup_scripts/ where you can run

# install Qemu Tools (Drivers)
Start-Process msiexec -Wait -ArgumentList '/i e:\virtio-win-gt-x64.msi /qn /passive /norestart'

isn’t working anymore as virtio-win-gt-x64.msi seems to be missing from the latest virtio-container-disk. Can you confirm this is the case, and if so, suggest any workaround?

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 1
  • Comments: 15 (10 by maintainers)

Most upvoted comments

In general, I would suggest we delete the latest tag and update the documentation.

The files, including virtio-win-gt-x64.msi, are visible in the container disk image on Linux but not showing up in Windows because the virtio drivers are distributed in a form of a container disk that needs to be attached to the VirtualMachine as a CD-ROM. If the container disk is not properly attached or recognized by the Windows VM, the files will not be visible.

To ensure the virtio drivers are available in Windows, you need to attach the virtio-win package as a SATA CD-ROM to the VirtualMachine. Here is how you can do it:

spec:
  domain:
    devices:
      disks:
        - name: virtiocontainerdisk
          cdrom:
            bus: sata
volumes:
  - containerDisk:
      image: quay.io/kubevirt/virtio-container-disk
    name: virtiocontainerdisk

Make sure the virtio container disk is properly attached and recognized by the Windows VM. Once attached, you should be able to see and access the files, including virtio-win-gt-x64.msi, in Windows [1].

To continue talking to Dosu, mention @dosu.

Hey @waldner! I’m here to help you with any bugs, questions, or contributions. Let’s work together to solve this issue.

The virtio-win-gt-x64.msi file is indeed missing from the latest virtio-container-disk image. As a workaround, you can manually download the VirtIO drivers from the official Fedora repository or another trusted source and include them in your setup. Alternatively, you can revert to an older version of the virtio-container-disk that still includes the necessary MSI file.

You can find the official repository for the virtio-container-disk image and check its contents and history at quay.io [1].

To continue talking to Dosu, mention @dosu.