[SOLVED] USB passthrough failure when running from crontab

tonycav

Member
Oct 4, 2022
86
3
13
Hi, i have a strange problem

If I launch this code from CLI proxmox

Code:
qm set 105 -usb0 host=0bc2:61b6

the USB disk is successfully mounted in the VM

but if i run the same code from crontab the disk won't mount :mad::(

Thank you for your time
 
A user on another forum suggested adding a hold to the command and now it works great

Code:
30 12 * * 0-7 @reboot sleep 10; /sbin/qm set 105 -usb0 host=0bc2:61b6
 
  • Like
Reactions: Moayad

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!