Hi everyone!
So I have my Proxmox server running and I have installed my first VM, a Windows 10 guest. I'm trying to get a PCI-e USB 3.0 card working via passthrough, but I keep having problems.
The host system sees the card and identifies it correctly as a VIA VL805 USB 3.0 Host Controller. However, when I try to add the card to the guest via the web GUI, it's not listed under "USB Device". I can find the device under "PCI Device", however, after adding it as a PCI Device, I start the VM and I get a log error, "Error: IOMMU not present".
Jumping over to the command line, I edit /etc/pve/qemu-server/101.conf to include "usb0: host=2109:3431", the USB device still doesn't show up under the guest VM. Here is the contents of my /etc/pve/qemu-server/101.conf:
bios: ovmf
boot: order=sata0;ide2;net0
cores: 4
efidisk0: RZ2tb:vm-101-disk-1,size=1M
ide2: none,media=cdrom
machine: pc-q35-5.2
memory: 16384
name: Windows10
net0: e1000=1A:31:38:E1:E0:EA,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
sata0: RZ2tb:vm-101-disk-0,cache=writeback,size=512G
scsihw: virtio-scsi-pci
smbios1: uuid=953effdc-134f-4775-8b3f-99ac0977717e
sockets: 2
usb0: host=2109:3431
vmgenid: 1ffae2eb-b775-4b7f-a4df-aa5a9261d098
And lspci:
lspci:
00:1a.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #2 (rev 06)
00:1d.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1 (rev 06)
04:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)
lsusb:
root@pve:~# lsusb
Bus 004 Device 003: ID 04ca:004b Lite-On Technology Corp. Keyboard
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 001 Device 006: ID 046b:ff31 American Megatrends, Inc.
Bus 001 Device 005: ID 046b:ff40 American Megatrends, Inc.
Bus 001 Device 004: ID 046b:ff20 American Megatrends, Inc.
Bus 001 Device 003: ID 046b:ff01 American Megatrends, Inc.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb with a flash drive inserted:
root@pve:~# lsusb
Bus 004 Device 003: ID 04ca:004b Lite-On Technology Corp. Keyboard
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 001 Device 006: ID 046b:ff31 American Megatrends, Inc.
Bus 001 Device 005: ID 046b:ff40 American Megatrends, Inc.
Bus 001 Device 004: ID 046b:ff20 American Megatrends, Inc.
Bus 001 Device 003: ID 046b:ff01 American Megatrends, Inc.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 015: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 002 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -t:
root@pve:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 3: Dev 3, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 2: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 3: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 4: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 7, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
I probably have something wrong, but I can't seem to figure out what it is.
Any suggestions?
Thanks!
zog
So I have my Proxmox server running and I have installed my first VM, a Windows 10 guest. I'm trying to get a PCI-e USB 3.0 card working via passthrough, but I keep having problems.
The host system sees the card and identifies it correctly as a VIA VL805 USB 3.0 Host Controller. However, when I try to add the card to the guest via the web GUI, it's not listed under "USB Device". I can find the device under "PCI Device", however, after adding it as a PCI Device, I start the VM and I get a log error, "Error: IOMMU not present".
Jumping over to the command line, I edit /etc/pve/qemu-server/101.conf to include "usb0: host=2109:3431", the USB device still doesn't show up under the guest VM. Here is the contents of my /etc/pve/qemu-server/101.conf:
bios: ovmf
boot: order=sata0;ide2;net0
cores: 4
efidisk0: RZ2tb:vm-101-disk-1,size=1M
ide2: none,media=cdrom
machine: pc-q35-5.2
memory: 16384
name: Windows10
net0: e1000=1A:31:38:E1:E0:EA,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
sata0: RZ2tb:vm-101-disk-0,cache=writeback,size=512G
scsihw: virtio-scsi-pci
smbios1: uuid=953effdc-134f-4775-8b3f-99ac0977717e
sockets: 2
usb0: host=2109:3431
vmgenid: 1ffae2eb-b775-4b7f-a4df-aa5a9261d098
And lspci:
lspci:
00:1a.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #2 (rev 06)
00:1d.0 USB controller: Intel Corporation C600/X79 series chipset USB2 Enhanced Host Controller #1 (rev 06)
04:00.0 USB controller: VIA Technologies, Inc. VL805 USB 3.0 Host Controller (rev 01)
lsusb:
root@pve:~# lsusb
Bus 004 Device 003: ID 04ca:004b Lite-On Technology Corp. Keyboard
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 001 Device 006: ID 046b:ff31 American Megatrends, Inc.
Bus 001 Device 005: ID 046b:ff40 American Megatrends, Inc.
Bus 001 Device 004: ID 046b:ff20 American Megatrends, Inc.
Bus 001 Device 003: ID 046b:ff01 American Megatrends, Inc.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb with a flash drive inserted:
root@pve:~# lsusb
Bus 004 Device 003: ID 04ca:004b Lite-On Technology Corp. Keyboard
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 046b:ff10 American Megatrends, Inc. Virtual Keyboard and Mouse
Bus 001 Device 006: ID 046b:ff31 American Megatrends, Inc.
Bus 001 Device 005: ID 046b:ff40 American Megatrends, Inc.
Bus 001 Device 004: ID 046b:ff20 American Megatrends, Inc.
Bus 001 Device 003: ID 046b:ff01 American Megatrends, Inc.
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 015: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive
Bus 002 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -t:
root@pve:~# lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
|__ Port 2: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 3, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
|__ Port 3: Dev 3, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 2: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 3: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 480M
|__ Port 4: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 7, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
I probably have something wrong, but I can't seem to figure out what it is.
Any suggestions?
Thanks!
zog