T tonycav Member Oct 4, 2022 91 4 13 Apr 19, 2023 #1 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 Thank you for your time
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 Thank you for your time
bbgeek17 Distinguished Member Nov 20, 2020 5,503 1,817 228 Blockbridge www.blockbridge.com Apr 19, 2023 #2 Is there an error that you can share? Perhaps the issue is that "qm" command cant be found? This would be due to crontab not loading the environmental variables like PATH and you have to specify absolute path to the binaries you are executing. Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Is there an error that you can share? Perhaps the issue is that "qm" command cant be found? This would be due to crontab not loading the environmental variables like PATH and you have to specify absolute path to the binaries you are executing. Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Moayad Proxmox Staff Member Staff member Jan 2, 2020 3,381 348 128 32 Vienna shop.proxmox.com Apr 19, 2023 #3 Hi, Maybe you have to set the full path of the qm i.e., /sbin/qm set 105 -usb0 host=0bc2:61b6 Reactions: leesteken
T tonycav Member Oct 4, 2022 91 4 13 Apr 20, 2023 #5 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 Reactions: Moayad
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