Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script doesn work #41

Open
justme88 opened this issue Jul 9, 2021 · 5 comments
Open

Script doesn work #41

justme88 opened this issue Jul 9, 2021 · 5 comments

Comments

@justme88
Copy link

justme88 commented Jul 9, 2021

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

@mikketeus
Copy link

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..

@justme88
Copy link
Author

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

@ventilator
Copy link

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?

@Maltavius
Copy link

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/

@tiagofreire-pt
Copy link

tiagofreire-pt commented Sep 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants