Hi. After having issues with usb passthough to a VM a was searching forums for a solution and ended up with proxmox-usb-hotplug. I followed the installation and now I'm able to manually run it from proxmox shell with
Next I created a hookscript in /var/lib/vz/snippets/usbhotplug.pl and added this script to my VM.
Now when VM is starting I get: Can't exec "proxmox-usb-hotplug": No such file or directory at /var/lib/vz/snippets/usbhotplug.pl line 41.
There is a part about installing it as a service which I don't understand, I'm a linux beginner. I suppose I miss some bit so that the hookscript cannot access the installed npm package to run it or maybe some permissions are missing.
Bash:
proxmox-usb-hotplug --vmid $vmid -c /etc/usb-hotplug.conf -p $pwd
Next I created a hookscript in /var/lib/vz/snippets/usbhotplug.pl and added this script to my VM.
Now when VM is starting I get: Can't exec "proxmox-usb-hotplug": No such file or directory at /var/lib/vz/snippets/usbhotplug.pl line 41.
There is a part about installing it as a service which I don't understand, I'm a linux beginner. I suppose I miss some bit so that the hookscript cannot access the installed npm package to run it or maybe some permissions are missing.