question

43642982 avatar image
0 Votes"
43642982 asked Monalla-MSFT commented

Can not install Windows Server 1909 in a kubevirt VM

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
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,

Are you still having issues ? If so, please take a look at the below comment and provide us with the details.

0 Votes 0 ·
Monalla-MSFT avatar image
0 Votes"
Monalla-MSFT answered MirceaM-2237 commented

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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, the author of the linked article here. Have you loaded the drivers, does the virtio disk show up in the installer? Can you post a screenshot of the error?

0 Votes 0 ·

I am having the same issue. The error says "Windows cannot be installed to this disk. This computer's hardware may not support booting to this disk"
117163-image.png


0 Votes 0 ·
image.png (79.2 KiB)
MirceaM-2237 avatar image
1 Vote"
MirceaM-2237 answered Monalla-MSFT commented

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thats great. Thanks for posting the solution that worked for you. Appreciate it.

0 Votes 0 ·