Talk:Proxmox Linux Container: Difference between revisions

imported>Vater
mNo edit summary
imported>Vater
mNo edit summary
Line 104: Line 104:
/etc/os-release file not found and autodetection failed, falling back to 'unmanaged'
/etc/os-release file not found and autodetection failed, falling back to 'unmanaged'
TASK OK
TASK OK
</pre>
----
(optional you can) check the (pve) lxc config file (and it should look like something like the following)
<code>less /etc/pve/lxc/1000.conf</code>
<pre>
arch: amd64
cores: 1
features: nesting=1
hostname: CT1000
memory: 512
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=F6:CA:DB:A2:BF:B6,type=veth
ostype: unmanaged
rootfs: storage:vm-1000-disk-0,size=8G
swap: 512
unprivileged: 1
</pre>
</pre>
|  
|  
Line 122: Line 137:
unprivileged: 1
unprivileged: 1
</pre>
</pre>
|-
| customize the (pve) lxc startup setup routine (on every node where you want to start a NixOS container)
|
|
<pre>
run_buffer: 316 Script exited with status 1
lxc_init: 816 Failed to run lxc.hook.pre-start for container "1000"
__lxc_start: 2007 Failed to initialize container "1000"
TASK ERROR: startup for container '1000' failed
</pre>
----
<code>nano /usr/share/perl5/PVE/LXC/Setup.pm</code>
<pre>
sub unified_cgroupv2_support {
    my ($self) = @_;
</pre>
<pre>
    return if !$self->{plugin}; # unmanaged
</pre>
<pre>
    $self->protected_call(sub { $self->{plugin}->unified_cgroupv2_support() });
}
</pre>
----
(after fixing all the other stuff)
<pre>
WARN: old systemd (< v232) detected, container won't run in a pure cgroupv2 environment! Please see documentation -> container -> cgroup version.
TASK WARNINGS: 1
</pre>
|
https://forum.proxmox.com/threads/92381/#post-402350
|-
|-
| customize the individual Proxmox Virtual Environment container configuration for NixOS
| customize the individual Proxmox Virtual Environment container configuration for NixOS
|  
|  
<pre>
sync_wait: 36 An error occurred in another process (expected sequence number 7)
TASK ERROR: startup for container '1000' failed
</pre>
|  
|  
<pre>
<pre>
Line 162: Line 213:
unprivileged: 1
unprivileged: 1
</pre>
</pre>
|-
| customize the (pve) lxc startup setup routine
|
|
<pre>
run_buffer: 316 Script exited with status 1
lxc_init: 816 Failed to run lxc.hook.pre-start for container "1000"
__lxc_start: 2007 Failed to initialize container "1000"
TASK ERROR: startup for container '1000' failed
</pre>
----
<code>nano /usr/share/perl5/PVE/LXC/Setup.pm</code>
<pre>
sub unified_cgroupv2_support {
    my ($self) = @_;
</pre>
<pre>
    return if !$self->{plugin}; # unmanaged
</pre>
<pre>
    $self->protected_call(sub { $self->{plugin}->unified_cgroupv2_support() });
}
</pre>
----
<pre>
WARN: old systemd (< v232) detected, container won't run in a pure cgroupv2 environment! Please see documentation -> container -> cgroup version.
TASK WARNINGS: 1
</pre>
|
https://forum.proxmox.com/threads/92381/#post-402350
|-
|-
| start the NixOS container with Proxmox Virtual Environment
| start the NixOS container with Proxmox Virtual Environment
Return to "Proxmox Linux Container" page.