hook script

  1. F

    Hook Script to disable pbs storage

    Good day I have pbs vm for all my backups, the pbs syncs these to an offsite pbs for long term storage. my problem is that proxmox hangs on shutdown, due to the pbs storage location being offline. I have seen I can use hook scripts to perform actions depending on vm status, and I have seen...
  2. gurubert

    Hook script not executed on source host of migrating VM

    Hi, to see how hook scripts work I created a very basic script and placed it on a storage available to each node: #!/bin/bash echo "$@" | logger -i -p local4.info -t snippet-test When migrating a VM between the nodes I only see log entries for "pre-start" and "post-start" hooks on the...
  3. P

    PVE Tokens, API, and Hookscripts

    I'm trying to use Ansible to manage VMs in Proxmox - specifically attach hookscripts as necessary. The hookscripts are valid and attach just fine via "qm set <vmid> --hookscript..." when run on the local PVE node. The issue is going through the Ansible provider, or rather the API in general I...
  4. F

    Backup script hook missing events?

    Dear all, im running pve 7.4 in a 6 node ceph cluster and active ha manager. We are currently running nightly backups. My goal is to stop specific services on a windows guest vm during the fs-freeze command which is called during snapshot backup to prevent database corruption. As we have the...
  5. A

    Terraform proxmox lxc container startup script

    How do I run a simple shell script after applying my terraform on proxmox? There is no "provisioner" for the lxc
  6. S

    proxmox cluster live migration hooks and xxx.conf files

    Hi, I use exec-cmds pre-start to mount virtio from an nfs share. I am finding that when I do a live migration the 106.conf does not exist on the node at the point that I need it ? 19:53:08 Action phase: pre-start /mnt/pve/NFSShare/snippets/exec-cmds: line 46: /etc/pve/qemu-server/106.conf: No...
  7. A

    [SOLVED] Running commands on guest using hookscript fails (Error msg: QEMU guest agent is not running)

    I'm having trouble using the hookscript to run commands on the guest. The error I'm getting is QEMU guest agent is not running. However, I know this is wrong, since I can run the same commands after the VM is booted just fine. I thought it might be a problem with the QEMU agent needing extra...
  8. N

    [SOLVED] Proxmox PCI Passthrough

    Hello, i have some Problems with my PCI Passthrough... Im passing a Thunderboltcard through and sometimes when i disconnect a thunderbolt device and than start the VM my HOST wont respond over Network, i think its because after disconnecting a Thunderbolt device it also disappears form the...
  9. F

    Noob backup strategy

    TL;DR Is copying the datastore (the files) of PBS to a remote destination a sufficient backup solution? Can I use them files to recreate my VM on a new system if the old fails? How can approach automatically running a rclone command when a backup is done without knowing anything about scripting...
  10. E

    vzdump hookscript error 'INFO: find: -exec: no terminating ";" or "+" and find: missing argument to -exec''

    Good day all, I might be doing something wrong that's very simple, I get the following error in the log file: find: missing argument to -exec or INFO: find: -exec: no terminating ";" or "+" These errors I get on proxmox 5.4 and newer, but on the proxmox 4.xx version the hookscript does what...