Пытаюсь запускать виртуалку через rc.local Команда из терминала нормально запускает виртуалку
VBoxManage startvm "win" --type headless
Waiting for VM "win" to power on...
VM "win" has been successfully started.
В rc.local
#!/bin/sh -e
#
# rc.local
/usr/bin/VBoxManage startvm "win" --type headless
exit 0
VBoxManage: error: Could not find a registered machine named 'win'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindMachine(Bstr(pszVM).raw(), machine.asOutParam())" at line 544 of file VBoxManageMisc.cpp