Page 1 of 1

[solved] ivalid machine name during systemstartup

Posted: 19. Sep 2008, 13:56
by magnummandel
Hi there!

I try to start a specific VM during host startup. The host runs under Ubuntu hardy. Therefor I added the line

Code: Select all

/usr/bin/VBoxHeadless -s anymachine
to my rc.local. But it won't start up. The console output is

Code: Select all

invalid machine name
Even if I try the uuid it won't do. The output is

Code: Select all

Could not find a registered machine with UUID {...}
The command starts up the VM proper when I'm logged in and issued the command manually.
I'm thankfull for any suggestions

Thx,
MM

[solved]

Posted: 19. Sep 2008, 14:21
by magnummandel
ok, I had better had a deeper look to it before posting. The user during system startup is root and the machine was (quiet clear) created by another user so that the machine lies in /home/<user name>/.VirtualBox/Machines so that user root can't find them (since it is looking for it in /root/.VirtualBox/...)

I simply created a symlink to the users .VirtualBox directory and it seems to work that way.

If you had another (better) solution, feel free to post :)
MM

Posted: 19. Sep 2008, 16:21
by TerryE
Search the forums or the User Guide for VBOX_USER_HOME and read what it has to say. Also don't start a user VM in root. Bad practice and dangerous. do s sudo -u.