hookscript

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

    vm rollback in hookscript

    Hello, I want to auto rollback when vm is stop. the same as PXE. use hookscript: my $cmd ="qm rollback $vmid snapshot"; ...... ....... elsif($phase eq 'post-stop') { print "$vmid stopped. Doing cleanup.\n"; system($cmd); Both tasks will lock the vm at the same time,and post error GUEST...
  4. P

    [SOLVED] hookscripts on container to gracefully start/stop docker images inside containers

    I try to execute hookscript. I successfully added hookscript from documentation /usr/share/pve-docs/examples/guest-example-hookscript.pl and I see it's beeng executed in gui taks log: GUEST HOOK: 112 pre-start 112 is starting, doing preparations. GUEST HOOK: 112 post-start 112 started...
  5. S

    API Question.

    I am running pve-manager/6.2-10 and have a VM running an old Natware 3.12 server system. The contents of the VM do not respond to shutdown commands. The only way to stop the VM is to enter the console and manually 'down' the server, exit to DOS then issue a 'stop'. I have written a hookscript...
  6. 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...
  7. E

    how to add qm unlock <vmid> to hookscript

    Afternoon all, Has anyone added qm unlock <vmid> to a hookscript? The vm gets locked, and most of the times I manually have to unlock vm in order to start it again, or any suggestions. Thank you