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
Creating Custom Built Debian 6 (Squeeze) May 24, 2013May 24, 2013 There is a well documented official way to create standard Debian CDs. However, sometimes it is nice to have a CD or DVD which just contains a subset of Debian Packages to fit personal needs. The following script is made for creation of such a CD image. By default, it… Read More
Convert Xen XVA to KVM August 23, 2023 Citrix Xen uses a custom virtual appliance format for import/export called “XVA”. it’s basically a strangely crafted tar-file. You don’t need this program to unpack this tar-file, just use your favourite tar unpacker (tar, gtar, bsdtar). Once unpacked you will end up with a lot of different files, ova.xml (which… Read More
Zimbra Let’s Encrypt auto-renew SSL January 26, 2023 Required for this script to work is certbot package installed on email server and sudo rights to add script in crontab. You can add script in crontab at a weekly run like this: 0 0 * * 0 root /path_to_script. #!/bin/bash #Set domain for renew (in format openthreat.ro) DOMAIN=”” certbot… 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