PVE7.0 "run_buffer: 316 Script exited with status 1" error solution

1. Mistakes

After running the pct create command under PVE7.0 to create a container whose ostype is unmanger, 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

Two, the solution

Refer to the official forum , click here
to open the /usr/share/perl5/PVE/LXC/Setup.pm file, turn to the end, you can see

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

change into

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

Three, cgroup version warning

PVE7.0 uses cgroupv2 by default, and there will be the following errors for older systems.

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)!

Related instructions and handling methods click here

Guess you like

Origin blog.csdn.net/kangzeru/article/details/119000283