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:29]
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 =====
  
-===== Centos Guest =====+==== SME Server ====
  
-If it won't boot, edit the System setting to "Enable IO APIC".+http://wiki.contribs.org/VirtualBox_4.0_on_SME_Server_v8_beta_6
  
-==== Network Install ====+==== Linux ====
  
-:!: Using network installation, you are assured of installing a Xen PV kernel.+=== Permissions ===
  
-[[computing:linux:minimal_centos_install#netinstall|CentOS Network Install]]+Add your user to the 'vboxusers' group:
  
-==== Linux Guest Additions ====+<file> 
 +sudo usermod -a -G vboxusers yourusername 
 +</file>
  
-http://forums.virtualbox.org/viewtopic.php?f=3&t=15679+Log out and back in to gain permissions. 
 + 
 +=== 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> <file>
-sudo apt-get install build-essential linux-headers-`uname -r`+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> </file>
  
-or+=== 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: 
 + 
 +<file> 
 +\\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> 
 + 
 +==== CentOS Guest ==== 
 + 
 +If it won't boot, edit the System setting to "Enable IO APIC"
 + 
 +=== Network Install === 
 + 
 +:!: Using network installation, you are assured of installing a Xen PV kernel. 
 + 
 +[[computing:linux:minimal_centos_install#netinstall|CentOS Network Install]] 
 + 
 +=== Guest Additions === 
 + 
 +http://forums.virtualbox.org/viewtopic.php?f=3&t=15679
  
 <file> <file>
Line 77: Line 145:
 </file> </file>
  
-==== Ubuntu ====+==== Ubuntu Guest ====
  
-https://help.ubuntu.com/community/VirtualBox+=== Guest Additions === 
 + 
 +http://forums.virtualbox.org/viewtopic.php?f=3&t=15679
  
 <file> <file>
-sudo apt-get install dkms build-essential linux-headers-`uname -r`+sudo apt-get install build-essential linux-headers-`uname -r`
 </file> </file>
  
-Download and install .deb from http://www.virtualbox.org/wiki/Linux_Downloads.+==== Debian Guest ====
  
-Add your user to the 'vboxusersgroup:+=== Guest Additions === 
 + 
 +http://virtualboxes.org/doc/installing-guest-additions-on-debian/ 
 + 
 +As ''root'':
  
 <file> <file>
-sudo usermod --G vboxusers yourusername +apt-get install build-essential module-assistant
-</file>+
  
-Log out and back in to gain permissions.+m-a prepare 
 + 
 +mount /media/cdrom 
 + 
 +sh /media/cdrom/VBoxLinuxAdditions.run 
 +</file>
  
 ===== Configuration ===== ===== Configuration =====
Line 113: 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 125: 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
Line 159: Line 245:
 File -> Import File -> Import
 File -> Export File -> Export
- 
-===== Windows XP Guest ===== 
- 
-Force uninstall VMware Tools: 
- 
-Mount Windows Tools ISO and run: 
- 
-<file> 
-d:\setup.exe /c 
-</file> 
- 
-Manually delete  
- 
-Shared folders: 
- 
-Install Guest Additions (tools), then view the "Entire Network", or browse or search to: 
- 
-<file> 
-\\vboxsvr 
-</file> 
  
 ===== Headless ===== ===== Headless =====
virtualization/virtualbox.1335133746.txt.gz · Last modified: 2012/04/22 16:29 by gcooper