When I reboot my Proxmox host, I have to enter this command in the Monitor section of the VM in order to set a password for VNC (necessary to connect with the VNC client built into macOS).
This does the trick but I want to automate it. Looks like a hook script should do it. Modifying the post-start section of the example script, I have this but it doesn't seem to work.
What am I doing wrong? I have the script set to the VM I'm starting (the "qm set <vmid> --hookscript ..." command returns no errors).
Thanks for any help you can offer. Been banging my head against the desk for far too long for something that seems like it should be simple.
Code:
set_password vnc none -d vnc2
This does the trick but I want to automate it. Looks like a hook script should do it. Modifying the post-start section of the example script, I have this but it doesn't seem to work.
Code:
...
elsif ($phase eq 'post-start') {
# Second phase 'post-start' will be executed after the guest
# successfully started.
# VNC through Proxmox host to set password for macOS clients
"set_password vnc none -d vnc2";
print "$vmid started successfully.\n";
...
What am I doing wrong? I have the script set to the VM I'm starting (the "qm set <vmid> --hookscript ..." command returns no errors).
Thanks for any help you can offer. Been banging my head against the desk for far too long for something that seems like it should be simple.