No free ports on RHEL 7.6

Hi all,

I am trying to connect to devices on RHEL 7.6. Getting the following error:
There are no more available free ports. Try disconnecting an existing device

Full log:

uname -r

3.10.0-1062.el7.x86_64

ls -al /lib/modules/3.10.0-1062.el7.x86_64/kernel/drivers/usb/usbip/

total 2720
drwxr-xr-x. 2 root root 91 Aug 20 10:01 .
drwxr-xr-x. 12 root root 137 Aug 20 03:39 ..
-rw-r--r--. 1 root root 722008 Aug 20 10:08 usbip-core.ko
-rw-r--r--. 1 root root 9904 Jul 18 20:40 usbip-core.ko.xz
-rw-r--r--. 1 root root 962880 Aug 20 10:08 usbip-host.ko
-rw-r--r--. 1 root root 1080088 Aug 20 10:08 vhci-hcd.ko

journalctl -xe

Aug 21 06:06:38 hostname.internal kernel: vhci_hcd: module_layout: kernel tainted.
Aug 21 06:06:38 hostname.internal kernel: Disabling lock debugging due to kernel taint
Aug 21 06:06:38 hostname.internal kernel: vhci_hcd: loading out-of-tree module taints kernel.
Aug 21 06:06:38 hostname.internal kernel: vhci_hcd: module verification failed: signature and/or required
Aug 21 06:06:38 hostname.internal kernel: vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
Aug 21 06:06:38 hostname.internal kernel: vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number
Aug 21 06:06:38 hostname.internal kernel: vhci_hcd: vhci_start:1200: created sysfs vhci_hcd.0
Aug 21 06:06:38 hostname.internal kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, b
Aug 21 06:06:38 hostname.internal kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber
Aug 21 06:06:38 hostname.internal kernel: usb usb1: Product: USB/IP Virtual Host Controller
Aug 21 06:06:38 hostname.internal kernel: usb usb1: Manufacturer: Linux 3.10.0-1062.el7.x86_64 vhci_hcd
Aug 21 06:06:38 hostname.internal kernel: usb usb1: SerialNumber: vhci_hcd.0
Aug 21 06:06:38 hostname.internal kernel: hub 1-0:1.0: USB hub found
Aug 21 06:06:38 hostname.internal kernel: hub 1-0:1.0: 15 ports detected
Aug 21 06:06:38 hostname.internal kernel: vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
Aug 21 06:06:38 hostname.internal kernel: vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number
Aug 21 06:06:38 hostname.internal kernel: usb usb2: We don't know the algorithms for LPM for this host, di
Aug 21 06:06:38 hostname.internal kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, b
Aug 21 06:06:38 hostname.internal kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber
Aug 21 06:06:38 hostname.internal kernel: usb usb2: Product: USB/IP Virtual Host Controller
Aug 21 06:06:38 hostname.internal kernel: usb usb2: Manufacturer: Linux 3.10.0-1062.el7.x86_64 vhci_hcd
Aug 21 06:06:38 hostname.internal kernel: usb usb2: SerialNumber: vhci_hcd.0
Aug 21 06:06:38 hostname.internal kernel: hub 2-0:1.0: USB hub found
Aug 21 06:06:38 hostname.internal kernel: hub 2-0:1.0: 15 ports detected
Aug 21 06:06:38 hostname.internal kernel: usb usb1: vhci_bus_suspend
Aug 21 06:06:38 hostname.internal kernel: usb usb2: vhci_bus_suspend
...
Aug 21 06:08:30 hostname.internal vhclientx86_64[1590]: VirtualHere Client: VirtualHere Client 4.8.4 starting (Compiled: Aug 19 2019 19:45:46)
Aug 21 06:08:30 hostname.internal vhclientx86_64[1590]: VirtualHere Client: Client OS is Linux 3.10.0-1062.el7.x86_64 x86_64
Aug 21 06:08:30 hostname.internal vhclientx86_64[1590]: VirtualHere Client: Using config at /root/.vhui
Aug 21 06:08:30 hostname.internal vhclientx86_64[1590]: VirtualHere Client: IPC available at /tmp/vhclient
Aug 21 06:08:30 hostname.internal vhclientx86_64[1590]: VirtualHere Client: Auto-find using Bonjour - on
Aug 21 06:08:30 hostname.internal vhclientx86_64[1590]: VirtualHere Client: Auto-find using Bonjour SSL - on
Aug 21 06:08:32 hostname.internal vhclientx86_64[1590]: VirtualHere Client: There are no more available free ports. Try disconnecting an existing device
Aug 21 06:08:33 hostname.internal vhclientx86_64[1590]: VirtualHere Client: There are no more available free ports. Try disconnecting an existing device
Aug 21 06:08:35 hostname.internal vhclientx86_64[1590]: VirtualHere Client: There are no more available free ports. Try disconnecting an existing device

Thanks.

#3


Aug 21 07:43:04 hostname.internal sudo[1574]: ec2-user : TTY=pts/0 ; PWD=/home/ec2-user ; USER=root ; COMMAND=/sbin/modprobe -f vhci_hcd
Aug 21 07:43:04 hostname.internal sudo[1574]: pam_unix(sudo:session): session opened for user root by ec2-user(uid=0)
Aug 21 07:43:04 hostname.internal kernel: vhci_hcd: module_layout: kernel tainted.
Aug 21 07:43:04 hostname.internal kernel: Disabling lock debugging due to kernel taint
Aug 21 07:43:04 hostname.internal kernel: vhci_hcd: loading out-of-tree module taints kernel.
Aug 21 07:43:04 hostname.internal kernel: vhci_hcd: module verification failed: signature and/or required key missing - tainting kernel
Aug 21 07:43:04 hostname.internal kernel: vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
Aug 21 07:43:04 hostname.internal kernel: vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 1
Aug 21 07:43:04 hostname.internal kernel: vhci_hcd: vhci_start:1200: created sysfs vhci_hcd.0
Aug 21 07:43:04 hostname.internal kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 3.10
Aug 21 07:43:04 hostname.internal kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Aug 21 07:43:04 hostname.internal kernel: usb usb1: Product: USB/IP Virtual Host Controller
Aug 21 07:43:04 hostname.internal kernel: usb usb1: Manufacturer: Linux 3.10.0-1062.el7.x86_64 vhci_hcd
Aug 21 07:43:04 hostname.internal kernel: usb usb1: SerialNumber: vhci_hcd.0
Aug 21 07:43:04 hostname.internal kernel: hub 1-0:1.0: USB hub found
Aug 21 07:43:04 hostname.internal kernel: hub 1-0:1.0: 15 ports detected
Aug 21 07:43:04 hostname.internal kernel: vhci_hcd vhci_hcd.0: USB/IP Virtual Host Controller
Aug 21 07:43:04 hostname.internal kernel: vhci_hcd vhci_hcd.0: new USB bus registered, assigned bus number 2
Aug 21 07:43:04 hostname.internal kernel: usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
Aug 21 07:43:04 hostname.internal kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 3.10
Aug 21 07:43:04 hostname.internal kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Aug 21 07:43:04 hostname.internal kernel: usb usb2: Product: USB/IP Virtual Host Controller
Aug 21 07:43:04 hostname.internal kernel: usb usb2: Manufacturer: Linux 3.10.0-1062.el7.x86_64 vhci_hcd
Aug 21 07:43:04 hostname.internal kernel: usb usb2: SerialNumber: vhci_hcd.0
Aug 21 07:43:04 hostname.internal kernel: hub 2-0:1.0: USB hub found
Aug 21 07:43:04 hostname.internal kernel: hub 2-0:1.0: 15 ports detected
Aug 21 07:43:04 hostname.internal sudo[1574]: pam_unix(sudo:session): session closed for user root
Aug 21 07:43:04 hostname.internal kernel: usb usb1: vhci_bus_suspend
Aug 21 07:43:04 hostname.internal kernel: usb usb2: vhci_bus_suspend
...
Aug 21 07:44:44 hostname.internal vhclientx86_64[1603]: VirtualHere Client: VirtualHere Client 4.8.4 starting (Compiled: Aug 19 2019 19:45:46)
Aug 21 07:44:44 hostname.internal vhclientx86_64[1603]: VirtualHere Client: Client OS is Linux 3.10.0-1062.el7.x86_64 x86_64
Aug 21 07:44:44 hostname.internal vhclientx86_64[1603]: VirtualHere Client: Using config at /root/.vhui
Aug 21 07:44:44 hostname.internal vhclientx86_64[1603]: VirtualHere Client: IPC available at /tmp/vhclient
Aug 21 07:44:44 hostname.internal vhclientx86_64[1603]: VirtualHere Client: Auto-find using Bonjour - on
Aug 21 07:44:44 hostname.internal vhclientx86_64[1603]: VirtualHere Client: Auto-find using Bonjour SSL - on
Aug 21 07:44:46 hostname.internal vhclientx86_64[1603]: VirtualHere Client: There are no more available free ports. Try disconnecting an existing device
Aug 21 07:44:49 hostname.internal vhclientx86_64[1603]: VirtualHere Client: There are no more available free ports. Try disconnecting an existing device
Aug 21 07:44:51 hostname.internal vhclientx86_64[1603]: VirtualHere Client: There are no more available free ports. Try disconnecting an existing device

#4

You are using some specific customized version, so i dont know what you have done. It all works for me using normal centos 7.6 and running yum install kmod-usbip

I dont recommend using kernel 3.10 its too old and buggy for the usbip client. Use something more recent, e.g kernel 4.9 or later