Can not install Windows Server 1909 in a kubevirt VM

Fuchs, Matthias 1 Reputation point
2021-02-17T15:38:23.257+00:00

I followed this article by Alessandro Vozza to install kubevirt (v0.38.1) in an AKS cluster. Then, following the same source, I created a kubevirt VM which has an Windows Server 1909 ISO and a virtio driver ISO attached to it. The expectation was that after installing the virtio drivers the VM would be able to install Windows onto the VM hard drive (a PVC as in the linked article). However the installer refuses to install on the hard drive. Does anybody have experience with Windows VMs in kubevirt on AKS?

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,158 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Mircea-Tiberiu Matei 6 Reputation points
    2021-07-22T21:21:02.98+00:00

    Hi. I solved the issue. It is related to the mandatory bootOrder field on the disk attached to virtio bus. Adding bootOrder field will enable booting support. Amend the devices section as following

       devices:
          disks:
          - cdrom:
              bus: sata
            bootOrder: 2
            name: iso
          - disk:
              bus: virtio
            name: harddrive
            bootOrder: 1
          - cdrom:
              bus: sata
              readonly: true
            name: virtio-drivers
    
    1 person found this answer helpful.

  2. Monalla-MSFT 13,031 Reputation points
    2021-02-24T13:00:39.7+00:00

    Hello,

    Thanks for reaching out.

    Please take a look at this article and see if it helps resolve your issue - using-kubevirt-in-azure-kubernetes-service-part-3-windows-vm-363d6b653d7

    If the above response helped, please feel free to "Accept as Answer" so it can beneficial to the community.


  3. RandomDev123123 1 Reputation point
    2022-12-16T16:36:18.283+00:00

    tried your suggestion and still getting the same error can you share you entire vm yaml?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.