Talk:Proxmox Linux Container: Difference between revisions

imported>Vater
imported>Vater
mNo edit summary
Line 216: Line 216:


[root@nixos:/]#  
[root@nixos:/]#  
</pre>
|-
| (optional) test rebuild of NixOS
|
|
(optional) check the default configuration file for NixOS
: <code>cat /etc/nixos/configuration.nix</code>
<pre>
{ config, pkgs, ... }:
{
  imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
 
}
</pre>
: <code>nixos-rebuild test</code>
<pre>
building Nix...
building the system configuration...
activating the configuration...
setting up /etc...
setting up tmpfiles
warning: the following units failed: sys-kernel-debug.mount
● sys-kernel-debug.mount - Kernel Debug File System
    Loaded: loaded (/nix/store/n5j5fjn60nhck658j9ab84k8n9z24n1r-systemd-247.6/example/systemd/system/sys-kernel-debug.mount; enabled; vendor preset: enabled)
    Active: failed (Result: exit-code) since Mon 2021-10-11 06:48:30 UTC; 265ms ago
      Where: /sys/kernel/debug
      What: debugfs
      Docs: https://www.kernel.org/doc/Documentation/filesystems/debugfs.txt
            https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems
        IP: 0B in, 0B out
        CPU: 2ms
Oct 11 06:48:30 nixos systemd[1]: Mounting Kernel Debug File System...
Oct 11 06:48:30 nixos mount[17997]: mount: /sys/kernel/debug: permission denied.
Oct 11 06:48:30 nixos systemd[1]: sys-kernel-debug.mount: Mount process exited, code=exited, status=32/n/a
Oct 11 06:48:30 nixos systemd[1]: sys-kernel-debug.mount: Failed with result 'exit-code'.
Oct 11 06:48:30 nixos systemd[1]: Failed to mount Kernel Debug File System.
warning: error(s) occurred while switching to the new configuration
</pre>
</pre>
|-
|-
Line 224: Line 265:
: <code>cat /etc/nixos/configuration.nix</code>
: <code>cat /etc/nixos/configuration.nix</code>
<pre>
<pre>
{ config, pkgs, ... }:
{
  imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
 
}
</pre>
</pre>
: <code>nano /etc/nixos/configuration.nix</code>
: <code>nano /etc/nixos/configuration.nix</code>
Line 247: Line 295:
|  
|  
: <code>nix-channel --update</code>
: <code>nix-channel --update</code>
|-
| …
|
|
|-
|-
| …
| …
Return to "Proxmox Linux Container" page.