[SOLVED] LXC-Container starten nicht mehr

Haithabu84

Well-Known Member
Oct 19, 2016
119
4
58
32
Hallo,

nach einem Update wollen meine LXC-Container nicht mehr starten, durch suche hier im Forum habe ich folgendes ausprobiert:

Code:
lxc-start --name 101 --foreground
lxc-start: 101: confile.c: parse_line: 2447 Unknown configuration key "lxc.tty"
lxc-start: 101: parse.c: lxc_file_for_each_line_mmap: 142 Failed to parse config file "/var/lib/lxc/101/config" at line "lxc.tty = 2"
Failed to load config for 101
lxc-start: 101: tools/lxc_start.c: main: 264 Failed to create lxc_container

In der neueren Version scheint es diese Option nicht mehr zu geben. Jetzt die Frage: Muss die durch eine alternative Option ersetzt werden? Wenn ja, welche?

Gruß
 
Last edited:
lxc.tty wurde ersetzt durch lxc.tty.max

welche pveversion -v hast du?

wie sieht die container config aus? 'pct config ID'
 
pveversion -v

Code:
proxmox-ve: 5.0-18 (running kernel: 4.10.17-1-pve)
pve-manager: 5.0-29 (running version: 5.0-29/6f01516)
pve-kernel-4.10.17-1-pve: 4.10.17-18
libpve-http-server-perl: 2.0-13
lvm2: 2.02.168-pve6
corosync: 2.4.4-pve1
libqb0: 1.0.3-1~bpo9
pve-cluster: 5.0-12
qemu-server: 5.0-14
pve-firmware: 2.0-6
libpve-common-perl: 5.0-16
libpve-guest-common-perl: 2.0-11
libpve-access-control: 5.0-5
libpve-storage-perl: 5.0-12
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-3
pve-docs: 5.4-2
pve-qemu-kvm: 2.9.0-2
pve-container: 2.0-15
pve-firewall: 3.0-2
pve-ha-manager: 2.0-9
ksm-control-daemon: not correctly installed
glusterfs-client: 3.8.8-1
lxc-pve: 3.1.0-3
lxcfs: 3.0.3-pve1
criu: 2.11.1-1~bpo90
novnc-pve: 1.0.0-3
smartmontools: 6.5+svn4324-1

pct config 101

Code:
arch: amd64
cpulimit: 4
cpuunits: 1024
hostname: CT101
memory: 4096
net0: name=eth0,bridge=vmbr0,gw=10.0.0.9,hwaddr=2E:FA:EC:9B:FB:1C,ip=10.0.0.3/20,type=veth
onboot: 1
ostype: ubuntu
rootfs: local:101/vm-101-disk-1.subvol,size=0T
startup: order=1
swap: 0

Nach dem Update scheint hier einiges im Argen zu sein... Habe auch Probleme die WebGUI zu erreichen. Anfangs war da eine falsche IP beim Consolen-Login, bin dann in die /etc/hosts und habe da die IP angepasst, Neustart des gesamten Host und von pveproxy brachten nichts.
 
OK. Die Lösung all meiner Probleme bestand darin, nochmals...

Code:
pveupdate
pveupgrade

...auszuführen. Danach noch Reboot und alles funktioniert wieder. Warum es beim ersten Mal nicht gleich alles heruntergeladen und installiert hat, bleibt ein Rätsel.
 

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!