vGPU support stops working with guest CPU set to host.

snowbanx

New Member
Mar 10, 2023
2
0
1
I have two Win 11 VM's that I want to use a Telsa P4 split into two.

First VM works fine, CPU set to host.
Second VM works fine, but CPU set to x86-64-v2-AES.

I tried to set up WSL2 on the second VM but it complained about the CPU. I forgot to set the CPU to host for nested virtualization. After setting the CPU to host, the GPU no longer works. If i set the CPU back to x86-64-v2-AES the GPU works fine again.

Am I missing something for why this won't work?

Thanks,
 
I also tried messing around with the first VM set to x86-64-v2-AES and the second to host and it still shows and error on the GPU. I have to be missing something in my config.

VM1
Code:
agent: 1
args: -uuid 00000000-0000-0000-0000-000000000142
bios: ovmf
boot: order=sata0;net0
cores: 8
cpu: host
efidisk0: local-1tb-NVME:vm-142-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:0b:00.0,mdev=nvidia-65
machine: pc-q35-8.1
memory: 8192
meta: creation-qemu=8.1.5,ctime=1716236886
name: Windows11
net0: virtio=BC:24:11:09:E0:0F,bridge=vmbr0
numa: 0
ostype: win11
sata0: local-1tb-NVME:vm-142-disk-1,discard=on,size=128G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=20ab7d61-0d22-4cf2-9ba6-644c1d7c83d7
sockets: 1
tpmstate0: local-lvm:vm-142-disk-2,size=4M,version=v2.0
vmgenid: 00374806-0e0f-43de-806d-34c03056c0f2

VM2
Code:
agent: 1
args: -uuid 00000000-0000-0000-0000-000000000144
bios: ovmf
boot: order=scsi0;ide2;net0
cores: 8
cpu: x86-64-v2-AES
efidisk0: local-5tb-raid5:vm-144-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:0b:00.0,mdev=nvidia-65
machine: pc-q35-8.1
memory: 32768
meta: creation-qemu=9.0.2,ctime=1738548829
name: AI-Machine
net0: virtio=BC:24:11:50:05:EA,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsi0: local-1tb-NVME:vm-144-disk-0,cache=writeback,discard=on,iothread=1,size=128G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=9144a349-4777-484c-8a32-38be1830cb89
sockets: 1
tpmstate0: local-5tb-raid5:vm-144-disk-1,size=4M,version=v2.0
vmgenid: 4e51b551-1ccb-4c3d-aaa3-738a17824349