Hello,
Introduction:
I have been using Proxmox with a couple of VMs and LXC containers. One of the VMs is my NAS (OpenMediaVault 5).
Hardware:
- HP T630 Thin Client
- USB 3.0 HDD Enclosure (Lacie) with separate power supply.
In Proxmox, I passed through the USB device to the OpenMediaVault VM. And that worked fine.
The problem:
Yesterday, I switched to a different ISP and got a new modem/router. The old modem/router worked on subnet 192.168.178.x. The new one is on 192.168.2.x. This was not configurable, so I had to change all my VMs and LXC containers to this new subnet.
After I did that, I restarted Proxmox. Then I noticed my NAS HDD was no longer accessible. After some investigation, I figurerd out the USB HDD was not recognized by OpenMediaVault. Only the (virtual) drive OMV is installed on was visible. Multiple restarts of both the OMV VM and entire Proxmox did not solve this issue. Also replugging the USB cable did not fix it. Plugging the drive into a USB2 port does work, but because of the speed bottleneck, not a viable solution.
Errors I found:
It seems to be a similar problem to these topics I found. But most of these people had this issue when using lots of USB devices. In my case, there are only 2 USB devices in total connected to the whole machine. And the USB HDD is the only one on the USB3 port.
https://forum.proxmox.com/threads/u...devices-this-xhci-host-supports-is-32.100040/
https://superuser.com/questions/731751/not-enough-host-controller-resources-for-new-device-state
https://bugzilla.redhat.com/show_bug.cgi?id=1376579
https://github.com/pimox/pimox7/issues/48
The most obvious error I found was when doing 'dmesg':
The entire 'dmesg' output is attached to this post.
When I do 'lsusb', the 'LaCie' USB HDD Enclosure is found:
When I do 'lsblk', the HDD is NOT found:
Perhaps also relevant to mention: When the USB device is NOT passed through to any VM, in Proxmox under "Disks", I do see the HDD as 'sdc' (sda and sdb are internal SSDs used for 'local' and 'data'. When I pass the USB device through, 'sdc' disappears from this list (which makes sense).
What I tried:
- Restarting proxmox multiple times (did not fix).
- Remove the USB passthrough and shutdown the old OMV VM and make a new VM and install a whole new instance of (newer version) OMV6 (I had OMV5 running before). Passthrough the USB device to the new VM and new OMV6: Same problem.
- Made a new VM and installed TrueNAS: Same problem.
- Pass through the PCI XHCI controller instead of only the USB device. But then even under 'lsusb' it doesn't show up.
- Plug the USBHDD into a USB2 port and pass that through: That does work. The drive shows up in the OMV VM. But of course, too slow because of the USB2 bottleneck.
Now what?
So I've exhausted my know-how and googling abilities to fix this. The only thing remaining for me is to reinstall the entire Proxmox environment and start from scratch. But before I do that, I thought to make this topic and hope someone can point me in the right direction.
Summerized / TLDR:
- I had OMV with external USB3.0 HDD passed through working fine for months.
- After changing IP-adresses of VMs and LXCs and restarting Proxmox, the passed through HDD no longer shows up in OMV or under 'lsblk' (it does under 'lsusb').
- In the output of 'dmesg', I get the error: "usb 3-1: Not enough host controller resources for new device state."
Thanks in advance for the help! Let me know if you need more info.
Introduction:
I have been using Proxmox with a couple of VMs and LXC containers. One of the VMs is my NAS (OpenMediaVault 5).
Hardware:
- HP T630 Thin Client
- USB 3.0 HDD Enclosure (Lacie) with separate power supply.
In Proxmox, I passed through the USB device to the OpenMediaVault VM. And that worked fine.
The problem:
Yesterday, I switched to a different ISP and got a new modem/router. The old modem/router worked on subnet 192.168.178.x. The new one is on 192.168.2.x. This was not configurable, so I had to change all my VMs and LXC containers to this new subnet.
After I did that, I restarted Proxmox. Then I noticed my NAS HDD was no longer accessible. After some investigation, I figurerd out the USB HDD was not recognized by OpenMediaVault. Only the (virtual) drive OMV is installed on was visible. Multiple restarts of both the OMV VM and entire Proxmox did not solve this issue. Also replugging the USB cable did not fix it. Plugging the drive into a USB2 port does work, but because of the speed bottleneck, not a viable solution.
Errors I found:
It seems to be a similar problem to these topics I found. But most of these people had this issue when using lots of USB devices. In my case, there are only 2 USB devices in total connected to the whole machine. And the USB HDD is the only one on the USB3 port.
https://forum.proxmox.com/threads/u...devices-this-xhci-host-supports-is-32.100040/
https://superuser.com/questions/731751/not-enough-host-controller-resources-for-new-device-state
https://bugzilla.redhat.com/show_bug.cgi?id=1376579
https://github.com/pimox/pimox7/issues/48
The most obvious error I found was when doing 'dmesg':
[ 5.348994] usb 3-1: New USB device found, idVendor=059f, idProduct=106f, bcdDevice= 0.01
[ 5.349007] usb 3-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 5.349012] usb 3-1: Product: P9233
[ 5.349016] usb 3-1: Manufacturer: LaCie
[ 5.349019] usb 3-1: SerialNumber: 0000NL32CJT4
[ 5.381179] usbcore: registered new interface driver usbhid
[ 5.381188] usbhid: USB HID core driver
[ 5.392885] usbcore: registered new interface driver usb-storage
[ 5.418424] input: QEMU QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-1/1-1:1.0/0003:0627:0001.0001/input/input4
[ 5.423083] hid-generic 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Mouse [QEMU QEMU USB Tablet] on usb-0000:00:01.2-1/input0
[ 5.445671] usb 3-1: Not enough host controller resources for new device state.
[ 5.446229] xhci_hcd 0000:01:1b.0: xHCI xhci_drop_endpoint called with disabled ep (____ptrval____)
[ 5.446238] xhci_hcd 0000:01:1b.0: xHCI xhci_drop_endpoint called with disabled ep (____ptrval____)
[ 5.446242] xhci_hcd 0000:01:1b.0: xHCI xhci_drop_endpoint called with disabled ep (____ptrval____)
[ 5.446274] xhci_hcd 0000:01:1b.0: Trying to add endpoint 0x81 without dropping it.
[ 5.446281] usb 3-1: Not enough bandwidth for altsetting 0
[ 5.480245] uas: probe of 3-1:1.0 failed with error -12[/B]
[ 5.480406] usbcore: registered new interface driver uas
The entire 'dmesg' output is attached to this post.
When I do 'lsusb', the 'LaCie' USB HDD Enclosure is found:
root@omv:~# root@omv:~# lsusb
Bus 003 Device 002: ID 059f:106f LaCie, Ltd P9233
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
When I do 'lsblk', the HDD is NOT found:
root@omv:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 8G 0 disk
├─sda1 8:1 0 7G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 975M 0 part [SWAP]
sr0 11:0 1 1024M 0 rom
Perhaps also relevant to mention: When the USB device is NOT passed through to any VM, in Proxmox under "Disks", I do see the HDD as 'sdc' (sda and sdb are internal SSDs used for 'local' and 'data'. When I pass the USB device through, 'sdc' disappears from this list (which makes sense).
What I tried:
- Restarting proxmox multiple times (did not fix).
- Remove the USB passthrough and shutdown the old OMV VM and make a new VM and install a whole new instance of (newer version) OMV6 (I had OMV5 running before). Passthrough the USB device to the new VM and new OMV6: Same problem.
- Made a new VM and installed TrueNAS: Same problem.
- Pass through the PCI XHCI controller instead of only the USB device. But then even under 'lsusb' it doesn't show up.
- Plug the USBHDD into a USB2 port and pass that through: That does work. The drive shows up in the OMV VM. But of course, too slow because of the USB2 bottleneck.
Now what?
So I've exhausted my know-how and googling abilities to fix this. The only thing remaining for me is to reinstall the entire Proxmox environment and start from scratch. But before I do that, I thought to make this topic and hope someone can point me in the right direction.
Summerized / TLDR:
- I had OMV with external USB3.0 HDD passed through working fine for months.
- After changing IP-adresses of VMs and LXCs and restarting Proxmox, the passed through HDD no longer shows up in OMV or under 'lsblk' (it does under 'lsusb').
- In the output of 'dmesg', I get the error: "usb 3-1: Not enough host controller resources for new device state."
Thanks in advance for the help! Let me know if you need more info.
Attachments
Last edited: