Talk:Proxmox Linux Container: Difference between revisions
imported>Vater |
imported>Vater |
||
Line 58: | Line 58: | ||
<pre> | <pre> | ||
arch: amd64 | arch: amd64 | ||
hostname: CT1000 | hostname: CT1000 | ||
memory: 1024 | memory: 1024 | ||
net0: name=eth0 | net0: name=eth0 | ||
ostype: unmanaged | ostype: unmanaged | ||
rootfs: storage:vm-1000-disk-0,size=4G | rootfs: storage:vm-1000-disk-0,size=4G |
Revision as of 09:47, 10 October 2021
NixOS container (LXC) on Proxmox Virtual Environment 7
GUI | CLI | ||
---|---|---|---|
find the (a current) NixOS template |
for example for 21.05
| ||
download the NixOS template |
|
going to the folder where all the templates for Promox Virtual Environment are stored
downloading the NixOS template file (optional you should) move the downloaded NixOS template file to a nicer (more individual) file name
(optional you can) going back
| |
create a (first) new NixOS container with Proxmox Virtual Environment |
(optional you can) check the (pve) lxc config file (and it should look like something like the following)
arch: amd64 hostname: CT1000 memory: 1024 net0: name=eth0 ostype: unmanaged rootfs: storage:vm-1000-disk-0,size=4G swap: 512 unprivileged: 1 | ||
customize the individual Proxmox Virtual Environment container configuration for NixOS |
sync_wait: 36 An error occurred in another process (expected sequence number 7) __lxc_start: 2073 Failed to spawn container "1000" TASK ERROR: startup for container '1000' failed editing the specific (pve) lxc config file (to a option for lxc.init.cmd)
lxc.init.cmd: /init | ||
(configure the available (virtual) network device for the Proxmox Virtual Environment container) |
| ||
(activate nesting for NixOS in the Proxmox Virtual Environment container) |
(optional you can) check the (pve) lxc config file (and it should look like something like the following)
arch: amd64 cores: 2 features: nesting=1 hostname: CT1000 memory: 1024 net0: name=eth0,bridge=vmbr1,hwaddr=E6:8B:60:E0:19:4C,ip=dhcp,type=veth ostype: unmanaged rootfs: storage:vm-1000-disk-0,size=4G swap: 512 unprivileged: 1 | ||
customize the (pve) lxc startup setup routine |
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
sub unified_cgroupv2_support { my ($self) = @_; return if !$self->{plugin}; # unmanaged $self->protected_call(sub { $self->{plugin}->unified_cgroupv2_support() }); } WARN: old systemd (< v232) detected, container won't run in a pure cgroupv2 environment! Please see documentation -> container -> cgroup version. TASK WARNINGS: 1 |
https://forum.proxmox.com/threads/92381/#post-402350
nodev cgroup nodev cgroup2 | |
start the NixOS container with Proxmox Virtual Environment |
| ||
… | https://github.com/NixOS/nixpkgs/issues/9735#issuecomment-783535726 | ||
… | |||
… | |||
… | |||
… | |||
… |