DrEVILish Posted June 7, 2016 Share Posted June 7, 2016 I would like to have a VM assigned to my power on button on my unRAID box, or have a USB mini keyboard attached that at a press of a button would start the assigned VM. On pressing the power button to my machine a VM with the button assigned would start, the power button for the duration of the VMs life will be assigned to this VM. or an externally accessible API, that I could program some commands to from another device, iPhone,Webpage etc. with easier control than having to fiddly page through the unRAID web interface. Quote Link to comment
dmacias Posted June 7, 2016 Share Posted June 7, 2016 I would like to have a VM assigned to my power on button on my unRAID box, or have a USB mini keyboard attached that at a press of a button would start the assigned VM. On pressing the power button to my machine a VM with the button assigned would start, the power button for the duration of the VMs life will be assigned to this VM. or an externally accessible API, that I could program some commands to from another device, iPhone,Webpage etc. with easier control than having to fiddly page through the unRAID web interface. There's a Libvirt WOL plugin to 'wake' VM's. You just send a wake on lan packet on your network with the mac of the VM and it will start the VM. The VM has to be stopped or hibernated. It can't wake a sleeping or paused VM. So you can use a WOL app to wake a VM. Quote Link to comment
meep Posted June 7, 2016 Share Posted June 7, 2016 So would a USB keyboard assigned to a VM pass keystrokes to unRAID if the VM is stopped? This would be ideal as the VM keyboard could be used to start it up. I LOVED the keyboard power button on old Macs but Apple stopped implementing due to safety concerns, I believe. Quote Link to comment
dmacias Posted June 7, 2016 Share Posted June 7, 2016 So would a USB keyboard assigned to a VM pass keystrokes to unRAID if the VM is stopped? This would be ideal as the VM keyboard could be used to start it up. I LOVED the keyboard power button on old Macs but Apple stopped implementing due to safety concerns, I believe. I'm not sure if there's a hotkey program for slackware without a desktop. There's usually options for linux with desktops. I'm also not sure if you'd have to stop and start the hotkey app as you start and stop the VM. Quote Link to comment
Lobsi Posted July 24, 2016 Share Posted July 24, 2016 currently i am using the VM Wol Plugin and a tiny WOL app on my Windows 10 driven Phone. I also would appreciate if the local System powerbutton could be abused for managing a prefered VM Power Quote Link to comment
NeoDude Posted August 3, 2016 Share Posted August 3, 2016 I currently have the reset button on my case disconnected as it is largely useless (and dangerous with young fingers in the house) within UnRaid. It would be awesome if the reset button could somehow be retasked as a VM power button. Quote Link to comment
tinglis1 Posted August 23, 2016 Share Posted August 23, 2016 I have made a feature request for an unraid API.unRAID API. It is not a perfect fix for this but could provide a work around solution by: using an arduino physical button executing an API command. using you home automation system to execute the command simple webpage to control vm I just thought of another option while writing this post that may work without the API is: Button --> Arduino --> USB/onboard serial --> unraid script to watch and execute the vm control command. A very quick search has brought up the following post that might help. Link. They have used Perl in this example which is part of the Nerd Tools. This would be a relatively simple arduino project and may do it myself when I build my next unraid/htpc machine. Quote Link to comment
tinglis1 Posted August 23, 2016 Share Posted August 23, 2016 Just to add to that, you could run the monitoring script using the plugin User Scripts. 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.