Windows 11 vm with wsl2 enabled freezes

lk777

Member
Oct 27, 2021
37
2
13
I have tried to create a vm with Windows 11 + wsl2 enabled and it works but freezes after a few minutes.
The nested virtualization is enabled.
I had bad luck with the similar project on the Ubuntu qemu/kvm server but there wsl just broke a guest OS completely.

Is there something "special" about wsl virtualization (nested) that can't be implemented on the kvm hypervisor?
Have not tried it on any other types of hypervisors.
 
Please post your:

> pveversion -v

and:

> qm config VMID (of your windows 11)

and tell details about your physical hardware (CPU, Mainboard)
 
pveversion -v:

Code:
proxmox-ve: 7.1-1 (running kernel: 5.13.19-1-pve)
pve-manager: 7.1-4 (running version: 7.1-4/ca457116)
pve-kernel-5.13: 7.1-4
pve-kernel-helper: 7.1-4
pve-kernel-5.13.19-1-pve: 5.13.19-2
ceph-fuse: 15.2.15-pve1
corosync: 3.1.5-pve2
criu: 3.15-1+pve-1
glusterfs-client: 9.2-1
ifupdown2: 3.1.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-1
libknet1: 1.22-pve2
libproxmox-acme-perl: 1.4.0
libproxmox-backup-qemu0: 1.2.0-1
libpve-access-control: 7.1-1
libpve-apiclient-perl: 3.2-1
libpve-common-perl: 7.0-14
libpve-guest-common-perl: 4.0-3
libpve-http-server-perl: 4.0-3
libpve-storage-perl: 7.0-15
libspice-server1: 0.14.3-2.1
lvm2: 2.03.11-2.1
lxc-pve: 4.0.9-4
lxcfs: 4.0.8-pve2
novnc-pve: 1.2.0-3
proxmox-backup-client: 2.0.14-1
proxmox-backup-file-restore: 2.0.14-1
proxmox-mini-journalreader: 1.2-1
proxmox-widget-toolkit: 3.4-2
pve-cluster: 7.1-2
pve-container: 4.1-2
pve-docs: 7.1-2
pve-edk2-firmware: 3.20210831-2
pve-firewall: 4.2-5
pve-firmware: 3.3-3
pve-ha-manager: 3.3-1
pve-i18n: 2.6-1
pve-qemu-kvm: 6.1.0-2
pve-xtermjs: 4.12.0-1
qemu-server: 7.1-3
smartmontools: 7.2-1
spiceterm: 3.2-2
swtpm: 0.7.0~rc1+2
vncterm: 1.7-1
zfsutils-linux: 2.1.1-pve3

qm config 106:

Code:
agent: 1
audio0: device=ich9-intel-hda,driver=spice
balloon: 4096
bios: ovmf
boot: order=sata0;ide2;net0;ide0
cores: 2
cpu: host
efidisk0: zfsa:vm-106-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
ide0: zfsa_mp:iso/virtio-win-0.1.208.iso,media=cdrom,size=543390K
ide2: none,media=cdrom
machine: pc-i440fx-6.1
memory: 6144
meta: creation-qemu=6.1.0,ctime=1639089665
name: win11-ws-1
net0: e1000=8A:54:C0:C7:F8:EC,bridge=vmbr0
numa: 0
ostype: win11
parent: snap_kvm64_q35
sata0: zfsa_mp:106/vm-106-disk-0.qcow2,discard=on,size=44G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=9dc0ad86-64b4-490c-9119-0c4cacf28c87
sockets: 1
spice_enhancements: foldersharing=1,videostreaming=all
tpmstate0: zfsa:vm-106-disk-1,size=4M,version=v2.0
vga: qxl,memory=128
vmgenid: 1f63ac6e-404e-497b-b095-9b7803635590


lscpu:

Code:
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
Address sizes:                   48 bits physical, 48 bits virtual
CPU(s):                          12
On-line CPU(s) list:             0-11
Thread(s) per core:              2
Core(s) per socket:              6
Socket(s):                       1
NUMA node(s):                    1
Vendor ID:                       AuthenticAMD
CPU family:                      25
Model:                           80
Model name:                      AMD Ryzen 5 5600G with Radeon Graphics
Stepping:                        0
Frequency boost:                 enabled
CPU MHz:                         3900.000
CPU max MHz:                     4463.6709
CPU min MHz:                     1400.0000
BogoMIPS:                        7785.49
Virtualization:                  AMD-V
L1d cache:                       192 KiB
L1i cache:                       192 KiB
L2 cache:                        3 MiB
L3 cache:                        16 MiB
NUMA node0 CPU(s):               0-11

dmidecode -t 2:

Code:
Base Board Information
        Manufacturer: Gigabyte Technology Co., Ltd.
        Product Name: B550I AORUS PRO AX
        Version: Default string
        Serial Number: Default string
        Asset Tag: Default string
        Features:
                Board is a hosting board
                Board is replaceable
        Location In Chassis: Default string
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

dmidecode -t memory:

Code:
SMBIOS 3.3.0 present.

Handle 0x000B, DMI type 16, 23 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: None
        Maximum Capacity: 128 GB
        Error Information Handle: 0x000A
        Number Of Devices: 4

Handle 0x0012, DMI type 17, 92 bytes
Memory Device
        Array Handle: 0x000B
        Error Information Handle: 0x0011
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: Unknown
        Set: None
        Locator: DIMM 0
        Bank Locator: P0 CHANNEL A
        Type: Unknown
        Type Detail: Unknown
        Speed: Unknown
        Manufacturer: Unknown
        Serial Number: Unknown
        Asset Tag: Not Specified
        Part Number: Unknown
        Rank: Unknown
        Configured Memory Speed: Unknown
        Minimum Voltage: Unknown
        Maximum Voltage: Unknown
        Configured Voltage: Unknown
        Memory Technology: Unknown
        Memory Operating Mode Capability: Unknown
        Firmware Version: Unknown
        Module Manufacturer ID: Unknown
        Module Product ID: Unknown
        Memory Subsystem Controller Manufacturer ID: Unknown
        Memory Subsystem Controller Product ID: Unknown
        Non-Volatile Size: None
        Volatile Size: None
        Cache Size: None
        Logical Size: None

Handle 0x0014, DMI type 17, 92 bytes
Memory Device
        Array Handle: 0x000B
        Error Information Handle: 0x0013
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 16 GB
        Form Factor: DIMM
        Set: None
        Locator: DIMM 1
        Bank Locator: P0 CHANNEL A
        Type: DDR4
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 3200 MT/s
        Manufacturer: Unknown
        Serial Number: 00000000
        Asset Tag: Not Specified
        Part Number: F4-3200C16-16GVK
        Rank: 1
        Configured Memory Speed: 3200 MT/s
        Minimum Voltage: 1.2 V
        Maximum Voltage: 1.2 V
        Configured Voltage: 1.2 V
        Memory Technology: DRAM
        Memory Operating Mode Capability: Volatile memory
        Firmware Version: Unknown
        Module Manufacturer ID: Bank 5, Hex 0xCD
        Module Product ID: Unknown
        Memory Subsystem Controller Manufacturer ID: Unknown
        Memory Subsystem Controller Product ID: Unknown
        Non-Volatile Size: None
        Volatile Size: 16 GB
        Cache Size: None
        Logical Size: None

Handle 0x0017, DMI type 17, 92 bytes
Memory Device
        Array Handle: 0x000B
        Error Information Handle: 0x0016
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: Unknown
        Set: None
        Locator: DIMM 0
        Bank Locator: P0 CHANNEL B
        Type: Unknown
        Type Detail: Unknown
        Speed: Unknown
        Manufacturer: Unknown
        Serial Number: Unknown
        Asset Tag: Not Specified
        Part Number: Unknown
        Rank: Unknown
        Configured Memory Speed: Unknown
        Minimum Voltage: Unknown
        Maximum Voltage: Unknown
        Configured Voltage: Unknown
        Memory Technology: Unknown
        Memory Operating Mode Capability: Unknown
        Firmware Version: Unknown
        Module Manufacturer ID: Unknown
        Module Product ID: Unknown
        Memory Subsystem Controller Manufacturer ID: Unknown
        Memory Subsystem Controller Product ID: Unknown
        Non-Volatile Size: None
        Volatile Size: None
        Cache Size: None
        Logical Size: None

Handle 0x0019, DMI type 17, 92 bytes
Memory Device
        Array Handle: 0x000B
        Error Information Handle: 0x0018
        Total Width: 64 bits
        Data Width: 64 bits
        Size: 16 GB
        Form Factor: DIMM
        Set: None
        Locator: DIMM 1
        Bank Locator: P0 CHANNEL B
        Type: DDR4
        Type Detail: Synchronous Unbuffered (Unregistered)
        Speed: 3200 MT/s
        Manufacturer: Unknown
        Serial Number: 00000000
        Asset Tag: Not Specified
        Part Number: F4-3200C16-16GVK
        Rank: 1
        Configured Memory Speed: 3200 MT/s
        Minimum Voltage: 1.2 V
        Maximum Voltage: 1.2 V
        Configured Voltage: 1.2 V
        Memory Technology: DRAM
        Memory Operating Mode Capability: Volatile memory
        Firmware Version: Unknown
        Module Manufacturer ID: Bank 5, Hex 0xCD
        Module Product ID: Unknown
        Memory Subsystem Controller Manufacturer ID: Unknown
        Memory Subsystem Controller Product ID: Unknown
        Non-Volatile Size: None
        Volatile Size: 16 GB
        Cache Size: None
        Logical Size: None
 
Hi Tom,

My sources.list was missing Proxmox VE No-Subscription Repository.

I have added this repository and installed a new kernel pve-kernel-5.15.5-1-pve but it didn't help.

But had some fun with my lost dkms rtl8125 (a kernel upgrade).

Windows 11 doesn't use Hyper-V for the wsl feature, wsl --install enables some mysterious Virtual Machine Platform. It is not a hypervisor if I understand it correctly.

UPDATE:

Virtual Machine Platform does use Hyper-V implicitly. According to VirtualBox issues with Windows 11/wsl, Hyper-V competes with the host hypervisor for resources.
 
Last edited:
I tested the same on a Ryzen 7 2700x and it freezes too.

But works without issue on a (really old) Intel Xeon E5-2620v2.

Nesting (windows) with Intel CPU is generally working better.
 
This configuration works for me (w/WSL2/WSLg ) with AMD Ryzen:

Code:
agent: 1
args: -cpu 'host,+svm' -machine 'vmport=off'
audio0: device=ich9-intel-hda,driver=spice
bios: ovmf
boot: order=scsi0;ide2;net0;sata0
cores: 4
cpu: host
efidisk0: zfsa:vm-107-disk-1,efitype=4m,pre-enrolled-keys=1,size=1M
ide2: zfsa_mp:iso/win11-ent-eval.iso,media=cdrom
machine: pc-q35-6.1
memory: 6144
meta: creation-qemu=6.1.0,ctime=1639951596
name: win11-vm-2
net0: virtio=92:A8:96:BA:A4:EF,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
sata0: zfsa_mp:iso/virtio-win-0.1.208.iso,media=cdrom,size=543390K
scsi0: zfsa:vm-107-disk-0,discard=on,size=64G,ssd=1
scsihw: virtio-scsi-pci
smbios1: uuid=83d2b965-8b47-47f6-8cfa-37cce176b54a
sockets: 1
tpmstate0: zfsa:vm-107-disk-2,size=4M,version=v2.0
vga: virtio,memory=512
vmgenid: 8ec00d11-10ce-4a1c-937b-539dc6e86633

It works with SPICE as well, but I just prefer RDP with Windows (no issues with audio streaming).
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!