User Tools

Site Tools


docs:tips_n_tricks:virtualbox.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docs:tips_n_tricks:virtualbox.html [12.01.2011 15:25 CET] peterdocs:tips_n_tricks:virtualbox.html [07.07.2012 15:46 CEST] (current) peter
Line 53: Line 53:
 ===== Command Line ===== ===== Command Line =====
 ==== Start a headless VM ==== ==== Start a headless VM ====
 +(saved and stopped machines)
  
-  VBoxHeadless --startvm <vmname> +  VBoxHeadless --startvm <vmname> [-vrde on]
  
 ====  Save/resume a VM ==== ====  Save/resume a VM ====
Line 61: Line 61:
   VBoxManage controlvm <vmname> pause|resume|reset|poweroff|savestate   VBoxManage controlvm <vmname> pause|resume|reset|poweroff|savestate
  
-found [[http://forums.virtualbox.org/viewtopic.php?f=2&t=14754|here]]+(to resome //saved// machines see above) 
 + 
 +==== Connect to headless machine by RDP ==== 
 +assuming, you're using a german keyboard: 
 + 
 +  rdesktop -k de localhost  
 + 
 +(Provided the VM is running on your local machine and ''VBoxHeadless'' told you VRDE server is listening on port 3389) 
 + 
 +====== rc.vbox ====== 
 +This is some very basic start-stop script suited more to support your memory then to be used as a init.d script ... 
 +  #!/bin/sh 
 +   
 +  vm="${2:-MyDefaultVM}" 
 +   
 +  case "$1" in 
 +  "start"      VBoxHeadless --startvm "$vm" -vrde on & ;; 
 +  "show"|"view") /opt/local/bin/rdesktop -k de localhost   ;; 
 +  "stop"       VBoxManage controlvm "$vm" savestate    ;; 
 +  *)             echo "Usage: ${0##*/} start|stop|show" >&1 ; exit 42 ;; 
 +  esac 
 + 
 +__Credits:__ 
 + 
 +Information from [[http://forums.virtualbox.org/viewtopic.php?f=2&t=14754|here]] and from my experience.
docs/tips_n_tricks/virtualbox.html.txt · Last modified: 07.07.2012 15:46 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki