vboxheadless newbie problem

This is for discussing general topics about how to use VirtualBox.
Post Reply
mcc28x
Posts: 3
Joined: 17. Aug 2012, 17:20
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Debian

vboxheadless newbie problem

Post by mcc28x »

Hi,

I was following a tutorial to create a vm for a headless server and made a mistake when creating the vm. I typed:

Code: Select all

 VBoxManage storageattach "turnkey-wordpress-11.3 Server" --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium /home/mark/turnkey-wordpress-11.3-lucid-x86.iso


but actually mean to type:

Code: Select all

 VBoxManage storageattach "turnkey-wordpress-11.3 Server" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /home/mark/turnkey-wordpress-11.3-lucid-x86.iso
I don't know how to correct this (port 1 instead of port 0 - Duh!) could someone put me right please? Also how would I go about deleteing the vm from the commandline if I choose to?

Help very much appreciated.

Thanks

Mark
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 newbie problem

Post by Perryg »

To see the full list of available commands and syntax see http://www.virtualbox.org/manual/ch08.html

See http://www.virtualbox.org/manual/ch08.h ... storagectl to remove and then create again.

See http://www.virtualbox.org/manual/ch08.h ... registervm on creating and removing.
mcc28x
Posts: 3
Joined: 17. Aug 2012, 17:20
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Debian

Re: vboxheadless newbie problem

Post by mcc28x »

Hi Thanks,

These commands worked for me

Code: Select all

 VBoxManage storagectl "turnkey-wordpress-11.3 Server" --name "IDE Controller" --remove
and

Code: Select all

VBoxManage unregistervm "turnkey-wordpress-11.3 Server" --delete
but I wasn't sure how to delete the virtual harddisk

Code: Select all

/home/mark/turnkey-wordpress-11.3_Server.vdi
Could you clarify please?

Thanks
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 newbie problem

Post by Perryg »

Standard Linux remove command will remove the file.

Edit: The --delete tag in the unregister should have removed it for you, but since it didn't just remove it manually.
mcc28x
Posts: 3
Joined: 17. Aug 2012, 17:20
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: Debian

Re: vboxheadless newbie problem

Post by mcc28x »

Perryg wrote:Standard Linux remove command will remove the file.

Edit: The --delete tag in the unregister should have removed it for you, but since it didn't just remove it manually.

Thank you! :D
Post Reply