Category:Virtualization: Difference between revisions

Klinger (talk | contribs)
little bit expanded to faster find the right link.
Klinger (talk | contribs)
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
This guide page exists to point out resources related to virtualization in the Nix ecosystem.
This guide page exists to point out resources related to virtualization in the Nix ecosystem.


== NixOS as VM guest ==
You can use
This section is for information about running NixOS as a guest virtual machine.


=== VirtualBox as host ===
* QEMU/KVM (see [[Virt-manager]])
NixOS.org hosts an [https://nixos.org/download.html#nixos-virtualbox official VirtualBox virtual appliance image] in OVA format. It is also possible to install via install image.
* [[VirtualBox]]
* [[VMware]]


=== VMware as host ===
for virtualization. You can use [[:Category:Container|containers]] as well.
See [[VMware]] for help using VMware to virtualize NixOS.
{| class="wikitable"
|+Install of host and install of guest additions
!NixOS host
!NixOS guest
!Code
|-
|QEMU/KVM
|
|virtualisation.libvirtd.enable = true;
<nowiki>#</nowiki> if you use libvirtd on a desktop environment


=== microvm.nix ===
programs.virt-manager.enable = true; # can be used to manage non-local hosts as well
NixOS on NixOS with configurable virtual machine manager: https://github.com/astro/microvm.nix
|-
|VirtualBox
|
|virtualisation.virtualbox.host.enable = true;
users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ]; <nowiki>#</nowiki> unfree Extension Pack nixpkgs.config.allowUnfree = true; virtualisation.virtualbox.host.enableExtensionPack = true;
|-
|VMware
|
|virtualisation.vmware.host.enable = true;
|-
|
|QEMU/KVM
|services.qemuGuest.enable =true;
services.spice-vdagentd.enable = true;
|-
|
|VirtualBox
|virtualisation.virtualbox.guest.enable = true;
virtualisation.virtualbox.guest.x11 = true;
|-
|
|VMware
|services.xserver.videoDrivers = [ "vmware" ];
virtualisation.vmware.guest.enable = true;
|-
|
|microvm.nix
|see  https://github.com/astro/microvm.nix
|}


== NixOS as a VM host ==
[[Category:Software]]
This section covers if you want to run virtual machines from within Nix(OS).
[[Category:Desktop]]
 
[[Category:Server]]
=== running VMware host on NixOS ===
1. In your configuration.nix  add the following line
<code> virtualisation.vmware.host.enable = true; </code>
 
2. reboot
 
=== running VirtualBox host on NixOS ===
See [[VirtualBox]] for more.
 
=== running QEMU/KVM host on NixOS ===
See [[Virt-manager]]
 
 
[[Category:Guide]]
[[Category:Virtualization]]