script

  1. W

    post backup script issues...

    I'm trying to send backup files to a remote Restic server but there seems to be an issue with the shell that proxmox runs backups in. I had to add a lot of things to try and get bash commands to work, bash -lic has helped in a few places but I'm sure there's something neater which could make...
  2. R

    Curl current proxmox release version from web

    Bit weird but I'm setting up various scripts that announce when software is due for an update - mainly so I can check release notes before applying. Is there somewhere I can reliably get (curl or similar) the latest release number from - so the script can use it to compare it to pveversion.
  3. S

    Simple reset script - ping

    I noticed that there does not seem to be a simple reset / reboot script for problematic clients so I made one. Copy / Paste this to autorestart-vm1100.sh using nano #! /bin/bash # Replace VM id number and IP address with your own "VM" id number and IP address ping -c 1 10.168.100.100 &>...
  4. D

    lxc-start fails! --> unsupported Ubuntu version '18.04'

    Hello, today I install an lxc Container with ubuntu 16.04 and do an dist-upgrade (after added the ubuntu 18.04 sources.list files), now I am not able to start the container anymore because I get the Error Message root@michael-server:~# lxc-start -F -n 100 --logfile=lxc100.log...
  5. T

    [SOLVED] Setting LXC user password with pct when calling from a script

    Hello everyone, I am looking for a non-interactive way to set the password for the root user (or any user really) when creating a LXC container from the official Proxmox Ubuntu 16.04 template using pct. For some background: I am currently trying to automate most of my homelab, including LXC...
  6. J

    Auto Provisioning and IP Assignment Provisioning script

    Hi All, I've been working hard to make the job of provisioning and assigning ips easier. So I'd like to share a little script I've made that I hope some of you will find it helpful in your mission to automate the world. I apologise to mods if this isn't the right section. The reason I...
  7. V

    Post-Installation script

    Is there any way to run a post-installation script (bash) when a new VM is created using a fresh linux image or a template ? I want to create and setup Nginx/FTP (well LEMP) automatically when a new VM is created. I thought about creating a template with both of them installed but that will...
  8. B

    Script when vm migrates

    Hi everybody, I need to execute a script when a vm has migrated, due to fail of a node. Any idea to catch the event ? Thanks
  9. W

    Firewall file manual edit

    Hello, I wanna update my firewall file for the cluster everyday with an updated list of blocked spam IPs. Therefore I created a bash script but unfortunately I can't execute it in /etc/pve/firewall/ and I can't copy files to this directory with the script. Any idea how to do it then? Thanks for...