whiskerz007/proxmox_hassio_lxc

Script doesn work

justme88 opened this issue · 5 comments

Hello. I had previous version of proxmox and script was working excellent, now I reinstall all system with newest proxmox 7. 0 and cannot it get working. I dont even know where to look, pls help.

INFO] Using 'local' for template storage.
[INFO] Using 'local-lvm' for container storage.
Updating LXC template list...
Creating LXC container...
[INFO] LXC container '100' was successfully created.
Starting LXC container...
run_buffer: 316 Script exited with status 1
lxc_init: 816 Failed to run lxc.hook.pre-start for container "100"
__lxc_start: 2007 Failed to initialize container "100"
startup for container '100' failed
[ERROR] 255@100 Unknown failure occured.
Logical volume "vm-100-disk-0" successfully removed

Hi,
I have the same problem.
Removing the line from /etc/pve/lxc/x.conf helps:

lxc.hook.pre-start: sh -ec 'for module in aufs overlay; do modinfo $module; $(lsmod | grep -Fq $module) || modprobe $module; done;'

But then usb passthrough stops working..

I have exactly the same issue as OP but I do not understand the suggested solution "you need a docker version with cgroupv2 support". How to proceed in this case?

I have exactly the same issue as OP but I do not understand the suggested solution "you need a docker version with cgroupv2 support". How to proceed in this case?

apt update and install an upgrade?

https://www.infoq.com/news/2021/01/docker-engine-cgroups-logging/

Maybe gonna help. It works, but passthrough haven't tried. https://forum.proxmox.com/threads/home-assistant-lxc-script-error-on-proxmox-7.92377/#post-403274

You should additionally make an apt update && apt upgrade -y && reboot inside the LXC.

At least it worked for me, with an older docker version incompatible with cgroup2.