Proxmox Linux Container: Difference between revisions

imported>Novmar
No edit summary
Vater (talk | contribs)
Line 62: Line 62:
To create a new NixOS container, you can then clone the template instead of doing the preceding steps.
To create a new NixOS container, you can then clone the template instead of doing the preceding steps.
== Expected issues ==
== Expected issues ==
=== Entering into container by pct enter ===
=== Entering the container by <code>pct enter</code> ===
after entering container from proxmox host by
 
<pre> [root@proxmox:~]# pct enter <vmid></pre>
enter a (nixos) container from the proxmox host
you have no variables set. Fix it by typing
: <syntaxhighlight lang="shell">[root@proxmox:~]# pct enter <vmid></syntaxhighlight>
<pre> sh-5.1# source /etc/set-environment</pre>
: <syntaxhighlight lang="shell">sh-5.2#</syntaxhighlight>
 
: <s>set (missing) environment variables</s>
:: <s><syntaxhighlight lang="shell">sh-5.2# source /etc/set-environment</syntaxhighlight></s>
:: <s><syntaxhighlight lang="shell">sh-5.2#</syntaxhighlight></s>
or
: set (missing) environment variables with <code>[[wikipedia:en:dot (command)#source|.]]</code>
:: <syntaxhighlight lang="shell">sh-5.2# . /etc/profile</syntaxhighlight>
:: <syntaxhighlight lang="bash">[root@nixos:~]#</syntaxhighlight>
<!--
or
: set (missing) environment variables by opening a new shell
:: <syntaxhighlight lang="shell">sh-5.2# sh -l</syntaxhighlight>
:: <syntaxhighlight lang="bash">[root@nixos:~]#</syntaxhighlight>
-->


=== nixos-rebuild switch ===
=== nixos-rebuild switch ===