VirtualBox
Original author(s) | innotek |
---|---|
Developer(s) | Sun Microsystems |
Initial release | January 15, 2007 |
Stable release | 7.0.10 (17 July 2023[1]) [±] |
Repository | |
Written in | C++ |
Operating system | Cross-platform |
Size | ~36MiB |
Type | Virtual machine |
License | Proprietary / GNU General Public License |
Website | www.virtualbox.org |
VirtualBox is an x86 virtualization software package, originally created by German software company innotek, now developed by Sun Microsystems as part of its Sun xVM virtualization platform. It is installed on an existing host operating system; within this application, additional operating systems, each known as a Guest OS, can be loaded and run, each with its own virtual environment.
Supported host operating systems include Linux, Mac OS X, OS/2 Warp, Windows XP or Vista, and Solaris, while supported guest operating systems include FreeBSD, Linux, OpenBSD, OS/2 Warp, Windows and Solaris.[2]
According to a 2007 survey by DesktopLinux.com, VirtualBox is the third most popular software package for running Windows programs on Linux desktops.[3]
History
The application was initially offered under a proprietary software license, and one version of the product, VirtualBox, is free only for personal or evaluation use, subject to the VirtualBox Personal Use and Evaluation License (PUEL).[4] In January 2007, after several years of development, VirtualBox OSE (Open Source Edition) was released as free software for commercial and private use, subject to the requirements of the GNU General Public License (GPL), version 2.[5]
The original developer, innotek, also contributed to the development of OS/2 and Linux support in virtualization[6] and OS/2 ports[7] of products from Connectix which were later acquired by Microsoft. Specifically, innotek developed the “additions” code in both Microsoft Virtual PC and Microsoft Virtual Server, which greatly improves host-guest OS interactions. OS/2 has been notoriously difficult to run virtualized in the past due to extensive ring 2 execution.
Sun Microsystems acquired Innotek in February 2008.[8][9][10]
Feature set
- 64-bit guests (64 bit hosts with CPU virtualisation extensions or experimentally on 32bit hosts)
- Remote Desktop Protocol (RDP) control of VM
- iSCSI support
- NCQ support for SATA raw disks and partitions
- USB support, with remote devices over RDP
- Snapshots
- Seamless mode
- Clipboard
- Shared folders
- Special drivers and utilities to facilitate switching between systems
- Experimental OpenGL drivers for win32 to render on Host hardware
- Command line interaction (in addition to the GUI)
- Public API (Java, Python, SOAP, XPCOM) to control VM configuration and execution [11]
- Remote display (useful for headless host machines)
- Nested paging for AMD-V and Intel Nehalem
- VMware Virtual Machine Disk Format (VMDK) support - allows VirtualBox to use a disk image created in VMware
- Microsoft VHD support
Emulated environment
While several guest operating systems can be loaded, it may be impractical to run several at once if RAM is restricted on the host machine. Each can be started, paused and stopped independently. The host operating system and guest operating systems can communicate with each other, using the network facility provided, as can guest operating systems if more than one is running.
Hardware emulation
VirtualBox supports Intel's hardware virtualization VT-x and has support for AMD's AMD-V, but does not use either of them by default.[12]
Hard disks are emulated in a special container format called "Virtual Disk Images", which is, at present, incompatible with the formats used by other virtualization solutions. These are normally stored as system files on the host operating system (with a .vdi suffix). Alternatively, VirtualBox has a unique feature in that it can connect to iSCSI targets and use them as virtual hard disks as well. VirtualBox can also read and write disk images in VMware Virtual Machine Disk Format (VMDK). This means that a VirtualBox virtual machine can be setup using disks that were created in VMware. It also has a utility to convert Microsoft VirtualPC disks.
ISO images can be mounted as CD/DVD drives. For example the DVD image of a Linux distribution can be downloaded and used directly by VirtualBox. While there's no need to burn a disk, it is also possible to mount physical disks directly to a virtual machine.
By default VirtualBox provides graphics support through a custom virtual graphics card which is VESA compatible. With the Guest Additions for Windows, Linux, Solaris or OS/2 guests comes a special video driver that allows for better performance and features such as dynamically adjusting the guest resolution when the VM window is resized.
For an Ethernet network adapter, VirtualBox virtualizes these Network Interface Cards: AMD PCnet PCI II (Am79C970A), AMD PCnet-Fast III (Am79C973), Intel Pro/1000 MT Desktop (82540EM) and Intel Pro/1000 T Server (82543GC). Such a broad range of the emulated network cards allows running many operating systems without finding and installing drivers. By default, VirtualBox sets the network up with NAT through which user programs like Firefox or ssh can operate. For hosts other than Windows Vista, other options exist, such as virtual networks between guests. Up to four network adapters can be attached simultaneously.
For a sound card, VirtualBox virtualizes an Intel ICH AC'97 device or a SoundBlaster 16 card.
In the "full release" (not in the open-source edition), a USB controller is emulated (both USB 1.1 and USB 2.0) so that any USB devices attached to the host can be seen in the guest. 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.
VirtualBox attempts to run as much guest code natively (that is, directly on the host processor) as possible. This works well for user-mode code running in the guest's ring 3 of the Intel ring architecture. However, the guest's ring-0 code, which will usually contain many privileged instructions, will need to be intercepted. VirtualBox has a rather novel approach to fix this conflict: It tricks the guest operating system to actually execute its ring-0 code in ring 1, which is normally unused on the Intel architecture.
If problems arise, VirtualBox has a built-in dynamic recompiler, like other virtualizers do. VirtualBox's recompiler is based on the free and open-source QEMU. In addition, however, VirtualBox automatically disassembles and, in many situations, patches the guest code to avoid future recompilations, as these are relatively expensive.[13] As a result, both the guest's ring-3 and ring-0 code can run natively most of the time, and with this combination of "traditional" recompiling and actual code patching, VirtualBox achieves a performance that is comparable to that of VMware.[14]
Future development
A roadmap of features which are planned to be added to VirtualBox was released at the CommunityOne 2008 conference.[15] The roadmap included:
- Memory ballooning[16]
- Live migration
- 3D virtualization (Limited support for OpenGL was added to v2.1)
- More portable snapshots
- Next-generation seamless windowing with better desktop integration
- Paravirtualization using Virtual Machine Interface (VMI) and Windows "Enlightenments" paravirtualization
Proprietary vs. open source
There are two versions of the VirtualBox software.
The full VirtualBox package comes under a proprietary Personal Use and Evaluation License (PUEL), which allows using the software free-of-charge for personal and educational use and evaluation of the product.[17] Licenses for commercial deployment of the full VirtualBox package can be purchased from Sun, although commercial use by individuals within a company is covered by the free PUEL.[18]
A second version called the VirtualBox Open Source Edition (OSE) is free software released under the GNU General Public License (GPL), from which the following closed-source features are missing:[19]
- The built-in Remote Desktop Protocol (RDP) server
- USB support (see above) and the combination of running the RDP server with support of remote USB devices
- iSCSI support for virtual hard disks (see above)
- Gigabit Ethernet Controller
- Serial ATA Controller
See also
References
- ^ "Changelog". Oracle VM Virtualbox. Oracle. 2023-07-17. Retrieved 2023-07-17.
- ^ "Status: Guest OSes" page on VirtualBox website
- ^ "2007 Desktop Linux Survey results revealed".
- ^ VirtualBox_PUEL - VirtualBox
- ^ http://www.virtualbox.org/wiki/GPL "The VirtualBox Open Source Edition is licensed under the GPL V2."
- ^ Microsoft Virtual PC Additions Version History
- ^ Connectix Announces First Virtual Computing Solution for OS/2 User
- ^ "Sun Microsystems Announces Agreement to Acquire innotek, Expanding Sun xVM Reach to the Developer Desktop" (Press release). Sun Microsystems. February 12, 2008. Retrieved 2008-02-12.
- ^ Ecommerce Article about the acquisition by Sun, 13 February 2008
- ^ "Sun Welcomes Innotek". Sun Microsystems, Inc. Retrieved 2008-02-26.
On February 20 Sun completed the acquisition of innotek
- ^ "Python API to the VirtualBox VM". Sun Microsystems. 2008-09-05. Retrieved 2008-09-06.
- ^ "Developer FAQ" page on VirtualBox website
- ^ "Architecture" page on VirtualBox website
- ^ Test report by German website heise.de after the open source release, published Jan 15, 2007
- ^ VirtualBox 1.6 at Community One : OS Technology
- ^ Carl A. Waldspurger. "Memory Resource Management in VMware ESX Server". Usenix.
- ^ VirtualBox license page
- ^ "Licensing FAQ". VirtualBox. Retrieved 2008-12-16.
- ^ "Editions" page on VirtualBox website