lionceau Posted April 9, 2017 Share Posted April 9, 2017 Hi, I use three "desktop" VMs (Win,Mac,Linux) with unRAID and each of them has the same GPU passed through, so I can't use them at the same time. Is there a way to "queue" VM actions so I can for example stop Linux and immediately start Windows from within Linux using the webgui? Right now I have to use a second device to shut down one VM and then start the other, because once the first shut down is done I cannot interact with UnRAID to start the next VM. Quote Link to comment
me.so.bad Posted April 9, 2017 Share Posted April 9, 2017 (edited) maybe from terminal, something like this: #!/bin/bash virsh shutdown $1 && sleep 1 && virsh start $2 (this is only an extremely simple example script - pls dont use it in production) save as /boot/extra/switch.sh and then, from terminal:nohup /boot/extra/switch.sh WindowsVMName LinuxVMName & Edited April 9, 2017 by me.so.bad updated bash - still very hacky ;)) 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.