Headless virtualbox - running headless linux server


#1

Hello all,

I would like to run headless linux server. Currently I have installed Ubuntu as a virtual machine and I only need to run it in a headless mode so I can ssh to it. Can someone provide me with an information on how to start and stop my virtualbox vms in headless mode?

cheers…


#2

Dear palco,

Here you go,

Assume virtual machine name is ubuntu-virtual

VBoxManage startvm ubuntu-virtual --type headless

or

VBoxHeadless -s ubuntu-virtual

Assume we have 192.168.1.100 IP Address Assigned to ubuntu-virtual

ssh root@192.168.1.100

VBoxManage controlvm ubuntu-virtual pause
VBoxManage controlvm ubuntu-virtual resume
VBoxManage controlvm ubuntu-virtual savestate
VBoxManage controlvm ubuntu-virtual poweroff

if you need any more help let me know,

Thanks and Regards,

bnhashmi


#3