VM on local-lvm won't start at boot

Davide Davini

New Member
Jul 18, 2018
2
0
1
50
Hi,

Since the latest update -I'm running 5.2- I have this issue the first VM in the boot order, which is seated on local-lvm on an internal SSD drive, won't start at boot with error failed: got timeout.

After that all other VM's, that are on NFS mount, start in sequence without any issue. When I go ahead and start the VM manually it works like a charm.

I can't begin to fathom why. I can't find any clue.

The VM was put there to give the time to the NFS mount to come online so it has to be the first one to start.

Any advice will be greatly appriciated.

Code:
# pveversion -v
proxmox-ve: 5.2-2 (running kernel: 4.15.18-1-pve)
pve-manager: 5.2-5 (running version: 5.2-5/eb24855a)
pve-kernel-4.15: 5.2-4
pve-kernel-4.13: 5.2-2
pve-kernel-4.15.18-1-pve: 4.15.18-15
pve-kernel-4.15.17-3-pve: 4.15.17-14
pve-kernel-4.15.17-2-pve: 4.15.17-10
pve-kernel-4.15.17-1-pve: 4.15.17-9
pve-kernel-4.13.16-4-pve: 4.13.16-51
pve-kernel-4.13.16-3-pve: 4.13.16-50
pve-kernel-4.13.16-2-pve: 4.13.16-48
pve-kernel-4.13.13-2-pve: 4.13.13-33
corosync: 2.4.2-pve5
criu: 2.11.1-1~bpo90
glusterfs-client: 3.8.8-1
ksm-control-daemon: 1.2-2
libjs-extjs: 6.0.1-2
libpve-access-control: 5.0-8
libpve-apiclient-perl: 2.0-5
libpve-common-perl: 5.0-35
libpve-guest-common-perl: 2.0-17
libpve-http-server-perl: 2.0-9
libpve-storage-perl: 5.0-24
libqb0: 1.0.1-1
lvm2: 2.02.168-pve6
lxc-pve: 3.0.0-3
lxcfs: 3.0.0-1
novnc-pve: 1.0.0-1
proxmox-widget-toolkit: 1.0-19
pve-cluster: 5.0-28
pve-container: 2.0-24
pve-docs: 5.2-4
pve-firewall: 3.0-13
pve-firmware: 2.0-5
pve-ha-manager: 2.0-5
pve-i18n: 1.0-6
pve-libspice-server1: 0.12.8-3
pve-qemu-kvm: 2.11.2-1
pve-xtermjs: 1.0-5
qemu-server: 5.0-29
smartmontools: 6.5+svn4324-1
spiceterm: 3.0-5
vncterm: 1.5-3
zfsutils-linux: 0.7.9-pve1~bpo9
 
Last edited:
Hi all,

I solved it for now. I wrote a systemd service that starts the VM's.

It's very crude, but if someone is interested:

/etc/systemd/system/startup_vms.service

Code:
[Unit]
Description=Startup VMs
Wants=ssh.service
Wants=pve-manager.service
Wants=pveproxy.service
Requires=nfs-client.target
After=nfs-client.target
After=pvedaemon.service
After=ssh.service
After=pveproxy.service
After=pve-manager.service
After=pve-guests.service
After=spiceproxy.service
After=pvedaemon.service
After=pve-cluster.service
After=rrdcached.service
After=open-iscsi.service
After=iscsid.service
After=networking.service
After=apparmor.service
After=lvm2-monitor.service

[Service]
ExecStart=/usr/local/bin/svms.sh

[Install]
WantedBy=default.target

/usr/local/bin/svms.sh

Code:
#!/bin/bash
sleep 30
qm start 102
sleep 30
qm start 101
sleep 30
qm start 100
sleep 30
qm start 104

I'll make the monster nicer when I have time.
 

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!