VirtualBox is a powerful x86 and AMD64 virtualization product for enterprise and home use. Free and open source, it provides an easy way to run multiple operating systems on a single machine.
📑 Table of Contents
Key Features
- Cross-Platform: Windows, macOS, Linux hosts
- Guest Additions: Enhanced guest OS integration
- Snapshots: Save and restore VM states
- Shared Folders: File sharing between host and guest
- USB Support: Access USB devices in VMs
Installation
Install VirtualBox on Ubuntu:
sudo apt update
sudo apt install virtualbox virtualbox-ext-pack
Usage Examples
VirtualBox command line operations:
# Create VM
VBoxManage createvm --name "Ubuntu" --ostype Ubuntu_64 --register
# Configure VM
VBoxManage modifyvm "Ubuntu" --memory 4096 --cpus 2
# Create and attach disk
VBoxManage createhd --filename ubuntu.vdi --size 25600
VBoxManage storagectl "Ubuntu" --name "SATA" --add sata
VBoxManage storageattach "Ubuntu" --storagectl "SATA" --port 0 --type hdd --medium ubuntu.vdi
# Start VM
VBoxManage startvm "Ubuntu"
Benefits
VirtualBox provides desktop virtualization without cost. Its intuitive interface and extensive features make it accessible for testing and development environments.
Was this article helpful?