Proxmox VM auto start VM after found in shutdown state Rumi, July 30, 2021July 30, 2021 I was having this strange issue, where a running busy VM stopeed all of a sudden due to high CPU or Memory overload issue. So manually had to start everythime. In order to avoid this, created a small script to start the VM in case if it’s down. #!/bin/bash # Set environment PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin su - if [[ $(qm status 101) = *"status: stopped"* ]]; then echo `qm start 101` fi Related Proxmox Scripts Proxmox
Fixing Slow Windows VM boot on Proxmox KVM with balloon driver June 18, 2020 Download the Win-Virtio Driver and load it on VM CDRom Drive. Download can be found here: https://pve.proxmox.com/wiki/Windows_VirtIO_Drivers Now install the Virtio Balloon driver AND the Balloon service in the guest as follows: Open Device Manager and see if there is an unknown PCI device. If so, right click it and… Read More
Perfect Proxmox Template with Cloud Image and Cloud Init January 28, 2023January 30, 2023 Instructions Choose your Ubuntu Cloud Image. Here in this example will use ubuntu cloud-init image. Download Ubuntu (replace with the url of the one you chose from above) wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img Create a new virtual machine qm create 8000 –memory 2048 –core 2 –name ubuntu-cloud –net0 virtio,bridge=vmbr0 Import the downloaded Ubuntu… Read More
Extreme slow internet speed pfsense over proxmox February 16, 2023 For a qemu proxmox guest PFSense acts weriedly with the network speed- it gets extremely slow. So her goes the little tweaks that worked for me- First, I chose Intel E1000 Interfaces instead VirtIO. Second, in the PFSense webconsole- In pfSense GUI, System > Advanced > Networking > Tick on-… Read More
You can put the script anywhere with the executable permission. What I did later to add it on the cron to check the status in every 5 mins. Reply
To launch automatically you must add with the crontab -e : * * * * * bash [the name of the directory where your script is] example bash /usr/local/sbin/[name of the script] Reply