Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verzeNásledující verzeObě strany příští revize | ||
navody:distribuce:nixos [2017/10/31 08:48] – [Common issues] ssh, systemd232/233 rmarko | navody:distribuce:nixos [2019/03/11 11:29] – added information about firewall by default and how to set it up martyet | ||
---|---|---|---|
Řá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. |
+ | |||
+ | 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. | ||
+ | |||
+ | ==== Initial setup & informations ==== | ||
+ | |||
+ | After installing NixOS (mainly talking about stable release) you **have to know**, that there is activated firewall by default blocking everything except ssh (port no. 22) so if you want to run some webserver (for example nginx) you have to tell firewall to not block your ports with this in your / | ||
+ | |||
+ | < | ||
+ | |||
+ | Then dont forget to do | ||
+ | |||
+ | < | ||
==== Configuration ==== | ==== Configuration ==== | ||
Řádek 8: | Řádek 23: | ||
This can be altered to change container configuration on the fly or for next reboot. Try changing container hostname and running < | This can be altered to change container configuration on the fly or for next reboot. Try changing container hostname and running < | ||
+ | |||
+ | If you are using channels you can update your system by running < | ||
==== Package installation ==== | ==== Package installation ==== | ||
Řádek 20: | Řádek 37: | ||
Consult NixOS manual for more https:// | Consult NixOS manual for more https:// | ||
+ | |||
+ | |||
+ | ===== Legacy OpenVZ templates ===== | ||
+ | |||
+ | <note important> | ||
==== Common issues ==== | ==== Common issues ==== | ||
Řádek 76: | Řádek 98: | ||
ERRNO=40 | ERRNO=40 | ||
MESSAGE=Failed to canonicalize path / | MESSAGE=Failed to canonicalize path / | ||
- | |||
- | $ # strace output | ||
- | open("/ | ||
- | readlinkat(AT_FDCWD, | ||
- | open("/ | ||
- | fcntl(12, F_GETFL) | ||
- | fstat(12, {st_mode=S_IFREG|0444, | ||
- | fstat(12, {st_mode=S_IFREG|0444, | ||
- | getpid() | ||
- | fstat(12, {st_mode=S_IFREG|0444, | ||
- | read(12, "# | ||
- | open("/ | ||
- | read(13, " | ||
- | close(13) | ||
- | read(12, "", | ||
- | close(12) | ||
- | open("/", | ||
- | openat(12, " | ||
- | fstat(13, {st_mode=S_IFDIR|0755, | ||
- | close(12) | ||
- | openat(13, " | ||
- | fstat(12, {st_mode=S_IFDIR|0755, | ||
- | close(13) | ||
- | openat(12, " | ||
- | close(12) | ||
- | writev(3, [{" | ||
- | open("/", | ||
- | openat(12, " | ||
- | fstat(13, {st_mode=S_IFDIR|0755, | ||
- | close(12) | ||
- | openat(13, " | ||
- | fstat(12, {st_mode=S_IFDIR|0755, | ||
- | close(13) | ||
- | openat(12, " | ||
- | close(12) | ||
- | writev(3, [{" | ||
- | open("/ | ||
- | readlinkat(AT_FDCWD, | ||
- | open("/ | ||
- | fcntl(12, F_GETFL) | ||
- | </ |