LXC Ubuntu 14.04 template

LMC

New Member
Apr 16, 2019
12
0
1
41
Hi,

I was trying to migrate from OVZ to LXC some Ubuntu 14.04 containers. After restore of the dumps, the containers boot, but there is no console output in PVE UI and the network interface doesn't go up. I was thinking it's a problem with the original OVZ container, but the same happen when creating a new container with Ubuntu 14.04. Entering the container using pct form the hardware node and doing ifup on eth0 works, but after reboot the interface is down again.

I am using the laters PVE. The problem is specific to Ubuntu 14.04 only, all the other versions (12.04, 16.04, 18.04) are working as they should... Any idea?


Thanks,
Dan
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
2,535
276
88
Works for me. Can you post the CT config? `pct config CTID`
 

LMC

New Member
Apr 16, 2019
12
0
1
41
Sure, here it is:
root@hn01:~# pct config 116
arch: amd64
cores: 1
hostname: ubuntu.example.com
memory: 1024
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=1A:89:B8:0B:CB:77,ip=10.10.5.5/24,ip6=auto,type=veth
ostype: ubuntu
rootfs: vmdata:116/vm-116-disk-0.raw,size=10G
swap: 512
unprivileged: 1
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
2,535
276
88
Looks normal... I can't seem to reproduce this.

was thinking it's a problem with the original OVZ container, but the same happen when creating a new container with Ubuntu 14.04.

Where are you getting the 14.04 template from? I'm using our template and it works.
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
2,535
276
88
Can you try the "ubuntu-14.04-standard_14.04.5-1_amd64.tar.gz"? That worked for me.
 

LMC

New Member
Apr 16, 2019
12
0
1
41
I re-uploaded that template and tested, with same result. The console show "Connected" message but there's no output. It's quite strange. Also tested, with same result, on two other PVE nodes I have access to. All of them where PVE 5.2 and 5.3 updated to 5.4.
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
2,535
276
88
Sometimes the console will get stuck and you can press enter a few times to get it rolling. Did you check if there is network connectivity on the container while the console hangs?
 

LMC

New Member
Apr 16, 2019
12
0
1
41
I did press a lot of enter and the cursor go down to next line with no output. The networking interface is not going up. I think it hangs on something during boot way before network setup.

The 118 is an Ubuntu 12.04 container that successfully boot, and 116 is the 14.04. If I "pct enter 116" and run "ifup eth0" then network go up and works still with no output to console, but on reboot it stays down.

18825 ? Ss 0:00 [lxc monitor] /var/lib/lxc 118
19016 ? Ss 0:00 \_ /sbin/init
19336 ? S 0:00 \_ upstart-socket-bridge --daemon
20533 ? Ss 0:00 \_ dbus-daemon --system --fork --activation=upstart
20544 ? Sl 0:00 \_ rsyslogd -c5
20633 ? Ss 0:00 \_ /usr/sbin/sshd -D
20661 ? Ss 0:00 \_ cron
20662 ? Ss 0:00 \_ atd
20663 ? Ss 0:00 \_ /usr/sbin/irqbalance
20706 pts/20 Ss+ 0:00 \_ /sbin/getty -8 38400 console
20708 pts/1 Ss+ 0:00 \_ /sbin/getty -8 38400 tty2
20709 pts/0 Ss+ 0:00 \_ /sbin/getty -8 38400 tty1
22932 ? Ss 0:00 [lxc monitor] /var/lib/lxc 116
23062 ? Ss 0:00 \_ /sbin/init
23138 ? S 0:00 \_ @sbin/plymouthd --mode=boot --attach-to-session
23143 ? Ss 0:00 \_ plymouth-upstart-bridge
23147 ? S 0:00 \_ mountall --daemon
23320 ? S 0:00 \_ upstart-socket-bridge --daemon
24888 ? Ss 0:00 /usr/bin/dtach -A /var/run/dtach/vzctlconsole116 -r winch -z lxc-console -n 1
24889 pts/18 Ss+ 0:00 \_ lxc-console -n 116 -e -1
 

LMC

New Member
Apr 16, 2019
12
0
1
41
It's strange the only problem was with Ubuntu 14.04, but after a reboot looks like everything is working as supposed...
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!