Ziggsta Posted January 28, 2019 Share Posted January 28, 2019 Once upon a time back when I was a young PC gamer enthusiast, I was learning out of necessity how to use a command prompt (DOS) for the first time, and I quickly learned that I needed to manage my system memory configuration (conventional, extended and expanded remember those) via autoexec.bat and config.sys files so I could get all the extra super-cool special effects of my cockpit exploding in the Original Wing Commander games! To name but one example, in doing so I learned of the power of batch files and eventually the CHOICE.EXE command, this allowed me to create elaborate autoexec.bat files that contained separate system starup configurations for all my favourite demanding games of the time. Since using unRAID on my main rig as a two-in-one NAS/Server + Games machine I've wanted the ability to choose at the very least the VM to startup and it would also be nice to be able to pick specific Dockers to load while we're at it. Via a boot menu like I'm describing above, like a GRUB multi-boot I'd like a few seconds to pick another VM if I so choose else boot into my default VM, without having to pull out my phone/tablet to start a different VM on my PC. I thought perhaps the unRAID GUI mode could facilitate this but because it initiates the systems Graphics system I can't use it to start a VM loading on the same GPU. I know Virtualbox has an optional module that allows for command line control of VMs, is what I'm asking for possible with unRAID currently? Could an elaborate script be used to do what I'm suggesting perhaps? And am I the only one who wants this? Quote Link to comment
bastl Posted January 28, 2019 Share Posted January 28, 2019 You can start and stop a VM or a docker via the comandline. virsh start vm1 virsh stop vm2 docker stop duplicati docker start nextcloud It's up on you to create a script for your needs Quote Link to comment
Ziggsta Posted January 28, 2019 Author Share Posted January 28, 2019 So there's hope then good, now I just need to learn how to write shell scripts in Linux I guess. Next question when unRAID starts without the GUI and no Autorun VM, you get a login prompt. I'm suspecting this might be a problem for my scripting intentions perhaps? Quote Link to comment
JonathanM Posted January 28, 2019 Share Posted January 28, 2019 50 minutes ago, Ziggsta said: Next question when unRAID starts without the GUI and no Autorun VM, you get a login prompt. I'm suspecting this might be a problem for my scripting intentions perhaps? Not particularly problematic. Either use the User Scripts plugin, or set things up in the go file on the USB. 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.