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:29] 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 ===== | ||
- | ===== Centos Guest ===== | + | ==== SME Server |
- | If it won't boot, edit the System setting to " | + | http://wiki.contribs.org/ |
- | ==== Network Install | + | ==== Linux ==== |
- | :!: Using network installation, | + | === Permissions === |
- | [[computing:linux: | + | Add your user to the ' |
- | ==== Linux Guest Additions ==== | + | < |
+ | sudo usermod -a -G vboxusers yourusername | ||
+ | </ | ||
- | http://forums.virtualbox.org/ | + | 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/ | ||
+ | |||
+ | === Fedora === | ||
< | < | ||
- | sudo apt-get install | + | su - |
+ | cd / | ||
+ | wget http:// | ||
+ | |||
+ | yum install | ||
</ | </ | ||
- | or | + | === 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 " | ||
+ | |||
+ | < | ||
+ | \\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: | ||
+ | </ | ||
+ | |||
+ | ==== CentOS Guest ==== | ||
+ | |||
+ | If it won't boot, edit the System setting to " | ||
+ | |||
+ | === Network Install === | ||
+ | |||
+ | :!: Using network installation, | ||
+ | |||
+ | [[computing: | ||
+ | |||
+ | === Guest Additions === | ||
+ | |||
+ | http:// | ||
< | < | ||
Line 77: | 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 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:// | 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 125: | 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 | ||
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: | ||
- | |||
- | < | ||
- | d: | ||
- | </ | ||
- | |||
- | Manually delete | ||
- | |||
- | Shared folders: | ||
- | |||
- | Install Guest Additions (tools), then view the " | ||
- | |||
- | < | ||
- | \\vboxsvr | ||
- | </ | ||
===== Headless ===== | ===== Headless ===== |