[SOLVED] Problems starting LXC

Ovidiu

Renowned Member
Apr 27, 2014
326
13
83
Some of my LXC won't properly autostart.
What happens is that they appear to be started and yet when I pct enter ID and do a pstree all I see is this:
Code:
root@alfred:~# pstree
init───init───rc───startpar───networking───ifup───dhclient

root@alfred:~# uptime
11:41:37 up 9 min,  0 users,  load average: 0.74, 0.34, 0.14

I have about 8 LXC and 3-4 of them have this same issue. They just hang there doing nothing.
I can work around this problem by issuing a shutdown -r now inside the LXC and they will be properly back up and running fine in a few seconds.

Any thoughts on what could cause this and how to fix it?
 
looks dhclient (DHCP) hangs inside the container. What kind of OS do you run inside the container?
 
The one LXC I am sure about was hanging is running Debian 8, I only noticed as that one is the most important one ,the others are only running some "playground" scenarios and are not mission critical.

The others are a mix of Debian 8/7 and Ubuntu 12/14 and all my OS-es are always up-to-date.

I have another Debian 8 container which booted just fine.
 
Hm, I was never able to get IPV6 working in LXCs so I always set IPV6 to DHCP when creating a container. So I see this line in my /etc/network/interfaces - could that be the reason?

Code:
iface eth0 inet6 dhcp
 

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!