Laov Posted July 24, 2023 Share Posted July 24, 2023 Hello, I need a way to let users start their own VMs on my unraid server. I don't wish to be bothered again with the "I accidentally shut down my VM can you start it for me coz I don't have access to your Unraid root". Is there any webui that would enable VM start / stop? Or a command line script that I could run on a windows machine that would try in start a VM? Quote Link to comment
Mad_Scientist Posted July 24, 2023 Share Posted July 24, 2023 (edited) I had this same issue. I used GPIO Group policy in windows to disable the shutdown command. The only way you can shutdown is to open command prompt as admin and type shutdown into it. when my users go to the "shutdown area" on the windows button the only option they see is "logoff". no sleep, restart, or shutdown options. Between that and the autostart vm, this isnt a problem anymore. and yes, even if autostart is on, it wont restart the vms automatically. it only does it after startup Edited July 24, 2023 by Mad_Scientist 1 Quote Link to comment
Laov Posted July 24, 2023 Author Share Posted July 24, 2023 20 minutes ago, Mad_Scientist said: I had this same issue. I used GPIO Group policy in windows to disable the shutdown command. The only way you can shutdown is to open command prompt as admin and type shutdown into it. when my users go to the "shutdown area" on the windows button the only option they see is "logoff". no sleep, restart, or shutdown options. Between that and the autostart vm, this isnt a problem anymore. and yes, even if autostart is on, it wont restart the vms automatically. it only does it after startup Yes I did that as well. But now I have a situation where a few different VMs are needed and they are RAM intensive. Thus currently I would like to leave an option to shut down in case the user needs a different VM and wants to have maximum RAM allocated... It would be so nice if Unraid had a "user" gui login that would have limited rights. Say manage VMs, start/stop dockers... But for now I need a work around... Quote Link to comment
Mad_Scientist Posted July 24, 2023 Share Posted July 24, 2023 5 minutes ago, Laov said: Yes I did that as well. But now I have a situation where a few different VMs are needed and they are RAM intensive. Thus currently I would like to leave an option to shut down in case the user needs a different VM and wants to have maximum RAM allocated... It would be so nice if Unraid had a "user" gui login that would have limited rights. Say manage VMs, start/stop dockers... But for now I need a work around... maybe write a script that doesnt it for them. not sure if its possible. Quote Link to comment
Solution SimonF Posted July 24, 2023 Solution Share Posted July 24, 2023 Have a look at this 1 Quote Link to comment
Laov Posted July 24, 2023 Author Share Posted July 24, 2023 Thanks. This worked well after a bit of confusion setting it up. Quote Link to comment
JonathanM Posted July 25, 2023 Share Posted July 25, 2023 There are other ways of scripting this kind of thing if you need it. Basic outline for one method is... look for existence of specific file or content in public share if content exists, start VM and delete said content That way, user can touch file in public share to start VM. 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.