Advertisement
opexxx

virtualboxheadless.txt

Aug 13th, 2013
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.16 KB | None | 0 0
  1. Virtualbox headless commands
  2.  
  3. This is a summary of Virtualbox headless commands that I've found useful.
  4. Common commands
  5.  
  6. common-virtualbox.sh
  7.  
  8.    # Listing available VMs
  9.    VBoxManage list vms
  10.    
  11.    # Listing running VMs
  12.    VBoxManage list runningvms
  13.    
  14.    # Start $VM machine (with default open RDP on port 3389)
  15.    VBoxHeadless --startvm $VM &
  16.    
  17.    # Connecting via remotedesktop
  18.    rdesktop $HOSTNAME
  19.    
  20.    # Start $VM machine (without RDP)
  21.    VBoxHeadless --startvm $VM --vrde off &
  22.    
  23.    # Start $VM machine with open RDP (port 4444)
  24.    VBoxHeadless --startvm $VM -e “TCP/Ports=4444″ &
  25.    
  26.    # Start $VM machine with open RDP (port 3390)
  27.    nohup VBoxHeadless -s $VM -v on -p 3390 &
  28.    
  29.    # Poweroff $VM machine
  30.    VBoxManage controlvm $VM poweroff
  31.  
  32. Less common commands
  33.  
  34. extpacks-virtualbox.sh
  35.  
  36.    # Listing installed extension packs
  37.    VBoxManage list extpacks
  38.    
  39.    # Install an extension pack
  40.    VBoxManage extpack install ./Oracle_VM_VirtualBox_Extension_Pack-4.2.12-84980.vbox-extpack
  41.  
  42. Links
  43.  
  44.    http://xmodulo.com/2013/05/how-to-create-and-start-virtualbox-vm-without-gui.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement