My Windows 10 workstation has Hyper-V enabled, as I fire up test environments once in awhile on my workstation. But I also, being at home, like to put my workstation to sleep whenever I'm not using it. It's not set to sleep automatically; if I leave it running, I'm leaving it running for a reason (rendering/converting video, running a VM, doing some other batch task etc.). But if I'm not doing those things, I always sleep it manually when I leave my computer to save power.
On the Schedule page of the backup job wizard, Veeam Agent for Windows has a feature to "Once the backup is taken, computer should" and I can select Sleep, which would be desirable especially if Veeam woke up the machine in the middle of the night to run a backup; I'd want it to sleep when the backup was done so it wasn't using excess power. However, if I left my machine running because a Hyper-V VM is running, I don't want Veeam to then force the machine to fall asleep. This is something I never worried about with File History (Windows Backup), as it would just run for a few minutes at a time at seemingly random intervals and if I interrupted it by sleeping the machine, it didn't care (I'm switching to Veeam though because File History is trash and randomly stops backing up...I'm looking at you, Event ID 200 -_-).
I understand that Veeam will prompt before sleeping, but obviously, if I'm not at my machine, I can't stop it. I also understand that automatic sleeping is disabled when a Hyper-V VM is running, but my machine never automatically sleeps anyway; I sleep it manually. What I don't know, and have never tried, is what happens when I ask the computer to sleep manually while a Hyper-V VM is running. If it outright refuses to sleep, then maybe Veeam will honor that as well and I have nothing to worry about, and Veeam will sleep the machine if no Hyper-V VMs are running, and will leave the machine running otherwise.
Anyone have any experience with this?
-
- Influencer
- Posts: 23
- Liked: 2 times
- Joined: Sep 26, 2020 12:01 am
- Contact:
-
- Product Manager
- Posts: 14840
- Liked: 3086 times
- Joined: Sep 01, 2014 11:46 am
- Full Name: Hannes Kasparick
- Location: Austria
- Contact:
Re: Prevent Windows 10 from sleeping if Hyper-V VM is running?
Hello,
But let's see, whether someone else answers.
If the result is not satisfying, there is a technical solution from Veeam side: post-thaw scripts. With that, one could write a script that checks for example whether a VM is running. And only hibernate, if it's not running (requires server edition of the Veeam Agent for Windows)
Best regards,
Hannes
as your scenario sounds like home-user / lab environment, I guess pressing the "sleep" button will give the fastest answer (besides of asking in a Microsoft forum, where they probably also know it)What I don't know, and have never tried, is what happens when I ask the computer to sleep manually while a Hyper-V VM is running.
But let's see, whether someone else answers.
If the result is not satisfying, there is a technical solution from Veeam side: post-thaw scripts. With that, one could write a script that checks for example whether a VM is running. And only hibernate, if it's not running (requires server edition of the Veeam Agent for Windows)
Best regards,
Hannes
Who is online
Users browsing this forum: No registered users and 26 guests