Page 1 of 1

vboxheadless newbie problem

Posted: 17. Aug 2012, 17:27
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

Re: vboxheadless newbie problem

Posted: 17. Aug 2012, 17:45
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.

Re: vboxheadless newbie problem

Posted: 17. Aug 2012, 19:59
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

Re: vboxheadless newbie problem

Posted: 17. Aug 2012, 20:01
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.

Re: vboxheadless newbie problem

Posted: 17. Aug 2012, 20:49
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