Table of Contents
wol-hyper-v is a node.js application starting a hyper-v VM on the host machine when receiving a http-get request. This request must include at least one key named 'action', with the value of either 'start' or 'stop'.
Optionally the GET request can also include a key named 'vmname' with the value corrsiponding to the actual name of the Hyper-V VM on the host machine.
Example:
On the host machine there is a Hyper-V VM setup named 'testvm1'.
Therefore the GET request to start this VM should contain the following key's:
'action' = 'start'
'vmname' = 'testvm1'
Funny project. Easy to use!
This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
(your output should look something like this if and only if you have those tools installed. if not, consider installing them! duh)
-
Clone the repo
git clone https://github.com/alexinabox/wol-hyper-v
-
Install NPM packages
npm install
-
Edit the config.js file! (dont copy the following as a whole since comments dont work in json syntax)
{ "vmName": "testvm", <-- the name of your vm in hyper-v "hostName": "testhost", <-- the name of your host machine "port": 5986, <-- your server will run on this port "verbose": true <-- set this to true incase of any errors }
-
open the desired port on your firewall (optional)
-
start the server (or turn this application into a windows backround service!):
node index.js
-
profit
The daemonization of this application ensures that it always runs in the background and also starts itself on boot!
Create the windows backround service:
cd misc/
node createWinSvc.js
Remove the windows backround service:
cd misc/
node removeWinSvc.js
I suggest using this application in combination with my iPhone shortcut.
This shortcut allows you to start and stop your VM with a single tap on your iPhone.
Link to the shortcut:
https://www.icloud.com/shortcuts/440b9c5e3fcc47239df3b2268937008e
For more examples, please refer to the non existent Documentation
- lorem ipsum
See the open issues for a full list of proposed features (and known issues).
Bla Bla Bla learning bla bla bla open-source bla bla bla greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request (write something neat so i know whats goin on)
Distributed under the GNU General Public License v3.0 License. See LICENSE.txt
for more information.
AlexInABox - @wilder_Alex__ - main@alexinabox.de
Project Link: https://github.com/alexinabox/wol-hyper-v
Website: https://alexinabox.de
- stackoverflow
- My shortcuts Icon by Icon Mafia