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

Next revision
Previous revision
docs:tips_n_tricks:virtualbox.html [22.12.2010 03:13 CET] – created peterdocs:tips_n_tricks:virtualbox.html [07.07.2012 15:46 CEST] (current) peter
Line 1: Line 1:
 ====== Virtualbox ====== ====== Virtualbox ======
-===== Mac OX X Host =====+===== Mac OS X Host =====
 Download virtualbox for personal use from [[http://download.virtualbox.org/virtualbox/3.2.12/VirtualBox-3.2.12-68302-OSX.dmg|Virtualbox.org]] Download virtualbox for personal use from [[http://download.virtualbox.org/virtualbox/3.2.12/VirtualBox-3.2.12-68302-OSX.dmg|Virtualbox.org]]
 +
 ==== Debian Etch/Lenny Guest ==== ==== Debian Etch/Lenny Guest ====
 (this is from memory - real package names and options may vary)\\ (this is from memory - real package names and options may vary)\\
Line 10: Line 11:
   deb     http://www.backports.org/debian/  lenny-backports main contrib non-free   deb     http://www.backports.org/debian/  lenny-backports main contrib non-free
  
-make sure ''/lib/modules/`uname -r`/build'' points to your current kernel sources.\\ +and run ''apt-get update''.\\ 
-Run+Next make sure ''/lib/modules/`uname -r`/build'' points to your current kernel sources and run:
  
   apt-get install virtualbox-ose-guest-utils   apt-get install virtualbox-ose-guest-utils
   apt-get install virtualbox-ose-guest-x11   apt-get install virtualbox-ose-guest-x11
-  <del>apt-get install virtualbox-ose-guest-modules-2.6</del>  (maybe not?)+  apt-get install virtualbox-ose-guest-modules-2.6 (maybe not?)
   apt-get install virtualbox-ose-guest-dkms   apt-get install virtualbox-ose-guest-dkms
  
Line 49: Line 50:
  
 You might want to automize the latter for future logins. You might want to automize the latter for future logins.
 +
 +===== Command Line =====
 +==== Start a headless VM ====
 +(saved and stopped machines)
 +
 +  VBoxHeadless --startvm <vmname> [-vrde on]
 +
 +====  Save/resume a VM ====
 +
 +  VBoxManage controlvm <vmname> pause|resume|reset|poweroff|savestate
 +
 +(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.1292984033.txt.gz · Last modified: 22.12.2010 03:13 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki