VirtualBox
Oracle VM VirtualBox is a free and open-source hosted hypervisor for x86 virtualization, developed by Oracle Corporation. Created by Innotek, it was acquired by Sun Microsystems in 2008, which was in turn acquired by Oracle in 2010.
VirtualBox may be installed on Windows, macOS, Linux, Solaris and OpenSolaris. There are also ports to FreeBSD and Genode. It supports the creation and management of guest virtual machines running Windows, Linux, BSD, OS/2, Solaris, Haiku, and OSx86, as well as limited virtualization of guests on Apple hardware. For some guest operating systems, a "Guest Additions" package of device drivers and system applications is available, which typically improves performance, especially that of graphics.
History
VirtualBox was first offered by Innotek GmbH from Weinstadt, Germany, under a proprietary software license, making one version of the product available at no cost for personal or evaluation use, subject to the VirtualBox Personal Use and Evaluation License. In January 2007, based on counsel by LiSoG, Innotek GmbH released VirtualBox Open Source Edition as free and open-source software, subject to the requirements of the GNU General Public License, version 2.Innotek GmbH also contributed to the development of OS/2 and Linux support in virtualization and OS/2 ports of products from Connectix which were later acquired by Microsoft. Specifically, Innotek developed the "additions" code in both Windows Virtual PC and Microsoft Virtual Server, which enables various host–guest OS interactions like shared clipboards or dynamic viewport resizing.
Sun Microsystems acquired Innotek in February 2008.
Oracle Corporation acquired Sun in January 2010 and re-branded the product as "Oracle VM VirtualBox".
In December 2019, VirtualBox started supporting only [|Hardware-based virtualization], dropping support for [|Software-based] one.
Licensing
The core package is, since version 4 in December 2010, free software under GNU General Public License version 2. The separate "VirtualBox Oracle VM VirtualBox extension pack" providing support for USB 2.0 and 3.0 devices, Remote Desktop Protocol, disk encryption, NVMe and Preboot Execution Environment boot is under a proprietary license, called Personal Use and Evaluation License , which permits use of the software for personal use, educational use, or evaluation, free of charge. Since VirtualBox version 5.1.30 Oracle defines personal use as the installation of the software on a single host computer for non-commercial purposes.Prior to version 4, there were two different packages of the VirtualBox software. The full package was offered free under the PUEL, with licenses for other commercial deployment purchasable from Oracle. A second package called the VirtualBox Open Source Edition was released under GPLv2. This removed the same proprietary components not available under GPLv2.
Building the BIOS for VirtualBox requires the use of the Open Watcom compiler, for which the Sybase Open Watcom Public License is approved as "Open Source" by the Open Source Initiative but not as "free" by the Free Software Foundation or under the Debian Free Software Guidelines.
Although VirtualBox has experimental support for Mac OS X guests, the end user license agreement of does not permit the operating system to run on non-Apple hardware, and this is enforced within the operating system by calls to the Apple System Management Controller in all Apple machines, which verifies the authenticity of the hardware.
Emulated environment
Users of VirtualBox can load multiple guest OSes under a single host operating-system. Each guest can be started, paused and stopped independently within its own virtual machine. The user can independently configure each VM and run it under a choice of software-based virtualization or hardware assisted virtualization if the underlying host hardware supports this. The host OS and guest OSs and applications can communicate with each other through a number of mechanisms including a common clipboard and a virtualized network facility. Guest VMs can also directly communicate with each other if configured to do so.Software-based virtualization
The feature was dropped starting with VirtualBox 6.1.Version 6.0 and below
In the absence of hardware-assisted virtualization, VirtualBox adopts a standard software-based virtualization approach. This mode supports 32-bit guest OSs which run in rings 0 and 3 of the Intel ring architecture.- The system reconfigures the guest OS code, which would normally run in ring 0, to execute in ring 1 on the host hardware. Because this code contains many privileged instructions which cannot run natively in ring 1, VirtualBox employs a Code Scanning and Analysis Manager to scan the ring 0 code recursively before its first execution to identify problematic instructions and then calls the Patch Manager to perform in-situ patching. This replaces the instruction with a jump to a VM-safe equivalent compiled code fragment in hypervisor memory.
- The guest user-mode code, running in ring 3, generally runs directly on the host hardware in ring 3.
Using these techniques, VirtualBox can achieve a performance comparable to that of VMware.
Hardware-assisted virtualization
VirtualBox supports both Intel's VT-x and AMD's AMD-V hardware-assisted virtualization. Making use of these facilities, VirtualBox can run each guest VM in its own separate address-space; the guest OS ring 0 code runs on the host at ring 0 in VMX non-root mode rather than in ring 1.Starting with version 6.1, VirtualBox only supports this method. Until then, VirtualBox specifically supported some guests only on hosts with hardware-assisted virtualization.
Device virtualization
The system emulates hard disks in one of three disk image formats:- VDI: This format is the VirtualBox-specific Virtual Disk Image and stores data in files bearing a ".vdi" filename extension.
- VMDK: This open format is used by VMware products such as VMware Workstation and VMware Player. It stores data in one or more files bearing ".vmdk" filename extensions. A single virtual hard disk may span several files.
- VHD: This format is used by Windows Virtual PC and Hyper-V, and is the native virtual disk format of the Microsoft Windows operating system, starting with Windows 7 and Windows Server 2008 R2. Data in this format are stored in a single file bearing the ".vhd" filename extension.
VirtualBox has supported Open Virtualization Format since version 2.2.0.
Both ISO images and host-connected physical devices can be mounted as CD/DVD drives. For example, the DVD image of a Linux distribution can be downloaded and used directly by VirtualBox.
By default, VirtualBox provides graphics support through a custom virtual graphics-card that is VESA compatible. The Guest Additions for Windows, Linux, Solaris, OpenSolaris, or OS/2 guests include a special video-driver that increases video performance and includes additional features, such as automatically adjusting the guest resolution when resizing the VM window
or desktop composition via virtualized WDDM drivers.
For an Ethernet network adapter, VirtualBox virtualizes these Network Interface Cards:
- AMD PCnet PCI II
- AMD PCnet-Fast III
- Intel Pro/1000 MT Desktop
- Intel Pro/1000 MT Server
- Intel Pro/1000 T Server
- Paravirtualized network adapter
For a sound card, VirtualBox virtualizes Intel HD Audio, Intel ICH AC'97 and SoundBlaster 16 devices.
A USB 1.1 controller is emulated so that any USB devices attached to the host can be seen in the guest. The proprietary extension pack adds a USB 2.0 or USB 3.0 controllers and, if VirtualBox acts as an RDP server, it can also use USB devices on the remote RDP client as if they were connected to the host, although only if the client supports this VirtualBox-specific extension.
Feature set
- Snapshots
- Seamless mode – the ability to run virtualized applications side by side with normal desktop applications
- Shared clipboard
- Shared folders
- Special drivers and utilities to facilitate switching between systems
- Command line interaction
- Public API to control VM configuration and execution
- Nested paging for AMD-V and Intel VT
- Limited support for 3D graphics acceleration
- SMP support, since version 3.0
- Teleportation
- 2D video output acceleration, since version 3.1
- EFI has been supported since version 3.1
- NCQ support for SATA, SCSI and SAS raw disks and partitions
- SATA disk hotplugging
- Pass-through mode for solid-state drives
- Pass-through mode for CD/DVD/BD drives – allows users to play audio CDs, burn optical disks, and play encrypted DVD discs
- Can disable host OS I/O cache
- Allows limitation of IO bandwidth
- PATA, SATA, SCSI, SAS, iSCSI, floppy disk controllers
- VM disk image encryption using AES128/AES256
- Raw hard disk access – allows physical hard disk partitions on the host system to appear in the guest system
- VMware Virtual Machine Disk format support – allows exchange of disk images with VMware
- Microsoft VHD support
- QEMU qed and qcow disks
- HDD format disks used by Parallels virtualization products
- Mac OS X Server guest support – experimental
- Memory ballooning
- RAM deduplication for Windows guests on 64-bit hosts
- CPU hot-plugging for Linux and certain Windows guests
- Deleting snapshots while the VM is running
- Multi-monitor guest setups in the GUI, for Windows guests
- LSI Logic SAS controller emulation
- Remote Desktop Protocol video acceleration via a non-free extension
- Run and control guest applications from the host – for automated software deployments
- The PUEL/OSE separation was abandoned in favor of an open source base product and a closed source extension pack that can be installed on top of the base product. As part of this change, additional components of VirtualBox were made open source
- Intel HD audio codec emulation
- Intel ICH9 chipset emulation
- A new VM storage scheme where all VM data is stored in one single folder to improve VM portability
- Several UI enhancements including a new look with VM preview and scale mode
- On 32-bit hosts, VMs can each use more than 1.5 GB of RAM
- In addition to OVF, the single file OVA format is supported
- CPU use and I/O bandwidth can be limited per VM
- Support for Apple DMG images
- Multi-monitor guest setups for Linux/Solaris guests
- Resizing of disk image formats from Oracle, VDI, and Microsoft, VHD
- Windows Aero support
- Virtual machine cloning
- Virtual machine groups – allows management of a group of virtual machines as a single unit
- Some VM settings can be altered during VM execution
- Support up to 36 NICs in case of the ICH9 chipset
- Support for limiting network I/O bandwidth
- Can automatically run VMs on host system startup
- VM video-capture support
- Host touch device support /USB virtualization of such devices
- Paravirtualization support for Windows and Linux guests to improve time-keeping accuracy and performance
- USB3 controller based on Intel's hardware implementation. It's supported by any Windows version starting from Windows 8, any Linux kernel starting from 2.6.31 and Mac OS X starting from version 10.7.4.
- Bidirectional drag and drop support for Windows, Linux and Solaris guests
- VM disk image encryption via a non-free extension
- VM output scaling and HiDPI displays support
- Hotplugging of SATA disks using GUI
- USB traffic capturing
- VMs can be disconnected from a GUI session and run in background
- AVX, AVX-2, AES-NI, SSE 4.1/4.2 instructions
- Support for exporting virtual machines to Oracle Cloud
- A file manager which allows to control the guest file system and copy files from/to it
- VMSVGA GPU driver for Linux hosts
- Surround speakers setup support
- Support for hardware-assisted nested virtualization on AMD CPUs
- Support for importing virtual machines from Oracle Cloud
- Added nested virtualization support for Intel CPUs starting with Intel Core i5 Broadwell
- Experimental support for file transfers via drag-n-drop only for Windows host and guests
- Support for virtio-scsi for hard disks and optical drives, including boot support
- Support for hosts with up to 1024 CPUs
- DXVA support for Windows guests
- NVRAM support for EFI which improves compatibility with many guest OSes
- Software keyboard for entering any keys to a guest
- Guest CPU use monitoring
- Dropped support for software CPU virtualization - a CPU with hardware virtualization support is now required
- Dropped support for PCI passthrough for Linux hosts
Limitations
- 3D graphics acceleration for Windows guests earlier than Windows 7 was removed since version 6.1. This affected Windows XP and Windows Vista.
- VirtualBox has a very low transfer rate to and from USB2 devices.
- Despite being an open source product, some of its features are available only in a binary form under a commercial license.
- USB3 devices pass through is not supported by older guest OSes like Windows Vista and Windows XP due to the lack of drivers however starting with version 5.0 VirtualBox offers experimental Renesas uPD720201 xHCI USB3 controller which allows to use USB3 in these operating systems through manual modification of configuration files.
- Guest Additions for MacOS are unavailable at this time.
- Guest Additions for Windows 9x are not available. This results in poor performance due to the lack of graphics acceleration with the default 16-bit color mode.
- EFI support is incomplete, e.g. EFI boot for a Windows 7 guest is not supported. Secure UEFI boot for guest OSes is missing.
- Only older versions of DirectX and OpenGL passthrough are supported.
- Video RAM is limited to 128 MiB due to technical difficulties.
- Windows 95/98/98SE/ME cannot be installed or work unreliably with modern CPUs and hardware assisted virtualization. This is due to these OSes not being coded correctly.
VirtualBox Extension Pack
- Support for a virtual USB 2.0/3.0 controller
- VirtualBox RDP: support for the proprietary remote connection protocol developed by Microsoft and Citrix Systems.
- PXE boot for Intel cards.
- VM disk image encryption
Host OS support
VirtualBox can be run under Windows, GNU/Linux, macOS, Sun Solaris and FreeBSD.Since version 5, VirtualBox has stated that they are dropping support for Windows XP hosts, thus leaving its users with Windows XP hosts vulnerable to flaws of earlier releases.