PCI Passthrough devices are ejectable/removable in Windows 11

kojibo

New Member
Jun 12, 2023
3
0
1
Hi,

I'm pretty new to proxmox and this is my first question here.
I have a proxmox server and I'm currenlty running a Windows 11 with a GPU (RTX 3070) and a USB controller (PCIE USB 3.1 card) passthroughed. After setting it up following a tutorial I made it work and I've been daily driving it for about a month now. Most of my problems are solved.

The only thing bothering me right now is that vital parts of the computer are considered ejectable by Windows 11 (see picture). I've read that using qemu version 6.0 instead of 7.2 can fix the issue and it does for the network card and scsi controller but not my pci passthroughed devices (GPU and USB controller).

I've also tried disabling hotplug completely and it didn't work.

I did not find a clear answer to this issue.

Can anyone explain this behavior and how to fix it?

Here is my VM config :

Code:
agent: 1
balloon: 0
bios: ovmf
boot: order=virtio0;net0
cores: 20
cpu: host
efidisk0: VMs:vm-101-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M
hostpci0: 0000:41:00,pcie=1,x-vga=1
hostpci1: 0000:84:00,pcie=1
hotplug: 0
machine: pc-q35-6.0
memory: 64000
meta: creation-qemu=7.2.0,ctime=1682560801
name: win11
net0: virtio=XX:XX:XX:XX,bridge=vmbr0,mtu=9000
numa: 0
onboot: 1
ostype: win11
protection: 1
scsihw: virtio-scsi-single
smbios1: uuid=9641c70d-2acb-432a-a67f-ee4130f3acd2
sockets: 1
tablet: 0
tpmstate0: VMs:vm-101-disk-1,size=4M,version=v2.0
vga: none
virtio0: VMs:vm-101-disk-2,cache=writeback,iothread=1,size=200G

Thank you so much in advance!
 

Attachments

  • Ejectable pci.png
    Ejectable pci.png
    15 KB · Views: 19
Last edited:
I've updated proxmox to v8 and tried with q35 v8.0 and I still have this problem.
 
One solution is using a script to modify windows registry at VM starup in order to hide these devices from removable devices. I don't wan't to do that : it feels like a workaround and not a permanent solution, it's tedious to produce for every VM and it needs admin rights to make it work.
 
I have the same Problem for W2019 VMs which I migrated from Hyper-V to Proxmox 8.2.2.
Any news regarding a solution?

Code:
{
  "data": {
    "machine": "pc-q35-8.1",
    "ostype": "win10",
    "name": "SRV",
    "bios": "ovmf",
    "balloon": 12288,
    "cpu": "host",
    "cores": 8,
    "sockets": 1,
    "boot": "order=scsi0",
    "numa": 0,
    "scsi0": "Lexar-zfs:vm-105-disk-0,iothread=1,size=200G,ssd=1",
    "meta": "creation-qemu=8.1.5,ctime=1718432908",
    "digest": "40b6f039f5c91eea68425db07114fa0bb0ff9901",
    "scsi1": "Lexar-zfs:vm-105-disk-1,iothread=1,size=50G",
    "smbios1": "uuid=b7dc9ccd-d53b-404c-b9c4-11ec1d95b5df",
    "net0": "virtio=00:15:5D:3D:6C:19,bridge=vmbr0,firewall=1",
    "vmgenid": "d64c1f1e-c354-4a31-88d4-736f08079846",
    "scsihw": "virtio-scsi-single",
    "memory": "24576",
    "efidisk0": "local-zfs:vm-105-disk-0,efitype=4m,pre-enrolled-keys=1,size=1M",
    "scsi2": "Lexar-zfs:vm-105-disk-2,iothread=1,size=800G",
    "onboot": 1
  }
}
 

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!