-
Notifications
You must be signed in to change notification settings - Fork 14
Ubuntu VirtualBox on Windows 7
krehman edited this page Jun 26, 2016
·
1 revision
- Download Ubuntu Server ISO image
- Download and install Oracle VirtualBox for Windows
- Follow this tutorial for further instructions, Installing Ubuntu inside Windows using VirtualBox
- Mount the downloaded Ubuntu Server image and follow the instructions to install
- To create a
systemd
task, see Run node.js service with systemd - Create a
VeraHomeKit.service
file:
[Unit] Description=Vera Home Kit Bridge Server [Service] WorkingDirectory=/path/to/working/directory ExecStart=/usr/bin/node /path/to/working/directory/app.js Restart=always RestartSec=60 # Restart service after 60 seconds if node service crashes StandardOutput=syslog # Output to syslog StandardError=syslog # Output to syslog SyslogIdentifier=nodejs-example KillMode=process #User=<alternate user> #Group=<alternate group> #Environment=NODE_ENV=production PORT=51826 [Install] WantedBy=multi-user.target
To launch this server in the background, create a Windows Task with VirtualBox headless feature.
- Create a Windows Task with the following action
- Program/Script:
"C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe"
- Add arguments:
-startvm Ubuntu-Server
- Start-in:
C:\Program Files\Oracle\VirtualBox\