VirtualBox: Difference between revisions

From NixOS Wiki
Layer-09 (talk | contribs)
m The option `virtualisation.virtualbox.guest.draganddrop' has been renamed to `virtualisation.virtualbox.guest.dragAndDrop'.
Klinger (talk | contribs)
m Beginning sentence and link
Line 1: Line 1:
[https://www.virtualbox.org/ VirtualBox] is a virtualisation hypervisor. It has powerful a GUI included for managing virtual maschines.
== NixOS Installation ==
== NixOS Installation ==
VirtualBox can be installed on NixOS without problems, put this snippet in your <code>configuration.nix</code>
VirtualBox can be installed on NixOS without problems, put this snippet in your <code>configuration.nix</code>

Revision as of 18:22, 5 July 2024

VirtualBox is a virtualisation hypervisor. It has powerful a GUI included for managing virtual maschines.

NixOS Installation

VirtualBox can be installed on NixOS without problems, put this snippet in your configuration.nix

{
   virtualisation.virtualbox.host.enable = true;
   users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];
}

Adding users to the group vboxusers allows them to use the virtualbox functionality.

VirtualBox Oracle Extensions

Note: This package is unfree and requires extra steps to install.

Oracle VirtualBox Extensions are required if you want to forward usb2 or usb3 to your guests. The Extensions are unfree.

{
   nixpkgs.config.allowUnfree = true;
   virtualisation.virtualbox.host.enable = true;
   virtualisation.virtualbox.host.enableExtensionPack = true;
}
Warning: Host extensions cause frequent recompilation.

Possible solutions:

VirtualBox Guest Additions

{
  virtualisation.virtualbox.guest.enable = true;
  virtualisation.virtualbox.guest.dragAndDrop = true;
}

See also