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:
- 2021 / 06 / 28 error – because the script PowerShell is not allowed to run on this system
- [Solved] IntelliJ IDEA Compile Groovy Error: GroovyRuntimeException: This script or class could not be run.
- NPM run build failed to package err! Missing script: build
- Vue executes NPM run Dev and reports an error: missing script: dev
- NPM run serve reported an error “NPM err! Missing script: start”
- Unity3d mount script error “can’t add script behavior TMP”_ CoroutineTween. …”
- Mysql cannot allocate memory for the buffer pool solution
- After NPM run dev is running, the browser does not respond and reports an error in. / ~ / Babel loader / lib! / ~ / Vue loader / lib/ selector.js?type=script&in
- Error: The size of the connection buffer (131072) was not large enough
- Go run error go run: cannot run non main package
- The pyinstaller settings icon appears“ struct.error : unpack requires a buffer of 16 bytes”
- SCRIPT1002: syntax error File: 0. chunk.js ,SCRIPT5009: ‘Map‘ is undefined File: 0. chunk.js -Solutions
- Job for docker.service failed because the control process exited with error code. See systemctl sta
- CUDA error 11-cannot write buffer for DAG error solution
- Solution pandas.errors.ParserError : Error tokenizing data. C error: Buffer overflow caught
- systemctl start docker Job for docker.service failed because the control process exited with error
- Process exited with an error: 1 (Exit value: 1)
- error MSB6006: “mt.exe” exited with code 31 solution
- After installing CodeBlocks, run the prompt: tried to run compiler executable ‘C: / / MinGW / bin / mingw32- gcc.exe ‘, but failed!
- error MSB6006: cmd.exe “exited with code 3