Jump to content

Wake from Hibernation Notification


Recommended Posts

I have my Windows 11 VM setup so that I can hibernate it on UNRAID 6.11.5. Is there a way to use a helper script (or something else) that will start a VM and then give you a notification when the VM is at the login screen with an IP and is ready for RDP? Just a little time saver instead of guessing when it is ready for RDP.

Link to comment

If pinging an IP is enough, I use a script to determine when my firewall has completed booting and runs other actions. You could modify this to send notification when an IP starts responding.

 

#!/bin/bash
printf "%s" "waiting for pfSense ..."
# Change IP to match an address controlled by pfSense.
# I recommend pfSense internal gateway or some address guaranteed to be up when pfSense is finished loading.
# I don't use external IP's because I want my internal network and appliances to be fully available
# whether the internet is actually connected or not.
while ! ping -c 1 -n -w 1 192.168.1.1 &> /dev/null
do
    printf "%c" "."
done
printf "\n%s\n"  "pfSense is back online"
virsh start VMName1
# Insert optional delay to stagger VM starts
#sleep 30
virsh start VMName2

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...