Category:Virtualization: Difference between revisions

From NixOS Wiki
imported>Neongreensniper
imported>Neongreensniper
No edit summary
Line 25: Line 25:
====VMware====
====VMware====
1. In your configuration.nix  add the following lines
1. In your configuration.nix  add the following lines
<code>  environment.systemPackages = [
pkgs.linuxKernel.packages.linux_6_1.vmware # Kernel modules for vmware if you are running Linux 6.1.**
pkgs.vmware-workstation  ];


<code> 
environment.systemPackages = [
    pkgs.linuxKernel.packages.linux_6_1.vmware # Kernel modules for vmware if you are running Linux 6.1.**
    pkgs.vmware-workstation
  ];
</code>
</code>
2. Enable the kernel module in configuration.nix  
2. Enable the kernel module in configuration.nix by adding this line at the end.
  <code> virtualisation.vmware.host.enable = true; </code>
  <code> virtualisation.vmware.host.enable = true; </code>
3. reboot  
3. reboot  

Revision as of 18:01, 17 December 2023

Overview

This guide page exists to point out resources related to virtualization in the Nix ecosystem.

Virtualizing NixOS

This section is for information about running NixOS as a guest virtual machine.

VirtualBox

NixOS.org hosts an official VirtualBox virtual appliance image in OVA format.

VMware

See VMware for help using VMware to virtualize NixOS.

microvm.nix

NixOS on NixOS with configurable virtual machine manager: https://github.com/astro/microvm.nix

NixOS as a VM host

This section covers if you want to run virtual machines from within Nix(OS).

VMware

1. In your configuration.nix add the following lines environment.systemPackages = [ pkgs.linuxKernel.packages.linux_6_1.vmware # Kernel modules for vmware if you are running Linux 6.1.** pkgs.vmware-workstation ];

2. Enable the kernel module in configuration.nix by adding this line at the end.

 virtualisation.vmware.host.enable = true; 

3. reboot

VirtualBox

See VirtualBox for more.


QEMU/KVM

See Virt-manager