- 1 Is VirtualBox an Insecure Choice?
- 2 VirtualBox missing features
- 3 VirtualBox Unavailable in Debian stable and backports due to Debian Stable Security Maintenance Issues
- 4 VirtualBox Unavailable in Debian main due to Licensing Issues
- 5 Arguments for keeping VirtualBox Support
- 6 Bugs
- 7 VirtualBox Bug Reports
- 8 Bug Report Draft
- 9 References
Is VirtualBox an Insecure Choice?
For greater security, users with suitable hardware and sufficient skill are recommended to prefer Qubes-Whonix ™ (a bare-metal hypervisor) over Type 2 hypervisors like VirtualBox.
The primary reason Whonix ™ supports VirtualBox is because it is a familiar, cross-platform virtualizer which can attract more users to open source (free/Libre) software, Tor and Linux in general. By remaining highly accessible, Whonix:
- Increases the scope of potential growth in the user base.
- Attracts greater attention as a suitable anonymity-focused operation system.
- Increases the likelihood of additional human resources and monetary contributions.
- Allows novice users to easily test Whonix ™ and learn more about security and anonymity practices.
- Improves the relative security and anonymity of Tor / Tor Browser users by offering a virtualized solution.
- See also Arguments for keeping VirtualBox Support.
If you would like to see the old statement, please press on expand on the right.
Whonix ™ in VirtualBox vs Tor / Tor Browser / Torified Applications on the Host
It is recognized that VirtualBox is not an ideal choice; see Dev/Virtualization Platform. However, there are different goals to bear in mind - Whonix ™ is primarily focused on protecting a user's IP address / location.
A common refrain of critics is that VirtualBox is "too weak". This is a theoretical concern and does not have any practical implications at present, since Whonix ™ in VirtualBox is actually more secure than running Tor, Tor Browser or torified applications on the host in many cases; see Whonix ™ Security in the Real World.
It must be remembered that there are no alternatives for a large segment of the population who do not have sufficiently powerful hardware to run Qubes-Whonix ™, or who are technically incapable of running KVM. In this case, it is safer for them to run Whonix ™ in VirtualBox, rather than continuing to utilize Tor on the host. For example, Whonix ™ helps to protect against future proxy bypass bugs [archive] or software which does not honor proxy settings [archive].
The strength of Whonix ™ and virtualization in general is adherence to the security by isolation principle. VirtualBox critics need to objectively consider how many exploits currently exist for VirtualBox and the track record of exploits. Admittedly, virtual machine exploits may become far more problematic in the future, but at present Whonix ™ is considered to provide more security out of the box running in VirtualBox, than not.
Platforms with Improved Security
Anybody seriously considering Whonix ™ for improved security should refer to the Documentation, particularly the Security Guide and Advanced Security Guide entries, as well as supported platforms other than VirtualBox. Whonix ™ is a poster child for the Isolating Proxy Concept [archive] and Security by Isolation [archive].
Many users still default to running Tor on their Windows or Linux host. Whonix ™ is immediately available to this cohort to substantially improve their real world security. Indeed, Whonix ™ is the only up-to-date OS designed to be run inside a VM and paired with Tor, which is actively maintained and developed. Other similar projects like JanusVM [archive] are seriously outdated and no longer actively maintained. 
Whonix ™ cannot serve all target audiences. Users seeking a higher security solution will prefer other supported platforms, like Qubes-Whonix ™. "Hardcore" users may prefer to build their own custom hardened solutions, while still profiting from Whonix ™ research and source code. Hardened solutions like the Hardened Gentoo Whonix-Gateway ™ are more difficult to use and therefore cannot be set as the default installation for Whonix ™.
VirtualBox missing features
- The following is non-ideal for verifiable builds, because we have to convert to vdi first:
- VirtualBox uses VMDK version 3. This is non-ideal, because working with these images is difficult.
- Converting these images is difficult.
qemu-img version 1.6.1 (qemu-img: 'image' uses a vmdk feature which is not supported by this qemu version: VMDK version 3, which is a known issue in qemu [archive].As per ) fails with: this [archive], QEMU version equal or bigger than 2.8 should be capable to work with VMDK version 3 disks. TODO: try
- Therefore it is required to convert them with VBoxManage to .vdi first. ( )
Therefore the Free guestmount doesn't support mounting VMDK version 3 as well (because it internally uses qemu-img).(Still true?) It requires proprietary software to mount them, such as the proprietary nbdkit plugin vddk [archive]. We're not aware of a Free Software alternative yet.(Still true?)
- When importing VMs these become VDI images nowadays with recent VirtualBox versions.
- Converting these images is difficult.
- Guest Additions Debian Packages unavailable from Oracle Repository [archive]
- Can a guest find out its host operating system? [archive]: seems not possible. This is is non-ideal, because we can not warn when host operating systems are being used we don't think are the right tool for hosting Whonix ™ VMs.
- Signatures (not important because we offer OpenPGP / gpg signatures):
Virtualbox is not available in Debian 10 (nor in backports). The reasons are discussed at length in https://bugs.debian.org/794466 [archive] and various other mailing list threads, but can be summarized as:
- Virtualbox is not suitable for Debian stable releases because of the lack of cooperation of Oracle on security support (that’s the Debian security team decision).
- Since it is not suitable for stable releases, it cannot be included in the testing suite (that’s the Debian release team decision).
- It also cannot be included in official backports, as packages must be in testing before they get backported (that’s the Debian backports team’s decision).
Quote Whonix KVM:
The VirtualBox developer team have recently taken the decision to switch out the BIOS in their hypervisor. However, it now comes with one that requires compilation by a toolchain that does not meet the definition of Free Software as per the guidelines of the Free Software Foundation. This move is considered problematic for free and open source software projects like Debian, on which Whonix ™ is based.
The issues of the Open Watcom License are explained in this thread [archive] on the Debian Mailinglist. In summary, there are issues surrounding the contradictory language of the license, the assertion of patents against software that rely upon it, and the placing of certain restrictions on software uses. For these reasons, those who care about running FOSS and appreciate its ethical views are recommended to avoid running VirtualBox; also see avoid non-freedom software.
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709899 [archive]
- http://lists.debian.org/debian-devel/2013/08/msg00057.html [archive]
- "Virtualbox ships a BIOS that requires Watcom to compile from real sources,precompiled copy they ship as well is free but is not the preferred form for modification." http://lists.debian.org/debian-devel/2013/08/msg00106.html [archive]
- https://lists.torproject.org/pipermail/tor-talk/2013-September/029978.html [archive]
- ticket asking Sybase to fix licensing issues for Watcom compiler [archive]
- ticket asking Oracle to use a compiler different than Watcom [archive]
- VirutalBox forums question: Is VBoxGuestAdditions_6.1.10.iso OSE or PUEL? [archive]
- Debian bug report: move virtualbox-guest-additions-iso from non-free to contrib [archive]
- This is unrelated to
VirtualBox Oracle VM VirtualBox Extension Pack, which is proprietary, and which was never in Debian.
Arguments for keeping VirtualBox Support
- KVM is not available to Windows users.
- Simplicity, as in: VirtualBox has a VM import GUI feature.
- Available to users not owning computer providing hardware virtualization. (KVM requires that. QEMU may or may not but is unsupported.)
- Due to Windows users and simplicity it leads to greater popularity, which in theory attracts more users, developers, auditors, payments, etc and is therefore good for the overall health of the project.
- Some Windows/VirtualBox users experimenting with their first Linux (Whonix ™) will one day become users who mainly use Linux as their host operating system.
- We have a Whonix ™ Windows Installer which installs VirtualBox Whonix ™ VirtualBox VMs because of these reasons.
[drm:vmw_host_log [vmwgfx]] ERROR Failed to send log
Confusing message but no bad effects.
[sda] Incomplete mode parameter data / Assuming drive cache: write through
Confusing error message due to our use of a SAS virtual hard drive controller no bad effects. Error message doesn't happen with SATA controller but we can't use that one
- https://github.com/Whonix/Whonix/issues/274 [archive]
- https://www.virtualbox.org/ticket/10031 [archive]
VirtualBox Bug Reports
VirtualBox (Guest Additions) have various issues. Often copy/paste from host to VM does not work or VMs are not automatically reized to optional size.
The internet is full of discussions that lead to no solution. Hard to find good information. It is unhelpful to ask in arbitrary places about it as this only leads to more discussions which go nowhere. The only option is to find out what information VirtualBox developers are asking for, to write a good bug report and to report to virtualbox.org developers.
- Step 1) Research what information VirtualBox developers would be asking for.
- Step 2) Write a good bug report.
What Should Be Included In Bug Report
Include as many information as possible.
- bug reporting instructions
- VirtualBox VM log
- VirtualBox host log
- read these posts
- VRAM (video RAM) to 128 MB
- VirtualBox host version
- VirtualBox guest additions version
- host operating system
- guest operating system
sudo lsmod | grep vbox
sudo apt update && sudo apt install mesa-utils
glxinfo | grep OpenGL
- 3D acceleration on/off
dpkg -l | grep xorg
dpkg -l | grep x11
- VirtualBox VM log
- https://www.virtualbox.org/wiki/Guest_resizing [archive]
Deleting the file
~/config/Monitors.xmlin the guest helps.
- Try without snapshots.
- Use a real screen not over VNC.
- https://www.virtualbox.org/ticket/17777 [archive]
(EE) Failed to load module "vboxvideo" (module does not exist, 0)
As of X.Org server 1.19 we use a kernel driver and the X.Org modesetting driver. See the log section you attached.
Bug Report Draft
user@host:~$ dpkg -l | grep x11 ii libqt5x11extras5:amd64 5.11.3-2 amd64 Qt 5 X11 extras ii libva-x11-2:amd64 2.4.0-1 amd64 Video Acceleration (VA) API for Linux -- X11 runtime ii libx11-6:amd64 2:1.6.7-1 amd64 X11 client-side library ii libx11-data 2:1.6.7-1 all X11 client-side library ii libx11-xcb1:amd64 2:1.6.7-1 amd64 Xlib/XCB interface library ii libxkbcommon-x11-0:amd64 0.8.2-1 amd64 library to create keymaps with the XKB X11 protocol ii virtualbox-guest-x11 6.1.4-dfsg-2 amd64 x86 virtualization solution - X11 guest utilities ii x11-common 1:7.7+19 all X Window System (X.Org) infrastructure ii x11-utils 7.7+4 amd64 X11 utilities ii x11-xkb-utils 7.7+4 amd64 X11 XKB utilities ii x11-xserver-utils 7.7+8 amd64 X server utilities
ii xserver-xorg 1:7.7+19 amd64 X.Org X server ii xserver-xorg-core 2:1.20.4-1 amd64 Xorg X server - core server ii xserver-xorg-input-all 1:7.7+19 amd64 X.Org X server -- input driver metapackage ii xserver-xorg-input-libinput 0.28.2-2 amd64 X.Org X server -- libinput input driver ii xserver-xorg-video-fbdev 1:0.5.0-1 amd64 X.Org X server -- fbdev display driver ii xserver-xorg-video-qxl 0.1.5-2+b1 amd64 X.Org X server -- QXL display driver ii xserver-xorg-video-vesa 1:2.4.0-1 amd64 X.Org X server -- VESA display driver
1) Power off the VM. 2) Restart the VM. 3) Maximize the VM window after start of the VM as soon as possible. 4) VirtualBox VM Window → View → Virtual Screen 1 → Choose any, resize to another resolution 5) VirtualBox VM Window → View → Auto-resize Guest Display / Adjust Window Size
XFCE Start Menu → Settings → Display → Resolution: → Choose a higher resolution resolution → Apply
TODO: manual resize functional using xrandr
This is a wiki. Want to improve this page? Help is welcome and volunteer contributions are happily considered! Read, understand and agree to Conditions for Contributions to Whonix ™, then Edit! Edits are held for moderation. Policy of Whonix Website and Whonix Chat applies.
Copyright (C) 2012 - 2020 ENCRYPTED SUPPORT LP. Whonix ™ is a trademark. Whonix ™ is a licensee [archive] of the Open Invention Network [archive]. Unless otherwise noted, the content of this page is copyrighted and licensed under the same Freedom Software license as Whonix ™ itself. (Why?)