Page 1 of 1

VBOXHEADLESS cannot run an existing VM

Posted: 9. May 2011, 18:32
by wikisb
hi everyone!!
i've been looking everywhere to know how to power on an existing VM that is powered off. I'm using it in headless mode. my server hasn't got GUI so i have a client that access the server first with ssh and after with an rdp viewer .i created a guest and installed centos5.2 correctly.
the main problem i have is once i do shutdown -h now(guest), when i connect to the server with ssh i dont now wich command is to set up again the VM that is created and powered off. i use VBoxHeadless/VBoxManage -startvm "name" but it installs it again AND I DONT WANT TO INSTALL IT EVERYTIME I POWER IT OFF.
can somebody give me a clue please!!!
thanks

Re: VBOXHEADLESS cannot run an existing VM

Posted: 9. May 2011, 18:44
by wikisb
i also tried with VBoxManage controlvm resume /.... but nothing !!

Re: VBOXHEADLESS cannot run an existing VM

Posted: 9. May 2011, 19:28
by Perryg
VBoxHeadless --startvm <uuid|name> will start the machine
If it is wanting to install every time you start you have left the install cd/iso in the virtual drive. Remove it.
See Chapter 8 VBoxManage in your VirtualBox users manual

Re: VBOXHEADLESS cannot run an existing VM

Posted: 10. May 2011, 11:27
by wikisb
Hi Perryg!!
thanks for your post. it solved my problem
thank you very much

PS if someone wonders what i did:

VBoxManage storageattach "VMname" --storagectl "name_Controller" --port 0 --device 1 --type dvddrive --medium none (instead of path/to/iso).