script

  1. 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...
  2. 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...
  3. 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...
  4. 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
  5. 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...