USB/IP

Archebo

Member
Dec 27, 2019
10
0
6
53
Hi!

Need to generate linux-tools for PVE kernel, in order to use usbip.
Is it working in CT? Somebody try it?

Where can i find source code linux-image for this?
 
I once tried using usbip where Proxmox host was the server and a VM the client and it worked fine (over vmbr0). Just install the usbip packages using apt.
I have not yet tried it with an external computer being the server and a unprivileged container being the client (with drivers loaded on the Proxmox host).
What do you mean with "generate linux-tools for PVE kernel"?
 
I once tried using usbip where Proxmox host was the server and a VM the client and it worked fine (over vmbr0). Just install the usbip packages using apt.
I have not yet tried it with an external computer being the server and a unprivileged container being the client (with drivers loaded on the Proxmox host).
What do you mean with "generate linux-tools for PVE kerne
I mean linux-tools not working "out of box" with PVE kernel, need to install packages for this specific kernel.
 
It's is old but i post here the commands to make usbip working on pve:

apt install pve-kernel-$(uname -r) pve-headers-$(uname -r) autoconf build-essential libudev-dev libwrap0-dev libtool-bin pkg-config libsysfs-dev libglib2.0-dev
cd /usr/local/src
wget https://sourceforge.net/projects/usbip/files/usbip/0.1.7/usbip-0.1.7.tar.gz/download
mv download usbip-0.1.7.tar.gz
tar xvfz usbip-0.1.7.tar.gz
cd /usr/local/src/usbip-0.1.7/src/
./autogen.sh
./configure
make install
ln -s /usr/local/lib/libusbip.so.0 /usr/lib/
depmod -a
modprobe vhci_driver
modprobe usbip-core
modprobe usbip-host
echo "vhci-hcd" >> /etc/modules
echo "usbip-core" >> /etc/modules
echo "usbip-host" >> /etc/modules


## List local usbs
usbip list -l
## List remote usbs
usbip list -r <ip remote>
##Attach remote usb
usbip attach -r <ip remote> --busid 1-1.1
## List attached usbs
usbip port
## Detach a remote connected usb
usbip detach -p 0
 
Last edited:
The package in debian repository doesn't install kernel module.
The kernel module is in the package linux-tools but it is for standard debian kernel. For PVE kernel you need to compile the module from source.

Or compile linux-tools for pve kernel

You can use the package only for the binary file.
 
It's is old but i post here the commands to make usbip working on pve:

apt install pve-kernel-$(uname -r) pve-headers-$(uname -r) autoconf build-essential libudev-dev libwrap0-dev libtool-bin pkg-config libsysfs-dev libglib2.0-dev
cd /usr/local/src
wget https://sourceforge.net/projects/usbip/files/usbip/0.1.7/usbip-0.1.7.tar.gz/download
mv download usbip-0.1.7.tar.gz
tar xvfz usbip-0.1.7.tar.gz
cd /usr/local/src/usbip-0.1.7/src/
./autogen.sh
./configure
make install
ln -s /usr/local/lib/libusbip.so.0 /usr/lib/
depmod -a
modprobe vhci_driver
modprobe usbip-core
modprobe usbip-host
echo "vhci-hcd" >> /etc/modules
echo "usbip-core" >> /etc/modules
echo "usbip-host" >> /etc/modules


## List local usbs
usbip list -l
## List remote usbs
usbip list -r <ip remote>
##Attach remote usb
usbip attach -r <ip remote> --busid 1-1.1
## List attached usbs
usbip port
## Detach a remote connected usb
usbip detach -p 0
Thanks for your support. I'm having this issue:
# modprobe vhci_driver
modprobe: FATAL: Module vhci_driver not found in directory /lib/modules/6.8.12-2-pve

Any advice?
 

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!