Blog is moving

My blog is moving to http://victormendonca.com/blog/. If you are looking for a specific or older post you are in the right place Otherwise check out my new page for more up to date content.

Tuesday, August 5, 2008

Useful VBox commands

For those of you that are running VBox on a server (headless), here are some common used commands that you will most likely need.

Change memory to 256MB
VBoxManage modifyvm "[machine]" -memory "256MB"

Register an ISO image
VBoxManage registerimage dvd [/full/path/to/iso.iso]

Add ISO image to machine after registering
VBoxManage modifyvm "[machine]" -dvd [/full/path/to/iso.iso]

Start Machine
VBoxHeadless -startvm "[machine]" -p [port] &

Change state of machine
VBoxManage controlvm [machine] poweroff
VBoxManage controlvm [machine] reset
VBoxManage controlvm [machine] savestate
** Other “controlvm” options
pause|resume

Set a shared folder
VBoxManage sharedfolder add “[machine]” -name "[share_name]" -hostpath \n "[/home/username/foldertoshare]"


Vic.

No comments: