Your startvm line seems odd. I with VirtualBox 5.2.22 r126460 on Mint 19 need either
Code: Select all
VBoxManage startvm VMName --type=separate
or
Code: Select all
VBoxManage startvm ~/VirtualBox\ VMs/VMName/VMName.vbox --type=separate
When I from the command line
or user crontab use your syntax,
Code: Select all
VBoxManage startvm /home/rene/VirtualBox\ VMs/VMName/ VMName --type=separate
then VM "VMName" starts successfully but only as a result of the second, lone "VMName"; the first path parameter is also intepreted as a VM and gives the error message,
Code: Select all
VBoxManage: error: Could not find a registered machine named '/home/rene/VirtualBox VMs/VMName'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBoxWrap, interface IVirtualBox, callee nsISupports
VBoxManage: error: Context: "FindMachine(Bstr(pszVM).raw(), machine.asOutParam())" at line 595 of file VBoxManageMisc.cpp
It's sort of expected that you would've noticed if also for you so perhaps I'm looking at a version difference here, and the VM does as said start both from command line and cron, but what happens for you if you use just "VMName" or "/home/user/VM/VMName/VMName.vbox"? Generally speaking, I could imagine an environment difference leading to inability to locate ~/.config/VirtualBox and although that's apparently not in fact the case for me, maybe it still is for you on 18.3.
[EDIT] Oh, by the way, let me also immediately ask: your "VBoxManage"
is in /usr/bin, right? If it's somewhere more original specify the complete path due to cron jobs having a minimal PATH; a minimal
environment.