User Tools

Site Tools


virtualization:virtualbox

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
virtualization:virtualbox [2012/04/22 16:33]
gcooper
virtualization:virtualbox [2014/04/23 15:04] (current)
gcooper
Line 8: Line 8:
  
 http://www.oracle.com/technetwork/server-storage/virtualbox/downloads http://www.oracle.com/technetwork/server-storage/virtualbox/downloads
 +
 +===== Comments =====
 +
 +:!: Virtualbox is an excellent workstation virtualization solution.
 +
 +:!: If you need server virtualization, see:
 +
 +**[[virtualization:xenserver:xenserver|XenServer]]**
 +
 +**[[virtualization:proxmox|Proxmox Virtualization Environment]]**
  
   * Two versions   * Two versions
     * Open Source Edition     * Open Source Edition
-      <file>sudo apt-get install virtualbox-ose</file> +    Personal Edition 
-    * Commercial Edition +  Excellent cross-platform support Linux, Windows, OS X, Solaris, etc
-      add repo to sources.list +  * Supports USB 2.0
-      * <file>sudo apt-get install virtualbox-4.1</file> +
-  * Install Extension Pack for USB 2.0 support in VM +
-  * Both versions free for personal use.+
   * No hardware virtualization support needed, similar to VMware Server   * No hardware virtualization support needed, similar to VMware Server
   * Can be run headless and accessed via VRDP protocol   * Can be run headless and accessed via VRDP protocol
-  * Can use VMware virtual disks +  * Can use various virtual disk formats - VMware .vmdk, etc. 
-  * Doing so will require Windows XP re-activation +  * The default 'host key' to release keyboard is Right Ctrl
-  * It's best to uninstall VMware Tools first +
-  * Most VMware drivers will work under VB +
-  * Had network problems +
-  * default 'host key' to release keyboard is Right Ctrl +
-  * Didn't work out too well on Fedora 11+
  
 ===== Documentation ===== ===== Documentation =====
Line 33: Line 35:
 ===== Installation ===== ===== Installation =====
  
-==== Windows XP Guest ====+==== SME Server ====
  
-Force uninstall VMware Tools:+http://wiki.contribs.org/VirtualBox_4.0_on_SME_Server_v8_beta_6
  
-Mount Windows Tools ISO and run:+==== Linux ==== 
 + 
 +=== Permissions === 
 + 
 +Add your user to the 'vboxusers' group:
  
 <file> <file>
-d:\setup.exe /c+sudo usermod -a -G vboxusers yourusername
 </file> </file>
  
-Manually delete +Log out and back in to gain permissions.
  
-Shared folders:+=== USB Support === 
 + 
 +Download and install the VirtualBox Extension Pack.  You can just double-click the file after VirtualBox is installed. 
 + 
 +https://www.virtualbox.org/wiki/Downloads 
 + 
 +=== Fedora === 
 + 
 +<file> 
 +su - 
 +cd /etc/yum.repos.d/ 
 +wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo 
 + 
 +yum install gcc kernel-headers kernel-devel dkms VirtualBox-4.2 
 +</file> 
 + 
 +=== Ubuntu === 
 + 
 +https://help.ubuntu.com/community/VirtualBox 
 + 
 +== Open Source Edition == 
 + 
 +<file> 
 +sudo apt-get install dkms build-essential linux-headers-`uname -r` virtualbox-ose 
 +</file> 
 + 
 + 
 +== Personal Edition == 
 + 
 +<file> 
 +sudo apt-get install dkms build-essential linux-headers-`uname -r` virtualbox-4.2 
 +</file> 
 + 
 +===== Shared Folders (Guest-Host) =====
  
 Install Guest Additions (tools), then view the "Entire Network", or browse or search to: Install Guest Additions (tools), then view the "Entire Network", or browse or search to:
Line 51: Line 90:
 <file> <file>
 \\vboxsvr \\vboxsvr
 +</file>
 +
 +===== Guest Virtual Machines =====
 +
 +==== Windows XP Guest ====
 +
 +  * You probably don't need more than 1 vCPU and 512MB RAM
 +  * You can get by with as ittle as 8GB of disk space
 +
 +=== Guest Additions ===
 +
 +Mount Windows Tools ISO and run:
 +
 +<file>
 +d:\setup.exe /c
 </file> </file>
  
Line 91: Line 145:
 </file> </file>
  
-==== Ubuntu ====+==== Ubuntu Guest ====
  
-https://help.ubuntu.com/community/VirtualBox+=== Guest Additions ===
  
-<file> +http://forums.virtualbox.org/viewtopic.php?f=3&t=15679
-sudo apt-get install dkms build-essential linux-headers-`uname -r` +
-</file> +
- +
-Download and install .deb from http://www.virtualbox.org/wiki/Linux_Downloads. +
- +
-Add your user to the 'vboxusers' group:+
  
 <file> <file>
-sudo usermod --G vboxusers yourusername+sudo apt-get install build-essential linux-headers-`uname -r`
 </file> </file>
  
-Log out and back in to gain permissions.+==== Debian Guest ====
  
 === Guest Additions === === Guest Additions ===
  
-http://forums.virtualbox.org/viewtopic.php?f=3&t=15679+http://virtualboxes.org/doc/installing-guest-additions-on-debian/ 
 + 
 +As ''root'':
  
 <file> <file>
-sudo apt-get install build-essential linux-headers-`uname -r`+apt-get install build-essential module-assistant 
 + 
 +m-a prepare 
 + 
 +mount /media/cdrom 
 + 
 +sh /media/cdrom/VBoxLinuxAdditions.run
 </file> </file>
  
Line 135: Line 191:
 ==== Compact a VM Disk ==== ==== Compact a VM Disk ====
  
-http://novemberechoromeodelta.com/20081220-shrinking-virtualbox-vdi-files+http://www.maketecheasier.com/shrink-your-virtualbox-vm/
  
 http://download.sysinternals.com/Files/SDelete.zip http://download.sysinternals.com/Files/SDelete.zip
  
-Defrag the disk within the VM.+  - Defrag the disk within the VM 
 +    * maybe more than once 
 +  - Zero out the empty space within the VM 
 +    * Windows: ''sdelete -z c:'' 
 +    * Linux: ''zerofree /dev/sda1'' 
 +  - Shut down the VM cleanly 
 +  - ''VboxManage modifyvdi /path/to/your/VM.vdi compact''
  
 ==== VMware VM ==== ==== VMware VM ====
Line 147: Line 209:
 http://www.virtualbox.org/wiki/Migrate_Windows http://www.virtualbox.org/wiki/Migrate_Windows
  
 +  * It's best to uninstall VMware Tools first before exporting the VM from VMware
 +  * Most VMware drivers will work under VirtualBox
   * You will have to reactivate Windows   * You will have to reactivate Windows
   * You will probably have to Enable IO APIC to get the VM to boot   * You will probably have to Enable IO APIC to get the VM to boot
virtualization/virtualbox.1335134031.txt.gz · Last modified: 2012/04/22 16:33 by gcooper