LXC CentOS8 bootet nach update nicht mehr

budy

Active Member
Jan 31, 2020
210
14
38
57
Ich versuche mich gerade an meinen ersten LXC containern und wollte eine kleine CentOS8 KVM als LX container nachbauen. Also habe ich das CentOS8 lxc template heruntergeladen und damit einen LX container erzeugt. Das geht auch alles, aber nachdem ich innerhalb des Centos8 Conainers ein yum update durchlaufen lasse, startet der Container nach einem Reboot nicht mehr.

Die systemctl Fehlermeldung dazu sieht so aus:

Code:
Feb 16 18:55:48 vm systemd[1]: Starting PVE LXC Container: 112...
Feb 16 18:55:49 vm lxc-start[24679]: lxc-start: 112: lxccontainer.c: wait_on_daemonized_start: 865 No such file or directory - Failed to receive the
Feb 16 18:55:49 vm systemd[1]: pve-container@112.service: Control process exited, code=exited, status=1/FAILURE
Feb 16 18:55:49 vm lxc-start[24679]: lxc-start: 112: tools/lxc_start.c: main: 329 The container failed to start
Feb 16 18:55:49 vm lxc-start[24679]: lxc-start: 112: tools/lxc_start.c: main: 332 To get more details, run the container in foreground mode
Feb 16 18:55:49 vm lxc-start[24679]: lxc-start: 112: tools/lxc_start.c: main: 335 Additional information can be obtained by setting the --logfile an
Feb 16 18:55:49 vm systemd[1]: pve-container@112.service: Failed with result 'exit-code'.
Feb 16 18:55:49 vm systemd[1]: Failed to start PVE LXC Container: 112.

Ansonsten gibts an Fehlermeldungen nur noch dieses hier:

Code:
root@vm:~# lxc-start -F -n 112 --logfile=/tmp/log
lxc-start: 112: conf.c: run_buffer: 352 Script exited with status 2
lxc-start: 112: start.c: lxc_init: 897 Failed to run lxc.hook.pre-start for container "112"
lxc-start: 112: start.c: __lxc_start: 2032 Failed to initialize container "112"
Segmentation fault
root@vm:~# cat /tmp/log
lxc-start 112 20200216180519.515 ERROR    conf - conf.c:run_buffer:352 - Script exited with status 2
lxc-start 112 20200216180519.516 ERROR    start - start.c:lxc_init:897 - Failed to run lxc.hook.pre-start for container "112"
lxc-start 112 20200216180519.517 ERROR    start - start.c:__lxc_start:2032 - Failed to initialize container "112"
 
Okay… das hier scheint das Problem zu sein - nur warum?

Code:
lxc-start 112 20200216180905.727 INFO     conf - conf.c:run_script_argv:372 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "112", config section "lxc"
lxc-start 112 20200216180906.296 DEBUG    conf - conf.c:run_buffer:340 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 112 lxc pre-start produced output: unable to detect OS distribution

lxc-start 112 20200216180906.308 ERROR    conf - conf.c:run_buffer:352 - Script exited with status 2

Liegt das evtl. daran, dass die Kernel-Version nach dem yum update nicht mehr dieselbe ist wie die des PVEs? Der PVE läuft mit 5.3.10-1-pve und CentOS8 kommt ja standard-mäßig mit einem 4.x Kernel.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!