VBOXHEADLESS cannot run an existing VM

This is for discussing general topics about how to use VirtualBox.
Post Reply
wikisb
Posts: 19
Joined: 9. May 2011, 18:25
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: CENTOS

VBOXHEADLESS cannot run an existing VM

Post 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
wikisb
Posts: 19
Joined: 9. May 2011, 18:25
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: CENTOS

Re: VBOXHEADLESS cannot run an existing VM

Post by wikisb »

i also tried with VBoxManage controlvm resume /.... but nothing !!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VBOXHEADLESS cannot run an existing VM

Post 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
wikisb
Posts: 19
Joined: 9. May 2011, 18:25
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: CENTOS

Re: VBOXHEADLESS cannot run an existing VM

Post 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).
Post Reply