summaryrefslogtreecommitdiffstats
path: root/nixos/modules/virtualisation/virtualbox-host.nix
AgeCommit message (Collapse)Author
2019-05-09virtualbox: 5.2.28 -> 6.0.6Ambroz Bizjak
Quite some fixing was needed to get this to work. Changes in VirtualBox and additions: - VirtualBox is no longer officially supported on 32-bit hosts so i686-linux is removed from platforms for VirtualBox and the extension pack. 32-bit additions still work. - There was a refactoring of kernel module makefiles and two resulting bugs affected us which had to be patched. These bugs were reported to the bug tracker (see comments near patches). - The Qt5X11Extras makefile patch broke. Fixed it to apply again, making the libraries logic simpler and more correct (it just uses a different base path instead of always linking to Qt5X11Extras). - Added a patch to remove "test1" and "test2" kernel messages due to forgotten debugging code. - virtualbox-host NixOS module: the VirtualBoxVM executable should be setuid not VirtualBox. This matches how the official installer sets it up. - Additions: replaced a for loop for installing kernel modules with just a "make install", which seems to work without any of the things done in the previous code. - Additions: The package defined buildCommand which resulted in phases not running, including RUNPATH stripping in fixupPhase, and installPhase was defined which was not even run. Fixed this by refactoring using phases. Had to set dontStrip otherwise binaries were broken by stripping. The libdbus path had to be added later in fixupPhase because it is used via dlopen not directly linked. - Additions: Added zlib and libc to patchelf, otherwise runtime library errors result from some binaries. For some reason the missing libc only manifested itself for mount.vboxsf when included in the initrd. Changes in nixos/tests/virtualbox: - Update the simple-gui test to send the right keys to start the VM. With VirtualBox 5 it was enough to just send "return", but with 6 the Tools thing may be selected by default. Send "home" to reliably select Tools, "down" to move to the VM and "return" to start it. - Disable the VirtualBox UART by default because it causes a crash due to a regression in VirtualBox (specific to software virtualization and serial port usage). It can still be enabled using an option but there is an assert that KVM nested virtualization is enabled, which works around the problem (see below). - Add an option to enable nested KVM virtualization, allowing VirtualBox to use hardware virtualization. This works around the UART problem and also allows using 64-bit guests, but requires a kernel module parameter. - Add an option to run 64-bit guests. Tested that the tests pass with that. As mentioned this requires KVM nested virtualization.
2019-03-09virtualbox-host module: fix warnings syntaxAristid Breitkreuz
2019-03-06nixos/virtualbox: add warning when for ineffective nixpkgs configHerwig Hochleitner
nixpkgs.config.virtualbox.enableExtensionPack doesn't do anything, but used to. Add a warning for the unsuspecting.
2018-08-16Merge remote-tracking branch 'origin/master' into vbox-extpack(cdep)illabout
2018-08-11virtualbox module: allow to pass the package (#44907)zimbatm
2018-08-11virtualization: update the virtualbox-host module to use the extension pack ↵(cdep)illabout
if enabled.
2018-06-30nixos/modules: users.(extraUsers|extraGroup->users|group)Florian Klink
2018-05-01virtualisation.virtualbox.host: migrate from mkOption to mkEnableOptionFlorian Klink
2018-05-01virtualisation.virtualbox.host: introduce enableExtensionPackFlorian Klink
2018-02-19Virtualbox: Fix type error in `networking.interfaces.vboxnet0.ipv4.addresses`Moritz Ulrich
This error introduced in e239c1e5820bdbb3d94ccc46e2d6756b0d37057d prevented evaluation on my machine.
2018-02-17nixos/tests: rename IP addresses/routes optionsrnhmjoj
2017-02-15nixos/virtualbox: unbreak wrt. new security.wrappersBjørn Forsman
The new option takes an attrset, not a list.
2017-01-29Getting rid of the var indirection and using a bin path insteadParnell Springmeyer
2017-01-29Fixing a bunch of issuesParnell Springmeyer
2017-01-28Addressing PR feedbackParnell Springmeyer
2017-01-25setcap-wrapper: Merging with upstream master and resolving conflictsParnell Springmeyer
2016-09-13virtualbox: Split kernel modules into own packageaszlig
Putting the kernel modules into the same output path as the main VirtualBox derivation causes all of VirtualBox to be rebuilt on every single kernel update. The build process of VirtualBox already outputs the kernel module source along with the generated files for the configuration of the main VirtualBox package. We put this into a different output called "modsrc" which we re-use from linuxPackages.virtualbox, which is now only containing the resulting kernel modules without the main user space implementation. This not only has the advantage of decluttering the Nix expression for the user space portions but also gets rid of the need to nuke references and the need to patch out "depmod -a". Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-09-01Adapting everything for the merged permissions wrappers work.Parnell Springmeyer
2016-09-01virtualbox: add headless build (without Qt dependency) (#18026)Данило Глинський (Danylo Hlynskyi)
2015-11-10virtualbox service: hide vboxnet0 from NetworkManager, fixes #10862Tomasz Kontusz
2015-08-13nixos/vbox: Move all options to virtualisation.*.aszlig
Commit 687caeb renamed services.virtualboxHost to programs.virtualbox, but according to the discussion on the commit, it's probably a better to put it into virtualisation.virtualbox instead. The discussion can be found here: https://github.com/NixOS/nixpkgs/commit/687caeb#commitcomment-12664978 Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2015-08-12Rename services.virtualboxHost -> programs.virtualboxEelco Dolstra
VirtualBox is an application, not a system service.
2015-08-04nixos: Give virtualbox-host.nix a better location.aszlig
In 14f09e0, I've introduced the module under modules/programs, because the legacy virtualbox.nix was also under that path. But because we already have modules/virtualisation/virtualbox-guest.nix, it really makes sense to put this module alongside of it as well. This module thus has no change in functionality and I've tested evaluation against nixos/tests/virtualbox.nix and the manual. Signed-off-by: aszlig <aszlig@redmoonstudios.org>