Talk:Proxmox Linux Container: Difference between revisions

imported>Vater
documentation: new section
imported>Vater
Line 92: Line 92:
|  
|  
: <code>pct create </code>…
: <code>pct create </code>…
: <s><code>pct create 1000 --arch amd64 --description nixos-template cephfs:vztmpl/nixos-21.05_2021-10-10.tar.xz --ostype unmanaged --net0 name=eth0 --storage storage --unprivileged 1</code></s>
<pre></pre>
<pre></pre>
: <s><code>pct create 1000 --arch amd64 --description nixos-template cephfs:vztmpl/nixos-21.05_2021-10-10.tar.xz --ostype unmanaged --net0 name=eth0 --storage storage --unprivileged 1</code></s>
----
----
(optional you can) check the (pve) lxc config file (and it should look like something like the following)
(optional you can) check the (pve) lxc config file (and it should look like something like the following)
Line 183: Line 183:
|  
|  
: <code>pct start </code>…
: <code>pct start </code>…
: <s><code>pct start 1000</code></s>
<pre></pre>
<pre></pre>
|-
|-
| …
| login into the NixOS container
|
* (<s>node</s>(<tt>Folder View</tt>) <tt>LXC Container</tt> -> container)
* <tt>Console</tt>
<pre>
<<< Welcome to NixOS 21.05.3740.ce7a1190a0f (x86_64) - pts/0 >>>
 
Log in as "root" with an empty password.
 
 
nixos login:
</pre>
<pre>
nixos login: root
</pre>
<pre>
 
[root@nixos:~]#
</pre>
|
: <code>lxc-attach 1000</code>
<pre>
sh-4.4#
</pre>
<pre>
sh-4.4# . /etc/profile
</pre>
<pre>
 
[root@nixos:/]#
</pre>
|-
| fixing the configuration file for NixOS
|  
|  
|  
|  
(optional) check the default configuration file for NixOS
: <code>cat /etc/nixos/configuration.nix</code>
<pre>
</pre>
: <code>nano /etc/nixos/configuration.nix</code>
<pre>
{
  imports = [ <nixpkgs/nixos/modules/virtualisation/lxc-container.nix> ];
</pre>
<pre></pre>
<pre>
  systemd.suppressedSystemUnits = [
    "sys-kernel-debug.mount"
  ];
</pre>
<pre></pre>
<pre>
}
</pre>
| https://github.com/NixOS/nixpkgs/issues/9735#issuecomment-783535726
| https://github.com/NixOS/nixpkgs/issues/9735#issuecomment-783535726
|-
|-
|
| update the channel for NixOS (needed?)
|  
|  
|  
|  
: <code>nix-channel --update</code>
|-
|-
| …
| …
Return to "Proxmox Linux Container" page.