This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
virtualization:virtualbox [2012/04/22 16:31] gcooper |
virtualization:virtualbox [2014/04/23 15:04] (current) gcooper |
||
---|---|---|---|
Line 8: | Line 8: | ||
http:// | http:// | ||
+ | |||
+ | ===== Comments ===== | ||
+ | |||
+ | :!: Virtualbox is an excellent workstation virtualization solution. | ||
+ | |||
+ | :!: If you need server virtualization, | ||
+ | |||
+ | **[[virtualization: | ||
+ | |||
+ | **[[virtualization: | ||
* Two versions | * Two versions | ||
* Open Source Edition | * Open Source Edition | ||
- | | + | |
- | * Commercial | + | * Excellent cross-platform support |
- | * add repo to sources.list | + | * Supports |
- | * < | + | |
- | * 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 | + | * Can use various |
- | * Doing so will require Windows XP re-activation | + | * The default 'host key' to release keyboard is Right Ctrl |
- | * It's best to uninstall | + | |
- | * 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:// |
- | Mount Windows Tools ISO and run: | + | ==== Linux ==== |
+ | |||
+ | === Permissions === | ||
+ | |||
+ | Add your user to the ' | ||
< | < | ||
- | d: | + | sudo usermod -a -G vboxusers yourusername |
</ | </ | ||
- | 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:// | ||
+ | |||
+ | === Fedora === | ||
+ | |||
+ | < | ||
+ | su - | ||
+ | cd / | ||
+ | wget http:// | ||
+ | |||
+ | yum install gcc kernel-headers kernel-devel dkms VirtualBox-4.2 | ||
+ | </ | ||
+ | |||
+ | === Ubuntu === | ||
+ | |||
+ | https:// | ||
+ | |||
+ | == Open Source Edition == | ||
+ | |||
+ | < | ||
+ | sudo apt-get install dkms build-essential linux-headers-`uname -r` virtualbox-ose | ||
+ | </ | ||
+ | |||
+ | |||
+ | == Personal Edition == | ||
+ | |||
+ | < | ||
+ | sudo apt-get install dkms build-essential linux-headers-`uname -r` virtualbox-4.2 | ||
+ | </ | ||
+ | |||
+ | ===== Shared Folders (Guest-Host) ===== | ||
Install Guest Additions (tools), then view the " | Install Guest Additions (tools), then view the " | ||
Line 51: | Line 90: | ||
< | < | ||
\\vboxsvr | \\vboxsvr | ||
+ | </ | ||
+ | |||
+ | ===== 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: | ||
+ | |||
+ | < | ||
+ | d: | ||
</ | </ | ||
Line 63: | Line 117: | ||
[[computing: | [[computing: | ||
- | === Linux Guest Additions === | + | === Guest Additions === |
http:// | http:// | ||
- | |||
- | < | ||
- | sudo apt-get install build-essential linux-headers-`uname -r` | ||
- | </ | ||
- | |||
- | or | ||
< | < | ||
Line 97: | Line 145: | ||
</ | </ | ||
- | ==== Ubuntu ==== | + | ==== Ubuntu |
- | https://help.ubuntu.com/community/ | + | === Guest Additions === |
+ | |||
+ | http://forums.virtualbox.org/viewtopic.php? | ||
< | < | ||
- | sudo apt-get install | + | sudo apt-get install build-essential linux-headers-`uname -r` |
</ | </ | ||
- | Download and install .deb from http:// | + | ==== Debian Guest ==== |
- | Add your user to the 'vboxusers' | + | === Guest Additions === |
+ | |||
+ | http:// | ||
+ | |||
+ | As '' | ||
< | < | ||
- | sudo usermod | + | apt-get install build-essential module-assistant |
- | </ | + | |
- | Log out and back in to gain permissions. | + | m-a prepare |
+ | |||
+ | mount / | ||
+ | |||
+ | sh / | ||
+ | </ | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 133: | 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:// | http:// | ||
- | 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: '' | ||
+ | * Linux: '' | ||
+ | - Shut down the VM cleanly | ||
+ | - '' | ||
==== VMware VM ==== | ==== VMware VM ==== | ||
Line 145: | Line 209: | ||
http:// | http:// | ||
+ | * 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 |