[Solved] PVE7.0“run_buffer: 316 Script exited with status 1”

1、 Error phenomenon

In pve7.0, after creating a container with unmanager by running the PCT create command, the container cannot be started.

root@pve:~# pct start 101
run_buffer: 316 Script exited with status 1
lxc_init: 816 Failed to run lxc.hook.pre-start for container "101"
__lxc_start: 2007 Failed to initialize container "101"
startup for container '101' failed

2、 Solution

Refer to the official forum and click here
to open the/usr/share/perl5/PVE/LxC/setup.pm file. Turn to the end and you can see

sub unified_cgroupv2_support {
    my ($self) = @_;
    $self->protected_call(sub {
    $self->{plugin}->unified_cgroupv2_support();
    });
}

Change to

sub unified_cgroupv2_support {
    my ($self) = @_;
    return if !$self->{plugin}; # unmanaged
    $self->protected_call(sub {
    $self->{plugin}->unified_cgroupv2_support();
    });
}

3、 CGroup version warning

Pve7.0 uses cgroupv2 by default. For older systems, there will be the following errors.

WARN: old systemd (< v232) detected, container won't run in a pure cgroupv2 environment! Please see documentation -> container -> cgroup version.
Task finished with 1 warning(s)!

Click here for relevant instructions and handling methods

Read More: