Incus: Difference between revisions
Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
[https://linuxcontainers.org/incus/ {{PAGENAME}}] (<s>[[wikipedia:en:LXC#LXD]]</s>) is a next generation system container and virtual machine manager. It is a community driven alternative to Canonical's [[LXD]], keeping the Apache-2.0 license. | |||
This document aims to provide NixOS specific information related to Incus. For non-NixOS specific documentation, please see the upstream documentation: https://linuxcontainers.org/incus/docs/main/ | This document aims to provide NixOS specific information related to Incus. For non-NixOS specific documentation, please see the upstream documentation: https://linuxcontainers.org/incus/docs/main/ | ||
Line 6: | Line 6: | ||
The service can be enabled and started by adding the service to your NixOS configuration. It must still be initialized. | The service can be enabled and started by adding the service to your NixOS configuration. It must still be initialized. | ||
virtualisation.incus.enable = true; | virtualisation.incus.enable = true; | ||
To provide non-root access to the Incus server, you will want to add your user to the incus-admin group. Don't forget to | networking.nftables.enable = true; | ||
See [[#Networking/Firewall]] for more information on the latter option. | |||
To provide non-root access to the Incus server, you will want to add your user to the incus-admin group. Don't forget to reboot. | |||
users.users.YOUR_USERNAME.extraGroups = ["incus-admin"]; | users.users.YOUR_USERNAME.extraGroups = ["incus-admin"]; | ||
You should now be able to use the incus client to talk to the server.<syntaxhighlight lang="shell-session"> | You should now be able to use the incus client to talk to the server.<syntaxhighlight lang="shell-session"> | ||
Line 72: | Line 75: | ||
== Networking/Firewall == | == Networking/Firewall == | ||
When using Incus on NixOS, nftables is required to ensure broadest compatibility with other services that manage firewall rules | When using Incus on NixOS, nftables is required to ensure broadest compatibility with other services that manage firewall rules. Trying to use iptables will fail eval, and this can be fixed by switching to nftables and for simple firewalls should be a drop-in replacement for iptables.<syntaxhighlight lang="nix"> | ||
networking.nftables.enable = true; | networking.nftables.enable = true; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 232: | Line 235: | ||
[[Category:Server]] | [[Category:Server]] | ||
[[Category:Container]] | [[Category:Container]] | ||
[[Category:Virtualization]] |