Putschgi Posted April 22, 2020 Share Posted April 22, 2020 Hello everybody I have a VM with Windows 10 and want to start a Docker when the VM is running and switch it off again when the VM stops. is that possible? Quote Link to comment
JonathanM Posted April 22, 2020 Share Posted April 22, 2020 37 minutes ago, Putschgi said: is that possible? Sure, but it will require a custom script or scripts, it's not a built in feature of Unraid. I have no idea of your personal level of expertise, so all I can confidently say is that if you use the virsh and docker commands properly in a script, it's relatively easy. Quote Link to comment
Aspect Posted June 8, 2020 Share Posted June 8, 2020 On 4/22/2020 at 10:44 AM, Putschgi said: Hello everybody I have a VM with Windows 10 and want to start a Docker when the VM is running and switch it off again when the VM stops. is that possible? Did you ever figure this out. I’m not too script savvy. But I’ve been trying to find a way to stop Plex (with Gpu passthru) when I start a VM with the same gpu passthru Quote Link to comment
Iker Posted August 19, 2020 Share Posted August 19, 2020 I think that this could be accomplish with a user script, specifically with the command "virsh list" and "docker stop", you only have to check is the vm is present or not in the list, the main problem is the delay (VMs in SSDs starts veryfast) of the script, but probably you could just let it in a constant loop, so every 5 seconds checks if the vm is running or not. Quote Link to comment
Recommended Posts
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.