Znalostní Báze

Informace o sdružení vpsFree.cz, návody a nejčastější dotazy.

Uživatelské nástroje

Nástroje pro tento web


navody:distribuce:nixos

Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
navody:distribuce:nixos [2017/10/31 09:48]
rmarko [Common issues] ssh, systemd232/233
navody:distribuce:nixos [2018/10/27 12:29] (aktuální)
rmarko use vpsAdminOS template, mark openvz template as unsupported
Řádek 1: Řádek 1:
 ===== NixOS ===== ===== NixOS =====
  
-NixOS template is available based on NixOS 17.03. ​NixOS allows declarative configuration management of the whole system and deployed services.+NixOS allows declarative configuration management of the whole system and deployed services
 + 
 +To start using NixOS choose **[vpsAdminOS] NixOS** template.  
 + 
 +If you have set your public SSH keys in vpsAdmin the key will be automatically deployed and you can login as root right away. To be able to login with a password you need to set the password manually after your container is created.
  
 ==== Configuration ==== ==== Configuration ====
Řádek 8: Řádek 12:
  
 This can be altered to change container configuration on the fly or for next reboot. Try changing container hostname and running <​code>​nixos-rebuild switch</​code>​ to build new configuration and directly switch to it. To switch to new configuration after reboot (set as a default boot profile) use <​code>​nixos-rebuild boot</​code>​ This can be altered to change container configuration on the fly or for next reboot. Try changing container hostname and running <​code>​nixos-rebuild switch</​code>​ to build new configuration and directly switch to it. To switch to new configuration after reboot (set as a default boot profile) use <​code>​nixos-rebuild boot</​code>​
 +
 +If you are using channels you can update your system by running <​code>​nixos-rebuild switch --upgrade</​code>​
  
 ==== Package installation ==== ==== Package installation ====
Řádek 20: Řádek 26:
  
 Consult NixOS manual for more https://​nixos.org/​nixos/​manual/​ Consult NixOS manual for more https://​nixos.org/​nixos/​manual/​
 +
 +
 +===== Legacy OpenVZ templates =====
 +
 +<note important>​Due to compatibility issues with OpenVZ it is no longer recommended to use the old infrastructure for new deployments.</​note>​
  
 ==== Common issues ==== ==== Common issues ====
Řádek 76: Řádek 87:
     ERRNO=40     ERRNO=40
     MESSAGE=Failed to canonicalize path /​etc/​systemd/​system/​local-fs.target.d:​ Too many levels of symbolic links     MESSAGE=Failed to canonicalize path /​etc/​systemd/​system/​local-fs.target.d:​ Too many levels of symbolic links
- 
-$ # strace output ​   
-open("/​etc/​systemd/​system/​local-fs.target",​ O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = -1 ELOOP (Too many levels of symbolic links) 
-readlinkat(AT_FDCWD,​ "/​etc/​systemd/​system/​local-fs.target",​ "/​nix/​store/​n5ksbh1hx275zfbqbalhg"​...,​ 99) = 94  
-open("/​nix/​store/​n5ksbh1hx275zfbqbalhghzpxp1w73lf-systemd-234/​example/​systemd/​system/​local-fs.target",​ O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = 12  
-fcntl(12, F_GETFL) ​             = 0xa8000 (flags O_RDONLY|O_LARGEFILE|O_NOFOLLOW|O_CLOEXEC) 
-fstat(12, {st_mode=S_IFREG|0444,​ st_size=507,​ ...}) = 0 
-fstat(12, {st_mode=S_IFREG|0444,​ st_size=507,​ ...}) = 0 
-getpid() ​                       = 1 
-fstat(12, {st_mode=S_IFREG|0444,​ st_size=507,​ ...}) = 0 
-read(12, "# ​ This file is part of systemd."​...,​ 512) = 507 
-open("/​dev/​urandom",​ O_RDONLY|O_NOCTTY|O_CLOEXEC) = 13  
-read(13, "​\26\265jV\260\276\7\3300\22J\264m~j\37",​ 16) = 16  
-close(13) ​                      = 0 
-read(12, "",​ 512)               = 0 
-close(12) ​                      = 0 
-open("/",​ O_RDONLY|O_NOFOLLOW|O_CLOEXEC|0x200000) = 12  
-openat(12, "​etc",​ O_RDONLY|O_NOFOLLOW|O_CLOEXEC|0x200000) = 13  
-fstat(13, {st_mode=S_IFDIR|0755,​ st_size=50, ...}) = 0 
-close(12) ​                      = 0 
-openat(13, "​systemd",​ O_RDONLY|O_NOFOLLOW|O_CLOEXEC|0x200000) = 12  
-fstat(12, {st_mode=S_IFDIR|0755,​ st_size=10, ...}) = 0 
-close(13) ​                      = 0 
-openat(12, "​system",​ O_RDONLY|O_NOFOLLOW|O_CLOEXEC|0x200000) = -1 ELOOP (Too many levels of symbolic links) 
-close(12) ​                      = 0 
-writev(3, [{"​Failed to canonicalize path /​etc"​...,​ 104}, {"​\n",​ 1}], 2) = 105 
-open("/",​ O_RDONLY|O_NOFOLLOW|O_CLOEXEC|0x200000) = 12  
-openat(12, "​etc",​ O_RDONLY|O_NOFOLLOW|O_CLOEXEC|0x200000) = 13  
-fstat(13, {st_mode=S_IFDIR|0755,​ st_size=50, ...}) = 0 
-close(12) ​                      = 0 
-openat(13, "​systemd",​ O_RDONLY|O_NOFOLLOW|O_CLOEXEC|0x200000) = 12  
-fstat(12, {st_mode=S_IFDIR|0755,​ st_size=10, ...}) = 0 
-close(13) ​                      = 0 
-openat(12, "​system",​ O_RDONLY|O_NOFOLLOW|O_CLOEXEC|0x200000) = -1 ELOOP (Too many levels of symbolic links) 
-close(12) ​                      = 0 
-writev(3, [{"​Failed to canonicalize path /​etc"​...,​ 100}, {"​\n",​ 1}], 2) = 101 
-open("/​etc/​systemd/​system/​emergency.target",​ O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = -1 ELOOP (Too many levels of symbolic links) 
-readlinkat(AT_FDCWD,​ "/​etc/​systemd/​system/​emergency.target",​ "/​nix/​store/​n5ksbh1hx275zfbqbalhg"​...,​ 99) = 95  
-open("/​nix/​store/​n5ksbh1hx275zfbqbalhghzpxp1w73lf-systemd-234/​example/​systemd/​system/​emergency.target",​ O_RDONLY|O_NOCTTY|O_NOFOLLOW|O_CLOEXEC) = 12  
-fcntl(12, F_GETFL) ​             = 0xa8000 (flags O_RDONLY|O_LARGEFILE|O_NOFOLLOW|O_CLOEXEC 
-</​code>​ 
navody/distribuce/nixos.txt · Poslední úprava: 2018/10/27 12:29 autor: rmarko