Missing ifupdown2 in LXC

debek

New Member
Dec 2, 2020
9
0
1
35
Hi!

I have got a problem during run LXC and I need to wait about 8min when it starts.
I debuged that and install ifupdown2 inside of LXC resolve my problem.

Have you got the same problem? How did you resolve it?
Every new LXC need lot of time to start :/ Then I need to install this package manually. It is annoying.
 
hi,

which container template are you using?

I need to wait about 8min when it starts.
wait for what exactly? for networking to start?

Every new LXC need lot of time to start :/ Then I need to install this package manually. It is annoying.
what does pveversion -v say?
 
Yes. Exactly. I wait for network start.

Code:
root@hstdd:~# pveversion -v
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_ADDRESS = "pl_PL.UTF-8",
    LC_NAME = "pl_PL.UTF-8",
    LC_MONETARY = "pl_PL.UTF-8",
    LC_PAPER = "pl_PL.UTF-8",
    LC_IDENTIFICATION = "pl_PL.UTF-8",
    LC_TELEPHONE = "pl_PL.UTF-8",
    LC_MEASUREMENT = "pl_PL.UTF-8",
    LC_TIME = "pl_PL.UTF-8",
    LC_NUMERIC = "pl_PL.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
proxmox-ve: 6.3-1 (running kernel: 5.4.78-2-pve)
pve-manager: 6.3-3 (running version: 6.3-3/eee5f901)
pve-kernel-5.4: 6.3-3
pve-kernel-helper: 6.3-3
pve-kernel-5.4.78-2-pve: 5.4.78-2
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: residual config
ifupdown2: 3.0.0-1+pve3
libjs-extjs: 6.0.1-10
libknet1: 1.16-pve1
libproxmox-acme-perl: 1.0.5
libproxmox-backup-qemu0: 1.0.2-1
libpve-access-control: 6.1-3
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.3-2
libpve-guest-common-perl: 3.1-3
libpve-http-server-perl: 3.0-6
libpve-storage-perl: 6.3-3
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.3-1
lxcfs: 4.0.3-pve3
novnc-pve: 1.1.0-1
proxmox-backup-client: 1.0.5-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.4-3
pve-cluster: 6.2-1
pve-container: 3.3-1
pve-docs: 6.3-1
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-3
pve-firmware: 3.1-3
pve-ha-manager: 3.1-1
pve-i18n: 2.2-2
pve-qemu-kvm: 5.1.0-7
pve-xtermjs: 4.7.0-3
qemu-server: 6.3-2
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 0.8.5-pve1

/var/log/syslog
Code:
Dec  9 10:47:00 test2 dhclient[78]: Listening on LPF/eth0/ca:77:ed:f9:ba:23
Dec  9 10:47:00 test2 ifup[60]: Listening on LPF/eth0/ca:77:ed:f9:ba:23
Dec  9 10:47:00 test2 ifup[60]: Sending on   LPF/eth0/ca:77:ed:f9:ba:23
Dec  9 10:47:00 test2 ifup[60]: Sending on   Socket/fallback
Dec  9 10:47:00 test2 ifup[60]: Created duid "\000\001\000\001'cg\244\312w\355\371\272#".
Dec  9 10:47:00 test2 ifup[60]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Dec  9 10:47:00 test2 dhclient[78]: Sending on   LPF/eth0/ca:77:ed:f9:ba:23
Dec  9 10:47:00 test2 dhclient[78]: Sending on   Socket/fallback
Dec  9 10:47:00 test2 dhclient[78]: Created duid "\000\001\000\001'cg\244\312w\355\371\272#".
Dec  9 10:47:00 test2 dhclient[78]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
Dec  9 10:47:00 test2 dhclient[78]: DHCPOFFER of 10.2.0.16 from 10.2.0.1
Dec  9 10:47:00 test2 ifup[60]: DHCPOFFER of 10.2.0.16 from 10.2.0.1
Dec  9 10:47:00 test2 ifup[60]: DHCPREQUEST for 10.2.0.16 on eth0 to 255.255.255.255 port 67
Dec  9 10:47:00 test2 dhclient[78]: DHCPREQUEST for 10.2.0.16 on eth0 to 255.255.255.255 port 67
Dec  9 10:47:00 test2 dhclient[78]: DHCPACK of 10.2.0.16 from 10.2.0.1
Dec  9 10:47:00 test2 ifup[60]: DHCPACK of 10.2.0.16 from 10.2.0.1
Dec  9 10:47:00 test2 dhclient[78]: bound to 10.2.0.16 -- renewal in 274 seconds.
Dec  9 10:47:00 test2 ifup[60]: bound to 10.2.0.16 -- renewal in 274 seconds.
Dec  9 10:47:01 test2 dhclient[137]: Internet Systems Consortium DHCP Client 4.4.1
Dec  9 10:47:01 test2 ifup[60]: Internet Systems Consortium DHCP Client 4.4.1
Dec  9 10:47:01 test2 ifup[60]: Copyright 2004-2018 Internet Systems Consortium.
Dec  9 10:47:01 test2 ifup[60]: All rights reserved.
Dec  9 10:47:01 test2 ifup[60]: For info, please visit https://www.isc.org/software/dhcp/
Dec  9 10:47:01 test2 dhclient[137]: Copyright 2004-2018 Internet Systems Consortium.
Dec  9 10:47:01 test2 dhclient[137]: All rights reserved.
Dec  9 10:47:01 test2 dhclient[137]: For info, please visit https://www.isc.org/software/dhcp/
Dec  9 10:47:01 test2 dhclient[137]:
Dec  9 10:47:01 test2 dhclient[137]: Listening on Socket/eth0
Dec  9 10:47:01 test2 ifup[60]: Listening on Socket/eth0
Dec  9 10:47:01 test2 ifup[60]: Sending on   Socket/eth0
Dec  9 10:47:01 test2 ifup[60]: PRC: Soliciting for leases (INIT).
Dec  9 10:47:01 test2 dhclient[137]: Sending on   Socket/eth0
Dec  9 10:47:02 test2 ifup[60]: XMT: Forming Solicit, 0 ms elapsed.
Dec  9 10:47:02 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:47:02 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:47:02 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:47:02 test2 ifup[60]: XMT: Solicit on eth0, interval 1080ms.
Dec  9 10:47:02 test2 dhclient[137]: XMT: Solicit on eth0, interval 1080ms.
Dec  9 10:47:03 test2 ifup[60]: XMT: Forming Solicit, 1080 ms elapsed.
Dec  9 10:47:03 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:47:03 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:47:03 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:47:03 test2 ifup[60]: XMT: Solicit on eth0, interval 2160ms.
Dec  9 10:47:03 test2 dhclient[137]: XMT: Solicit on eth0, interval 2160ms.
Dec  9 10:47:05 test2 ifup[60]: XMT: Forming Solicit, 3240 ms elapsed.
Dec  9 10:47:05 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:47:05 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:47:05 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:47:05 test2 ifup[60]: XMT: Solicit on eth0, interval 4230ms.
Dec  9 10:47:05 test2 dhclient[137]: XMT: Solicit on eth0, interval 4230ms.
Dec  9 10:47:09 test2 ifup[60]: XMT: Forming Solicit, 7470 ms elapsed.
Dec  9 10:47:09 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:47:09 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:47:09 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:47:09 test2 ifup[60]: XMT: Solicit on eth0, interval 8700ms.
Dec  9 10:47:09 test2 dhclient[137]: XMT: Solicit on eth0, interval 8700ms.
Dec  9 10:47:18 test2 ifup[60]: XMT: Forming Solicit, 16180 ms elapsed.
Dec  9 10:47:18 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:47:18 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:47:18 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:47:18 test2 ifup[60]: XMT: Solicit on eth0, interval 17580ms.
Dec  9 10:47:18 test2 dhclient[137]: XMT: Solicit on eth0, interval 17580ms.
Dec  9 10:47:36 test2 ifup[60]: XMT: Forming Solicit, 33780 ms elapsed.
Dec  9 10:47:36 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:47:36 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:47:36 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:47:36 test2 ifup[60]: XMT: Solicit on eth0, interval 34450ms.
Dec  9 10:47:36 test2 dhclient[137]: XMT: Solicit on eth0, interval 34450ms.
Dec  9 10:48:10 test2 ifup[60]: XMT: Forming Solicit, 68260 ms elapsed.
Dec  9 10:48:10 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:48:10 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:48:10 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:48:10 test2 ifup[60]: XMT: Solicit on eth0, interval 72320ms.
Dec  9 10:48:10 test2 dhclient[137]: XMT: Solicit on eth0, interval 72320ms.
Dec  9 10:49:23 test2 ifup[60]: XMT: Forming Solicit, 140660 ms elapsed.
Dec  9 10:49:23 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:49:23 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:49:23 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:49:23 test2 ifup[60]: XMT: Solicit on eth0, interval 126170ms.
Dec  9 10:49:23 test2 dhclient[137]: XMT: Solicit on eth0, interval 126170ms.
Dec  9 10:51:29 test2 ifup[60]: XMT: Forming Solicit, 266930 ms elapsed.
Dec  9 10:51:29 test2 ifup[60]: XMT:  X-- IA_NA ed:f9:ba:23
Dec  9 10:51:29 test2 ifup[60]: XMT:  | X-- Request renew in  +3600
Dec  9 10:51:29 test2 ifup[60]: XMT:  | X-- Request rebind in +5400
Dec  9 10:51:29 test2 ifup[60]: XMT: Solicit on eth0, interval 125560ms.
Dec  9 10:51:29 test2 dhclient[137]: XMT: Solicit on eth0, interval 125560ms.
Dec  9 10:51:34 test2 dhclient[78]: DHCPREQUEST for 10.2.0.16 on eth0 to 10.2.0.1 port 67
Dec  9 10:51:34 test2 dhclient[78]: DHCPACK of 10.2.0.16 from 10.2.0.1
Dec  9 10:51:34 test2 dhclient[78]: bound to 10.2.0.16 -- renewal in 246 seconds.
Dec  9 10:52:00 test2 systemd[1]: networking.service: Start operation timed out. Terminating.
Dec  9 10:52:00 test2 ifup[60]: Got signal Terminated, terminating...
Dec  9 10:52:00 test2 ifup[60]: ifup: failed to bring up eth0
Dec  9 10:52:00 test2 systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
Dec  9 10:52:00 test2 systemd[1]: networking.service: Failed with result 'timeout'.
Dec  9 10:52:00 test2 systemd[1]: Failed to start Raise network interfaces.
Dec  9 10:52:00 test2 systemd[1]: Reached target Network.
Dec  9 10:52:00 test2 systemd[1]: Starting Permit User Sessions...
Dec  9 10:52:00 test2 systemd[1]: Starting OpenBSD Secure Shell server...
Dec  9 10:52:00 test2 systemd[1]: Reached target Network is Online.
Dec  9 10:52:00 test2 systemd[1]: Starting Postfix Mail Transport Agent (instance -)...
Dec  9 10:52:00 test2 systemd[1]: Started Permit User Sessions.
Dec  9 10:52:00 test2 systemd[1]: Started Container Getty on /dev/tty1.
Dec  9 10:52:00 test2 systemd[1]: Started Console Getty.
Dec  9 10:52:00 test2 systemd[1]: Condition check resulted in Container Getty on /dev/tty0 being skipped.
Dec  9 10:52:00 test2 systemd[1]: Started Container Getty on /dev/tty2.
Dec  9 10:52:00 test2 systemd[1]: Reached target Login Prompts.
Dec  9 10:52:00 test2 systemd[1]: Started OpenBSD Secure Shell server.
Dec  9 10:52:00 test2 postfix/postfix-script[284]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
Dec  9 10:52:00 test2 postfix/postfix-script[321]: starting the Postfix mail system
Dec  9 10:52:00 test2 postfix/master[323]: daemon started -- version 3.4.14, configuration /etc/postfix
Dec  9 10:52:00 test2 systemd[1]: Started Postfix Mail Transport Agent (instance -).
Dec  9 10:52:00 test2 systemd[1]: Starting Postfix Mail Transport Agent...
Dec  9 10:52:00 test2 systemd[1]: Started Postfix Mail Transport Agent.
Dec  9 10:52:00 test2 systemd[1]: Reached target Multi-User System.
Dec  9 10:52:00 test2 systemd[1]: Reached target Graphical Interface.
Dec  9 10:52:00 test2 systemd[1]: Starting Update UTMP about System Runlevel Changes...
Dec  9 10:52:00 test2 systemd[1]: systemd-update-utmp-runlevel.service: Succeeded.
Dec  9 10:52:00 test2 systemd[1]: Started Update UTMP about System Runlevel Changes.
Dec  9 10:52:00 test2 systemd[1]: Startup finished in 5min 295ms.

After ifupdown2 installation everything is fine. hmmm.
 
Last edited:
could you post container configuration from pct config CTID and your /etc/network/interfaces from the PVE host?
 
/etc/network/interfaces
Code:
auto eno1
iface eno1 inet static
        address 192.168.88.101/32
        gateway 192.168.88.1

iface eno1 inet6 static
        address fd00:1111:1111:2222::2/64
        gateway fd00:1111:1111:2222::1

auto vmbr50
iface vmbr50 inet manual
        bridge-ports eno1.50
        bridge-stp off
        bridge-fd 0

pct config 103
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_ADDRESS = "pl_PL.UTF-8",
    LC_NAME = "pl_PL.UTF-8",
    LC_MONETARY = "pl_PL.UTF-8",
    LC_PAPER = "pl_PL.UTF-8",
    LC_IDENTIFICATION = "pl_PL.UTF-8",
    LC_TELEPHONE = "pl_PL.UTF-8",
    LC_MEASUREMENT = "pl_PL.UTF-8",
    LC_TIME = "pl_PL.UTF-8",
    LC_NUMERIC = "pl_PL.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
arch: amd64
cores: 4
hostname: test3
memory: 4096
net0: name=eth0,bridge=vmbr50,hwaddr=FA:B4:B8:A0:EE:1B,ip=dhcp,ip6=dhcp,type=veth
ostype: debian
rootfs: local:103/vm-103-disk-0.raw,size=8G
swap: 512
unprivileged: 1

Finally, I get from DHCP correct IP's.
 
/etc/network/interfaces
Code:
auto eno1
iface eno1 inet static
        address 192.168.88.101/32
        gateway 192.168.88.1

iface eno1 inet6 static
        address fd00:1111:1111:2222::2/64
        gateway fd00:1111:1111:2222::1

auto vmbr50
iface vmbr50 inet manual
        bridge-ports eno1.50
        bridge-stp off
        bridge-fd 0

pct config 103
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
    LANGUAGE = (unset),
    LC_ALL = (unset),
    LC_ADDRESS = "pl_PL.UTF-8",
    LC_NAME = "pl_PL.UTF-8",
    LC_MONETARY = "pl_PL.UTF-8",
    LC_PAPER = "pl_PL.UTF-8",
    LC_IDENTIFICATION = "pl_PL.UTF-8",
    LC_TELEPHONE = "pl_PL.UTF-8",
    LC_MEASUREMENT = "pl_PL.UTF-8",
    LC_TIME = "pl_PL.UTF-8",
    LC_NUMERIC = "pl_PL.UTF-8",
    LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
arch: amd64
cores: 4
hostname: test3
memory: 4096
net0: name=eth0,bridge=vmbr50,hwaddr=FA:B4:B8:A0:EE:1B,ip=dhcp,ip6=dhcp,type=veth
ostype: debian
rootfs: local:103/vm-103-disk-0.raw,size=8G
swap: 512
unprivileged: 1
have you tried setting ipv6 to static in the container network settings?
 
IPv6 static runs correctly. hmmm. So the problem is in DHCP in proxmox config or in Mikrotik. hmmm. Mikrotik looks fine.
 

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!