Jump to content

Category:Virtualization: Difference between revisions

From Official NixOS Wiki
Refactor page: split tables, improve introduction
Rose20 (talk | contribs)
Add space
 
Line 69: Line 69:
<nowiki>
<nowiki>
{
{
   services.qemuGuest.enable =true;
   services.qemuGuest.enable = true;
   services.spice-vdagentd.enable = true;
   services.spice-vdagentd.enable = true;
}
}
</nowiki>
</nowiki>
}}
|name=|lang=}}
|-
|-
|VirtualBox
|VirtualBox
Line 101: Line 101:
[[Category:Desktop]]
[[Category:Desktop]]
[[Category:Server]]
[[Category:Server]]
|}

Latest revision as of 18:57, 6 May 2026

This category page exists to list resources related to virtualisation in the Nix ecosystem.

Overview

You can use the following technologies for classic virtualisation on NixOS. You can also use containers, though they come with their own advantages and drawbacks.

Installing a hypervisor on the host system.
Hypervisor Code snippet to be added to configuration.nix
QEMU/KVM
❄︎ configuration.nix
{
  virtualisation.libvirtd.enable = true;

  # if you use libvirtd on a desktop environment
  programs.virt-manager.enable = true; # can be used to manage non-local hosts as well
}
Xen Project Hypervisor
❄︎ configuration.nix
{
  virtualisation.xen.enable = true;
}
VirtualBox
❄︎ configuration.nix
{
  virtualisation.virtualbox.host.enable = true;
  users.extraGroups.vboxusers.members = [ "username" ];
  
  # Non-free Extension Pack
  nixpkgs.config.allowUnfree = true;
  virtualisation.virtualbox.host.enableExtensionPack = true;
}
VMware
❄︎ configuration.nix
{
  virtualisation.vmware.host.enable = true;
}
Installing the appropriate guest utilities on a virtualised system.
Hypervisor the guest is running on Code snippet to be added to the guest's configuration.nix
QEMU/KVM
≡︎ 
{
  services.qemuGuest.enable = true;
  services.spice-vdagentd.enable = true;
}
VirtualBox
❄︎ configuration.nix
{
  virtualisation.virtualbox.guest.enable = true;
  virtualisation.virtualbox.guest.x11 = true;
}
VMware
❄︎ configuration.nix
{
  services.xserver.videoDrivers = [ "vmware" ];
  virtualisation.vmware.guest.enable = true;
}
microvm.nix Consult the MicroVM.nix documentation