Slow LXC starting time

debek

New Member
Dec 2, 2020
9
0
1
36
Hi!
When I try to run my LXC machine it takes about 5min when it will be available.
Do you know what can be wrong and why?
Code:
root@hst:/etc/# pveversion -v
proxmox-ve: 6.3-1 (running kernel: 5.4.73-1-pve)
pve-manager: 6.3-2 (running version: 6.3-2/22f57405)
pve-kernel-5.4: 6.3-1
pve-kernel-helper: 6.3-1
pve-kernel-5.4.73-1-pve: 5.4.73-1
ceph-fuse: 12.2.11+dfsg1-2.1+b1
corosync: 3.0.4-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
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.0-3
libpve-common-perl: 6.2-6
libpve-guest-common-perl: 3.1-3
libpve-http-server-perl: 3.0-6
libpve-storage-perl: 6.3-1
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-1
smartmontools: 7.1-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 0.8.5-pve1
 
Have you checked the syslog/journal in the container? Perhaps network (often has a 5min timeout) or something else is hanging on startup.
 
My syslog showed me a problem
Code:
Dec  4 14:12:26 test666 dhclient[161]: Sending on   Socket/eth0
Dec  4 14:12:27 test666 ifup[59]: XMT: Forming Solicit, 0 ms elapsed.
Dec  4 14:12:27 test666 ifup[59]: XMT:  X-- IA_NA ea:3c:77:ce
Dec  4 14:12:27 test666 ifup[59]: XMT:  | X-- Request renew in  +3600
Dec  4 14:12:27 test666 ifup[59]: XMT:  | X-- Request rebind in +5400
Dec  4 14:12:27 test666 ifup[59]: XMT: Solicit on eth0, interval 1080ms.
Dec  4 14:12:27 test666 dhclient[161]: XMT: Solicit on eth0, interval 1080ms.
Dec  4 14:12:28 test666 ifup[59]: XMT: Forming Solicit, 1080 ms elapsed.
Dec  4 14:12:28 test666 ifup[59]: XMT:  X-- IA_NA ea:3c:77:ce
Dec  4 14:12:28 test666 ifup[59]: XMT:  | X-- Request renew in  +3600
Dec  4 14:12:28 test666 ifup[59]: XMT:  | X-- Request rebind in +5400
Dec  4 14:12:28 test666 ifup[59]: XMT: Solicit on eth0, interval 2140ms.
Dec  4 14:12:28 test666 dhclient[161]: XMT: Solicit on eth0, interval 2140ms.
Dec  4 14:12:30 test666 ifup[59]: XMT: Forming Solicit, 3220 ms elapsed.
Dec  4 14:12:30 test666 ifup[59]: XMT:  X-- IA_NA ea:3c:77:ce
Dec  4 14:12:30 test666 ifup[59]: XMT:  | X-- Request renew in  +3600
Dec  4 14:12:30 test666 ifup[59]: XMT:  | X-- Request rebind in +5400
Dec  4 14:12:30 test666 ifup[59]: XMT: Solicit on eth0, interval 4440ms.
Dec  4 14:12:30 test666 dhclient[161]: XMT: Solicit on eth0, interval 4440ms.
Dec  4 14:12:34 test666 ifup[59]: XMT: Forming Solicit, 7660 ms elapsed.
Dec  4 14:12:34 test666 ifup[59]: XMT:  X-- IA_NA ea:3c:77:ce
Dec  4 14:12:34 test666 ifup[59]: XMT:  | X-- Request renew in  +3600
Dec  4 14:12:34 test666 ifup[59]: XMT:  | X-- Request rebind in +5400
Dec  4 14:12:34 test666 ifup[59]: XMT: Solicit on eth0, interval 9110ms.
Dec  4 14:12:34 test666 dhclient[161]: XMT: Solicit on eth0, interval 9110ms.
Dec  4 14:12:43 test666 ifup[59]: XMT: Forming Solicit, 16780 ms elapsed.
Dec  4 14:12:43 test666 ifup[59]: XMT:  X-- IA_NA ea:3c:77:ce
Dec  4 14:12:43 test666 ifup[59]: XMT:  | X-- Request renew in  +3600
Dec  4 14:12:43 test666 ifup[59]: XMT:  | X-- Request rebind in +5400
Dec  4 14:12:43 test666 ifup[59]: XMT: Solicit on eth0, interval 17970ms.
Dec  4 14:12:43 test666 dhclient[161]: XMT: Solicit on eth0, interval 17970ms.
Dec  4 14:13:01 test666 ifup[59]: XMT: Forming Solicit, 34770 ms elapsed.
Dec  4 14:13:01 test666 ifup[59]: XMT:  X-- IA_NA ea:3c:77:ce
Dec  4 14:13:01 test666 ifup[59]: XMT:  | X-- Request renew in  +3600
Dec  4 14:13:01 test666 ifup[59]: XMT:  | X-- Request rebind in +5400
Dec  4 14:13:01 test666 ifup[59]: XMT: Solicit on eth0, interval 34910ms.

Do you have any idea why I have this problem? But finally, everything works fine.
 
Did you configure DHCP for IPv6 without a DHCP server running in that network?
Please provide the config of that container (pct config <CTID>).
 
Thank you for your reply. Yes, it is a problem with ipv6. I need to configure it on my Mikrotik router.