LXC-Container starten nicht mehr

seemawn

New Member
Nov 19, 2022
3
0
1
Hallo zusammen,

ich fürchte, ich habe ein kleines (selbstverschuldetes) Problemchen.

Ich hatte gestern versucht, die Proxmox über den localhost (statt der IP) anzusprechen und hab die /etc/hosts vermurkst, so dass der Hypervisor nicht mehr gestartet hatte. Ich habe das zwar wieder korrigiert; seither startet der Hypervisor wieder, aber die LXC-Container starten nicht mehr, und ich bekomme nicht heraus, was falsch läuft. Die (einzige) echte virtuelle Maschine (weird: echt virtuell) startet. Die Sufu ist heiß gelaufen. Ich versuche mal mein Problem zu beschreiben.

Im Web-Interface sehe ich:

Code:
run_buffer: 321 Script exited with status 2

lxc_init: 847 Failed to run lxc.hook.pre-start for container "107"

__lxc_start: 2008 Failed to initialize container "107"



TASK ERROR: startup for container '107' failed


lxc-start -n 107 -F -lDebug -o logfile gibt in der Konsole aus:

Code:
lxc-start -n 107 -F -lDEBUG -o /root/lxc-107.log
lxc-start: 107: ../src/lxc/conf.c: run_buffer: 321 Script exited with status 2
lxc-start: 107: ../src/lxc/start.c: lxc_init: 847 Failed to run lxc.hook.pre-start for container "107"
lxc-start: 107: ../src/lxc/start.c: __lxc_start: 2008 Failed to initialize container "107"
lxc-start: 107: ../src/lxc/tools/lxc_start.c: main: 306 The container failed to start
lxc-start: 107: ../src/lxc/tools/lxc_start.c: main: 311 Additional information can be obtained by setting the --logfile and --logpriority options

In der Logfile steht:

Code:
lxc-start 107 20221119122819.754 INFO     confile - ../src/lxc/confile.c:set_config_idmaps:2267 - Read uid map: type u nsid 0 hostid 100000 range 65536
lxc-start 107 20221119122819.754 INFO     confile - ../src/lxc/confile.c:set_config_idmaps:2267 - Read uid map: type g nsid 0 hostid 100000 range 65536
lxc-start 107 20221119122819.755 INFO     lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
lxc-start 107 20221119122819.755 INFO     conf - ../src/lxc/conf.c:run_script_argv:337 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "107", config section "lxc"
lxc-start 107 20221119122820.142 DEBUG    conf - ../src/lxc/conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 107 lxc pre-start produced output: objdump on /usr/lib/systemd/systemd failed: open3: exec of objdump -p /var/lib/lxc/107/rootfs/usr/lib/systemd/systemd failed: No such file or directory at /usr/share/perl5/PVE/Tools.pm line 455.

lxc-start 107 20221119122820.150 ERROR    conf - ../src/lxc/conf.c:run_buffer:321 - Script exited with status 2
lxc-start 107 20221119122820.150 ERROR    start - ../src/lxc/start.c:lxc_init:847 - Failed to run lxc.hook.pre-start for container "107"
lxc-start 107 20221119122820.150 ERROR    start - ../src/lxc/start.c:__lxc_start:2008 - Failed to initialize container "107"
lxc-start 107 20221119122820.150 INFO     conf - ../src/lxc/conf.c:run_script_argv:337 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "107", config section "lxc"
lxc-start 107 20221119122820.451 DEBUG    conf - ../src/lxc/conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 107 lxc post-stop produced output: umount: /var/lib/lxc/.pve-staged-mounts/mp0: not mounted.

lxc-start 107 20221119122820.451 DEBUG    conf - ../src/lxc/conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 107 lxc post-stop produced output: command 'umount -- /var/lib/lxc/.pve-staged-mounts/mp0' failed: exit code 32

lxc-start 107 20221119122820.495 INFO     conf - ../src/lxc/conf.c:run_script_argv:337 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "107", config section "lxc"
lxc-start 107 20221119122820.997 ERROR    lxc_start - ../src/lxc/tools/lxc_start.c:main:306 - The container failed to start
lxc-start 107 20221119122820.997 ERROR    lxc_start - ../src/lxc/tools/lxc_start.c:main:311 - Additional information can be obtained by setting the --logfile and --logpriority options

Die 107.conf sagt:

Code:
#IP-Adresse ist 192.168.178.068
arch: amd64
cores: 2
features: nesting=1
hostname: revproxy
memory: 1024
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=46:8F:F0:F2:26:67,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-107-disk-0,size=8G
swap: 512
unprivileged: 1

Die storage.cfg:
Code:
dir: local
        path /var/lib/vz
        content iso,vztmpl,backup

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

lsblk -f:
Code:
sda                                                                                                          
└─sda1                       ext4        1.0            e73b7eb4-2b9c-40e3-8640-fce4825efab3                
sdb                                                                                                          
└─sdb1                       ext4        1.0            cabe9aa4-cc09-44bf-b95d-6669e770e393      2.4T    31% /mnt/backup
nvme0n1                                                                                                      
├─nvme0n1p1                                                                                                  
├─nvme0n1p2                  vfat        FAT32          227F-39A8                               510.7M     0% /boot/efi
└─nvme0n1p3                  LVM2_member LVM2 001       VXHcx4-qFyM-JBXH-YLRE-NMy9-R13P-oNLBD7              
  ├─pve-swap                 swap        1              25fd0d30-b3ad-4cde-887e-ff7a43c7539d                  [SWAP]
  ├─pve-root                 ext4        1.0            4645e0ac-0a48-42bc-be90-f8ce37759827     65.2G    25% /
  ├─pve-data_tmeta                                                                                          
  │ └─pve-data-tpool                                                                                        
  │   ├─pve-data                                                                                            
  │   ├─pve-vm--102--disk--0 ext4        1.0            a673c360-7b4f-4d69-8f21-96263c1b2788                
  │   ├─pve-vm--103--disk--0 ext4        1.0            bdb7867e-aa24-462e-bd6d-3050b10e1db8                
  │   ├─pve-vm--107--disk--0 ext4        1.0            d86a59e1-92c8-4495-a3eb-b1cf7e3aa68e                
  │   ├─pve-vm--100--disk--0                                                                                
  │   ├─pve-vm--101--disk--0 ext4        1.0            bce80a05-b88a-4b82-9cd7-f02b9fb01160                
  │   └─pve-vm--104--disk--0 ext4        1.0            358a27bc-65df-4ce1-8468-fab445b17698                
  └─pve-data_tdata                                                                                          
    └─pve-data-tpool                                                                                        
      ├─pve-data                                                                                            
      ├─pve-vm--102--disk--0 ext4        1.0            a673c360-7b4f-4d69-8f21-96263c1b2788                
      ├─pve-vm--103--disk--0 ext4        1.0            bdb7867e-aa24-462e-bd6d-3050b10e1db8                
      ├─pve-vm--107--disk--0 ext4        1.0            d86a59e1-92c8-4495-a3eb-b1cf7e3aa68e                
      ├─pve-vm--100--disk--0                                                                                
      ├─pve-vm--101--disk--0 ext4        1.0            bce80a05-b88a-4b82-9cd7-f02b9fb01160                
      └─pve-vm--104--disk--0 ext4        1.0            358a27bc-65df-4ce1-8468-fab445b17698

lvs -a:

Code:
root@proxmox:/etc/pve# lvs -a
  LV              VG  Attr       LSize    Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data            pve twi-aotz-- <349.31g             9.68   0.80                          
  [data_tdata]    pve Twi-ao---- <349.31g                                                  
  [data_tmeta]    pve ewi-ao----   <3.57g                                                  
  [lvol0_pmspare] pve ewi-------   <3.57g                                                  
  root            pve -wi-ao----   96.00g                                                  
  swap            pve -wi-ao----    8.00g                                                  
  vm-100-disk-0   pve Vwi-aotz--   32.00g data        59.64                                
  vm-101-disk-0   pve Vwi-a-tz--    8.00g data        16.87                                
  vm-102-disk-0   pve Vwi-a-tz--   16.00g data        16.23                                
  vm-103-disk-0   pve Vwi-a-tz--   20.00g data        5.20                                  
  vm-104-disk-0   pve Vwi-a-tz--   16.00g data        11.23                                
  vm-107-disk-0   pve Vwi-a-tz--    8.00g data        99.27

Angeblich ist 107 zu 97% ausgelastet; das würde jedoch nicht erklären, wieso die anderen lxc-Container mit derselben Fehlermeldung nicht starten.

vgs -a

Code:
  VG  #PV #LV #SN Attr   VSize    VFree
  pve   1   9   0 wz--n- <476.44g <16.00g

pve mount und umount funktionieren

Code:
pct mount 107
mounted CT 107 in '/var/lib/lxc/107/rootfs'



Achja, ihr seht oben eine große Festplatte, die zum Zeitpunkt der Ausgabe in /mnt/backup gemountet ist. Sie ist ein nfs-Share, wo Clients ihre Backups machen sollen (ich hab keinen Platz für einen Backup-Server oder die Backup-Lösung von Proxmox.

Hat Irgendjemand eine Idee?



Edith sprach:
root@proxmox:/var/lib/lxc/107/rootfs# du -h
.
.
.
3,2 G
 
Last edited:
Hallo,

da gabs vor kurzem einen bug wo eine fehlende Paketabhängigkeit vom pve-container Paket nicht deklariert wurde.

Bitte auf pve-container Version 4.3-5 upgraden und dann nochmals versuchen.
 
  • Like
Reactions: seemawn
Das hat das Problem gelöst! Ich hatte daran nicht gedacht, weil ich literally gestern und vor ein paar Minuten ein upgrade durchgeführt hatte. Upgrade über das Web-Interface durchgeführt und es geht. Danke nochmals.

Kann man irgendwo spenden?
 
Hallo,

da gabs vor kurzem einen bug wo eine fehlende Paketabhängigkeit vom pve-container Paket nicht deklariert wurde.

Bitte auf pve-container Version 4.3-5 upgraden und dann nochmals versuchen.
Ich hatte zuvor manuell apt install binutils durchgeführt, damit die Container wieder starten.

Die Frage die ich mir in diesem Zusammenhang stelle:
War das manuelle installieren von apt install binutils ein Workaround oder würde binutils jetzt ohnehin durch pve-container Version 4.3-5 nachinstalliert
 
Kann man irgendwo spenden?
Nein, zurzeit nicht direkt. Wir haben unser Spendenprogramm vor Jahren aufgegeben, war eher mehr overhead verglichen mit dem, was darüber reinkam.
Uns und die Entwicklung & Wartung von PVE, PBS und PMG kann man mit support subscriptions unterstützen, die sind aber primär fürs Enterprise Umfeld in Unternehmen ausgelegt. Es gibt aber natürlich auch Unterstützung ohne Geld, etwa Patches schreiben, Fehler evaluieren und klar Reporten, anderen in der Community helfen, Mundwerbung betreiben, ... :)
 
  • Like
Reactions: seemawn
War das manuelle installieren von apt install binutils ein Workaround oder würde binutils jetzt ohnehin durch pve-container Version 4.3-5 nachinstalliert
War ein (valider!) Workaround, binutils wird jetzt automatisch hereingezogen.

Um apt wieder beizubringen, dass man binutils nicht explizit wollte, kann man folgendes ausführen:
apt-mark auto binutils

Das würde das Paket dann als für autoremove freigeben sollte Proxmox VE bspw. auf etwas anders wechseln (das objdump ist etwas overkill für unseren use case, aber binutils ist auch nicht so groß um hier mehr Arbeit zu rechtfertigen).
 
Nein, zurzeit nicht direkt. Wir haben unser Spendenprogramm vor Jahren aufgegeben, war eher mehr overhead verglichen mit dem, was darüber reinkam.
Uns und die Entwicklung & Wartung von PVE, PBS und PMG kann man mit support subscriptions unterstützen, die sind aber primär fürs Enterprise Umfeld in Unternehmen ausgelegt. Es gibt aber natürlich auch Unterstützung ohne Geld, etwa Patches schreiben, Fehler evaluieren und klar Reporten, anderen in der Community helfen, Mundwerbung betreiben, ... :)
alles klar. Ich guck mirs an.
 

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!