Hi all,
is there any way to stop PVE to shut down after boot up? Its immediately shutting down after login screen comes up.
I have a Script to creacefully shutdown all VM´s and Container for Shutting down after PowerOutage triggert from USV. Looks like i dont have tested enough because all my tests are working fine, looks like when no VM´s CT´s are running PVE is shuttung down also.
Also NUT client is installed on this host.
Looks like i have to reinstall PVE on this host.
Cheers
is there any way to stop PVE to shut down after boot up? Its immediately shutting down after login screen comes up.
I have a Script to creacefully shutdown all VM´s and Container for Shutting down after PowerOutage triggert from USV. Looks like i dont have tested enough because all my tests are working fine, looks like when no VM´s CT´s are running PVE is shuttung down also.
Code:
#!/bin/bash
# Script for shutting down all VMs and containers on Proxmox
echo "Starting shutdown process for all VMs and Containers..."
# Shutdown all virtual machines (VMs)
for vmid in $(qm list | awk '{if ($1 > 100) print $1}'); do
echo "Shutting down VM $vmid..."
qm shutdown $vmid --force
done
# Shutdown all containers (LXC)
for ctid in $(pct list | awk '{if ($1 > 100) print $1}'); do
echo "Shutting down container $ctid..."
pct shutdown $ctid
done
echo "Shutdown process completed."
# Optional: Shut down the host system after all VMs and containers are off
# Uncomment the next line if you want the host to shut down automatically
# shutdown -h now
Also NUT client is installed on this host.
Looks like i have to reinstall PVE on this host.
Cheers