Skip to content

Ubuntu VirtualBox on Windows 7

krehman edited this page Jun 26, 2016 · 1 revision

Create Ubuntu VirtualBox on Windows 7

  1. Download Ubuntu Server ISO image
  2. Download and install Oracle VirtualBox for Windows
  3. Follow this tutorial for further instructions, Installing Ubuntu inside Windows using VirtualBox
  4. Mount the downloaded Ubuntu Server image and follow the instructions to install

Create Service for Vera HomeKit Bridge using systemd

  1. To create a systemd task, see Run node.js service with systemd
  2. 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

Create a Windows Task with VirtualBox Headless

To launch this server in the background, create a Windows Task with VirtualBox headless feature.

  1. 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\