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:26] 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 ===== | ||
- | ==== Ubuntu | + | ==== SME Server |
- | https://help.ubuntu.com/community/ | + | http://wiki.contribs.org/VirtualBox_4.0_on_SME_Server_v8_beta_6 |
- | < | + | ==== Linux ==== |
- | sudo apt-get install dkms build-essential linux-headers-`uname -r` | + | |
- | </ | + | |
- | Download and install .deb from http:// | + | === Permissions === |
Add your user to the ' | Add your user to the ' | ||
Line 51: | Line 51: | ||
Log out and back in to gain permissions. | Log out and back in to gain permissions. | ||
- | ===== Configuration ===== | + | === USB Support |
- | ==== Network ==== | + | Download and install the VirtualBox Extension Pack. You can just double-click the file after VirtualBox is installed. |
- | Network configuration defaults to DHCP and NAT, which should give you Internet access and a 10.0.x.x IP address, but no access to the VM from the local network. | + | https://www.virtualbox.org/ |
- | ===== Maintenance ===== | + | === Fedora |
- | + | ||
- | ==== Host Kernel Upgrade ==== | + | |
- | Rebuild the kernel module: | + | < |
+ | su - | ||
+ | cd / | ||
+ | wget http:// | ||
- | < | + | yum install gcc kernel-headers kernel-devel dkms VirtualBox-4.2 |
- | sudo /etc/init.d/vboxdrv setup | + | |
</ | </ | ||
- | ==== Compact a VM Disk ==== | + | === Ubuntu |
- | http://novemberechoromeodelta.com/20081220-shrinking-virtualbox-vdi-files | + | https://help.ubuntu.com/community/ |
- | http:// | + | == Open Source Edition == |
- | Defrag the disk within the VM. | + | < |
+ | sudo apt-get install dkms build-essential linux-headers-`uname -r` virtualbox-ose | ||
+ | </ | ||
- | ==== VMware VM ==== | ||
- | :!: I'm not convinced moving VMs from one virtualization platform to another is a "good idea" | + | == Personal Edition == |
- | http://www.virtualbox.org/wiki/Migrate_Windows | + | < |
+ | sudo apt-get install dkms build-essential linux-headers-`uname -r` virtualbox-4.2 | ||
+ | </file> | ||
- | * You will have to reactivate Windows | + | ===== Shared Folders (Guest-Host) ===== |
- | * You will probably have to Enable IO APIC to get the VM to boot | + | |
- | * You may need to set the Network Adapter to Bridged mode | + | |
- | * You will need to uninstall the VMware Tools | + | |
- | * You will need to install the Virtualbox | + | |
- | * You will need to get USB working in the VM | + | |
- | * There is a VMware cleaner utility to help | + | |
- | * http:// | + | |
- | * Use a USB memory key to transfer the utility | + | |
- | * You may still have problems with the NIC | + | |
- | ==== Convert VMDK to VDI Disk Image ==== | + | Install Guest Additions (tools), then view the " |
- | + | ||
- | If your VMware virtual disk is comprised of multiple .vmdk files, you have to reorganize it into a single file. We use a tool from VMware Server and one from Qemu: | + | |
< | < | ||
- | vmware-vdiskmanager -r vm-name.vmdk -t 0 temp.vmdk | + | \\vboxsvr |
- | sudo apt-get install qemu | + | |
- | qemu-img convert temp.vmdk temp.bin | + | |
- | VBoxManage convertdd temp.bin new-hardive-name.vdi | + | |
</ | </ | ||
- | ==== NIC Driver (am79C973) | + | ===== Guest Virtual Machines ===== |
- | Device Manager -> Right-Click VMware NIC -> Update Driver -> Install From List -> Don't Search -> AMD PCNET Family PCI Ethernet Adapter | + | ==== Windows XP Guest ==== |
- | http:// | + | * You probably don't need more than 1 vCPU and 512MB RAM |
+ | * You can get by with as ittle as 8GB of disk space | ||
- | ===== Centos Guest ===== | + | === Guest Additions |
+ | |||
+ | Mount Windows Tools ISO and run: | ||
+ | |||
+ | < | ||
+ | d: | ||
+ | </ | ||
+ | |||
+ | ==== CentOS Guest ==== | ||
If it won't boot, edit the System setting to " | If it won't boot, edit the System setting to " | ||
- | ==== Network Install ==== | + | === Network Install === |
+ | |||
+ | :!: Using network installation, | ||
[[computing: | [[computing: | ||
- | ==== Linux Guest Additions | + | === Guest Additions === |
http:// | http:// | ||
- | |||
- | < | ||
- | sudo apt-get install build-essential linux-headers-`uname -r` | ||
- | </ | ||
- | |||
- | or | ||
< | < | ||
Line 134: | Line 128: | ||
In VM: | In VM: | ||
+ | |||
< | < | ||
- | |||
mount / | mount / | ||
Line 151: | Line 145: | ||
</ | </ | ||
- | ===== Virtual Disk Files ===== | + | ==== Ubuntu Guest ==== |
- | http:// | + | === Guest Additions === |
- | File -> Import | + | http:// |
- | File -> Export | + | |
- | ===== Windows XP Guest ===== | + | < |
+ | sudo apt-get install build-essential linux-headers-`uname -r` | ||
+ | </ | ||
- | Force uninstall VMware Tools: | + | ==== Debian Guest ==== |
- | Mount Windows Tools ISO and run: | + | === Guest Additions === |
+ | |||
+ | http:// | ||
+ | |||
+ | As '' | ||
< | < | ||
- | d: | + | apt-get install build-essential module-assistant |
+ | |||
+ | m-a prepare | ||
+ | |||
+ | mount /media/ | ||
+ | |||
+ | sh / | ||
</ | </ | ||
- | Manually delete | + | ===== Configuration ===== |
- | Shared folders: | + | ==== Network ==== |
- | Install Guest Additions (tools), then view the " | + | Network |
+ | |||
+ | ===== Maintenance ===== | ||
+ | |||
+ | ==== Host Kernel Upgrade ==== | ||
+ | |||
+ | Rebuild the kernel module: | ||
< | < | ||
- | \\vboxsvr | + | sudo / |
</ | </ | ||
+ | |||
+ | ==== Compact a VM Disk ==== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | http:// | ||
+ | |||
+ | - 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 ==== | ||
+ | |||
+ | :!: I'm not convinced moving VMs from one virtualization platform to another is a "good idea" | ||
+ | |||
+ | 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 probably have to Enable IO APIC to get the VM to boot | ||
+ | * You may need to set the Network Adapter to Bridged mode | ||
+ | * You will need to uninstall the VMware Tools | ||
+ | * You will need to install the Virtualbox Guest Additions | ||
+ | * You will need to get USB working in the VM | ||
+ | * There is a VMware cleaner utility to help | ||
+ | * http:// | ||
+ | * Use a USB memory key to transfer the utility | ||
+ | * You may still have problems with the NIC | ||
+ | |||
+ | ==== Convert VMDK to VDI Disk Image ==== | ||
+ | |||
+ | If your VMware virtual disk is comprised of multiple .vmdk files, you have to reorganize it into a single file. We use a tool from VMware Server and one from Qemu: | ||
+ | |||
+ | < | ||
+ | vmware-vdiskmanager -r vm-name.vmdk -t 0 temp.vmdk | ||
+ | sudo apt-get install qemu | ||
+ | qemu-img convert temp.vmdk temp.bin | ||
+ | VBoxManage convertdd temp.bin new-hardive-name.vdi | ||
+ | </ | ||
+ | |||
+ | ==== NIC Driver (am79C973) ==== | ||
+ | |||
+ | Device Manager -> Right-Click VMware NIC -> Update Driver -> Install From List -> Don't Search -> AMD PCNET Family PCI Ethernet Adapter | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ===== Virtual Disk Files ===== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | File -> Import | ||
+ | File -> Export | ||
===== Headless ===== | ===== Headless ===== |