cloudbase / windows-imaging-tools

Tools to automate the creation of a Windows image for OpenStack, supporting KVM, Hyper-V, ESXi and more.
Apache License 2.0
656 stars 225 forks source link

Windows 11 doesn't work on Openstack with Q35 VMs #371

Open mariusleu opened 1 year ago

mariusleu commented 1 year ago

I am creating qcow2 images for Openstack and setting hw_machine_type=q35 in Glance, which is a newer QEMU VM type. (related Openstack guide)

The VM starts but after 2-3 seconds the spinner hangs as in the attached screenshot.

I tried this on several hypervisors, with different hardware and different kernel versions, but the result is exactly the same.

The same image works well if hw_machine_type is removed (basically falling back to the old i440fx VM type).

Screenshot 2022-11-02 at 11 38 58
ader1990 commented 1 year ago

Hello,

I have tried to reproduce the issue with a Windows Server 2022 (build 20348), using q35 as machine type in Glance (pc-q35-2.11,accel=kvm,usb=off,dump-guest-core=off -cpu host -m 4096), and everything looks to be working fine. OpenStack version: Queens, using a Kolla OpenStack installation (Ubuntu 16.04, Linux 4.15.0-x).

I know that Windows 11 might have some issues with hardware requirements and might be the case with the freeze you are seeing - although the kernel should match the Windows 2022 if build versions coincide.

First of all, can you please share the output of <ps auxf|grep -i kvm> from the nova compute node (one process line should be enough, not all) to check if there are any differences vs the environment I have?

Secondly, the Windows 11 image, make sure that it has latest Fedora virtio drivers installed: https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.225-2/ .

Also, Windows 11 has been a continous build for quite a long time, it can be helpful to know the build number.

Thank you, Adrian Vladu