When I enable wsl2 through windows platform, win11 vm immediately starts to boot into advanced recovery console. Any advice?
I run Windows 11 as vm inside of proxmox 8. I successfully set gpu passthrough, and I am able to run Nvidia GPU inside of Win11. I can run games, furmark etc.
But when I try to run "Ubuntu" WSL2 in Windows, I get an error
As soon as I enable Virtual Machine Platform in Windows Features, windows stops to boot and immediately falls into Advanced Recovery Mode during startup. The only way to get it back is to manually load vsscsi driver there and then use
I went through many tutorials/forums. Already tried
I understand that I can easily create another VM on host proxmox and ssh there, but I still would like to have ability to run WSL.
VM Configuration:
Relevant parts of systeminfo output in Windows 11 vm
Proxmox
I run Windows 11 as vm inside of proxmox 8. I successfully set gpu passthrough, and I am able to run Nvidia GPU inside of Win11. I can run games, furmark etc.
But when I try to run "Ubuntu" WSL2 in Windows, I get an error
Code:
WslRegisterDistribution failed with error: 0x80370102
Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
As soon as I enable Virtual Machine Platform in Windows Features, windows stops to boot and immediately falls into Advanced Recovery Mode during startup. The only way to get it back is to manually load vsscsi driver there and then use
bcdedit /set hypervisorlaunchtype off
to disable hyperv/windows virtualization.I went through many tutorials/forums. Already tried
-kvm
arg in vm configuration, tried hidden=1
in various combinations. The result is the same all the time.I understand that I can easily create another VM on host proxmox and ssh there, but I still would like to have ability to run WSL.
VM Configuration:
Code:
agent: 1
args: -cpu host,-hypervisor,+vmx
balloon: 0
bios: ovmf
boot: order=scsi1;net0;hostpci0;ide0;ide2
cores: 32
cpu: host,hidden=1
efidisk0: local-lvm:vm-101-disk-2,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:01:00,pcie=1,x-vga=1
hostpci1: 0000:00:14,pcie=1
ide2: local:iso/virtio-win.iso,media=cdrom,size=522284K
kvm: 1
machine: pc-q35-8.0
memory: 61440
meta: creation-qemu=8.0.2,ctime=1692921033
name: winvm
net0: e1000=CE:84:8B:44:AF:AB,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsi1: /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S73WNJ0W320367J,size=1953514584K
scsihw: virtio-scsi-single
smbios1: uuid=9eb9d91e-9f15-4202-a969-3cad45232285
sockets: 1
tpmstate0: local-lvm:vm-101-disk-0,size=4M,version=v2.0
vmgenid: 8a838a99-4567-472c-90bb-27991d71b95b
Relevant parts of systeminfo output in Windows 11 vm
Code:
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22621 N/A Build 22621
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 183 Stepping 1 GenuineIntel ~2995 Mhz
BIOS Version: EFI Development Kit II / OVMF 3.20230228-4, 6/6/2023
Hyper-V Requirements: VM Monitor Mode Extensions: Yes
Virtualization Enabled In Firmware: Yes
Second Level Address Translation: Yes
Data Execution Prevention Available: Yes
Proxmox
Code:
pveversion -v
proxmox-ve: 8.0.1 (running kernel: 6.2.16-3-pve)
pve-manager: 8.0.3 (running version: 8.0.3/bbf3993334bfa916)
pve-kernel-6.2: 8.0.2
pve-kernel-6.2.16-3-pve: 6.2.16-3
ceph-fuse: 17.2.6-pve1+3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx2
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-3
libknet1: 1.25-pve1
libproxmox-acme-perl: 1.4.6
libproxmox-backup-qemu0: 1.4.0
libproxmox-rs-perl: 0.3.0
libpve-access-control: 8.0.3
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.0.5
libpve-guest-common-perl: 5.0.3
libpve-http-server-perl: 5.0.3
libpve-rs-perl: 0.8.3
libpve-storage-perl: 8.0.1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve3
novnc-pve: 1.4.0-2
proxmox-backup-client: 2.99.0-1
proxmox-backup-file-restore: 2.99.0-1
proxmox-kernel-helper: 8.0.2
proxmox-mail-forward: 0.1.1-1
proxmox-mini-journalreader: 1.4.0
proxmox-widget-toolkit: 4.0.5
pve-cluster: 8.0.1
pve-container: 5.0.3
pve-docs: 8.0.3
pve-edk2-firmware: 3.20230228-4
pve-firewall: 5.0.2
pve-firmware: 3.7-1
pve-ha-manager: 4.0.2
pve-i18n: 3.0.4
pve-qemu-kvm: 8.0.2-3
pve-xtermjs: 4.16.0-3
qemu-server: 8.0.6
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.1.12-pve1