57

I know that this is possible, but I don't know how...

I am just trying to start a VirtualBox VM called ubuservloc from the command line, but without success.

Victoralm
  • 1,053
  • 3
  • 13
  • 20

5 Answers5

94

Only needed:

VBoxManage startvm "VM name" --type headless

For example:

VBoxManage startvm ubuservloc --type headless
tshepang
  • 1,967
guntbert
  • 13,134
8

Try this,

virtualbox startvm ubuservloc
guntbert
  • 13,134
Avinash Raj
  • 78,556
1
  • To list virtual machines:

    VBoxManager list vms
    
  • To Start a virtual machine:

    VBoxManage startvm YOUR_VIRTUAL_MACHINE_NAME
    
  • To stop a virtual machine:

    VBoxManage controlvm Android poweroff
    
1

stop

VBoxManage controlvm "vm_name" poweroff

start

nohup VBoxHeadless -startvm "vm_name" & 
Ravexina
  • 55,668
  • 25
  • 164
  • 183
0
  • in windows 10
    1. open Oracle VM VirtualBox -> select vm_name right click -> create Shortcut in Desktop
    2. select shortcut -> properties -> shortcut -> target -> copy
    3. open cmd run (change 'VirtualBox.exe' -> 'VBoxHeadless.exe')
"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" --comment "linux_mint" --startvm "14f426cc-845d-46cb-9f6e-4dbb31a3769a"