I'm recently playing the PVE, and I encountered a nested virtualization issue
I need to run WSL2(Hyper-V) in the the Windows Server, after enabling the WSL2
My server model is:
The PVE version is 8.3.2
Below is the Windows VM Server configuration
I tried below flags on CPU, however when assigning 2 or more cores to the VM, the Windows will be stuck at the booting screen
When set 2 cores, the Windows stuck at booting screen
Anyone have any idea how to solve this issue?
Appreciate if you can help on this
I need to run WSL2(Hyper-V) in the the Windows Server, after enabling the WSL2
- When assigning a single socket with a single core CPU, or multiple sockets with a single core CPU to a guest Windows Server, the nested virtualization works fine
- When assigning a single socket with multiple cores CPU or multiple sockets with multiple cores CPU to a guest Windows Server, the Windows can't boot, and it gets stuck at the booting screen after I enable the WSL2.
My server model is:
Code:
Dell T560
CPU Intel(R) Xeon(R) Gold 5418Y (2 Sockets)
RAM 512GB
The PVE version is 8.3.2
Below is the Windows VM Server configuration
Code:
bios: ovmf
boot: order=sata1
cores: 1
cpu: host
efidisk0: local-lvm:vm-102-disk-0,size=4M
machine: pc-i440fx-8.1
memory: 16384
meta: creation-qemu=8.1.5,ctime=1732611982
name: Testing
net0: virtio=BC:24:11:92:DD:43,bridge=vmbr0
numa: 1
ostype: win11
sata0: NAS_Storage:iso/virtio-win-0.1.262.iso,media=cdrom,size=708140K
sata1: local-lvm:vm-102-disk-1,size=300G
sata2: local-lvm:vm-102-disk-2,size=2T
scsihw: virtio-scsi-single
smbios1: uuid=7879829e-e147-4796-a384-04e2b12b1e9d
sockets: 1
vmgenid: bcc13e58-c266-4b26-8b7c-8c02b313fe16
I tried below flags on CPU, however when assigning 2 or more cores to the VM, the Windows will be stuck at the booting screen
Code:
args: -cpu SandyBridge,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time,+vmx
args: -cpu host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_synic,hv_stimer,-hypervisor,+vmx
When set 2 cores, the Windows stuck at booting screen
Anyone have any idea how to solve this issue?
Appreciate if you can help on this
Last edited: