[SOLVED] LXC startup delay not working..

crc-error-79

Member
Apr 10, 2023
56
2
8
Italy
Hello,

I am having a problem with the delayed start of an LXC.
Since it uses an NFS share from another vm, it must be booted up after it.

I tried adding a delay (frankly I set many values) but nothing has worked, and regardless of the value set it starts after few seconds

the truenas vm (id 209) has order 0 and delay at start 10.
the lxc instead (id 405) has order 1 (I also tried 0 or 2, 3, 4, etc) with start delay 300.

How can I solve?

Code:
root@era:~# pveversion --verbose
proxmox-ve: 8.0.2 (running kernel: 6.2.16-8-pve)
pve-manager: 8.0.4 (running version: 8.0.4/d258a813cfa6b390)
pve-kernel-6.2: 8.0.5
proxmox-kernel-helper: 8.0.3
proxmox-kernel-6.2.16-8-pve: 6.2.16-8
proxmox-kernel-6.2: 6.2.16-8
proxmox-kernel-6.2.16-6-pve: 6.2.16-7
pve-kernel-6.2.16-3-pve: 6.2.16-3
ceph-fuse: 17.2.6-pve1+3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx3
ksm-control-daemon: 1.4-1
libjs-extjs: 7.0.0-4
libknet1: 1.25-pve1
libproxmox-acme-perl: 1.4.6
libproxmox-backup-qemu0: 1.4.0
libproxmox-rs-perl: 0.3.1
libpve-access-control: 8.0.4
libpve-apiclient-perl: 3.3.1
libpve-common-perl: 8.0.7
libpve-guest-common-perl: 5.0.4
libpve-http-server-perl: 5.0.4
libpve-rs-perl: 0.8.5
libpve-storage-perl: 8.0.2
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 5.0.2-4
lxcfs: 5.0.3-pve3
novnc-pve: 1.4.0-2
proxmox-backup-client: 3.0.2-1
proxmox-backup-file-restore: 3.0.2-1
proxmox-kernel-helper: 8.0.3
proxmox-mail-forward: 0.2.0
proxmox-mini-journalreader: 1.4.0
proxmox-widget-toolkit: 4.0.6
pve-cluster: 8.0.3
pve-container: 5.0.4
pve-docs: 8.0.4
pve-edk2-firmware: 3.20230228-4
pve-firewall: 5.0.3
pve-firmware: 3.7-1
pve-ha-manager: 4.0.2
pve-i18n: 3.0.5
pve-qemu-kvm: 8.0.2-4
pve-xtermjs: 4.16.0-3
qemu-server: 8.0.6
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.1.12-pve1
 
  • Like
Reactions: crc-error-79
I am not sure to have understood your suggestion, but if I set a 300 delay and order nr. 1 for truenas, proxmox will wait 5 minutes before start it, then immediately it will boot the lxc (delay 0 and order 2).

This in theory, because as you can see below, it seems a bug or so because from console:

at 12:33:53 . proxmox starts the delay for vm and lxc boot up
at 12:33:53 . proxmox starts the vm 209 (truenas)
at 12:34:08 . proxmox - 15 seconds later - starts the lxc 414
at 12:38:10 . proxmox ends the delay correctly (4 minutes or so) to start the virtual machines.

I should expect that I can get the console of the lxc after the 12:38 but instead I can enter few seconds after the 12:34.


1692614355723.png
 
Please provide the guest config of those two each:
  • qm config 209
  • pct config 414

The startup delay affects all guests that have a higher or no order configured, after the guest on which the startup delay is configured:
Startup delay: Defines the interval between this VM start and subsequent VMs starts. For example, set it to 240 if you want to wait 240 seconds before starting other VMs.
https://pve.proxmox.com/pve-docs/chapter-qm.html#qm_startup_and_shutdown
 
Please provide the guest config of those two each:
  • qm config 209
  • pct config 414

The startup delay affects all guests that have a higher or no order configured, after the guest on which the startup delay is configured:

https://pve.proxmox.com/pve-docs/chapter-qm.html#qm_startup_and_shutdown

It worked thank you!

I was wrong because I misunderstand how it works!

The delay is added after the vm start command, instead I thought this it is added before.

It is something like this:

1692617750113.png
 
  • Like
Reactions: Neobin

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!