Categories TutorialsVirtualBox

VirtualBox remote management on Windows with Hyperbox

Creating and running virtual machines with VirtualBox is one thing. Managing them remotely, especially once you have more than a couple, is another.

Oracle links to a couple management solutions right from the VirtualBox homepage. One of them, phpVirtualBox, has tutorials all over the Internet. I love an underdog, so this guide will deal with the other package Oracle links to, Hyperbox, and how to get it running on a Windows host.

Despite being several years old, Hyperbox is currently at version 0.0.12. As such, don’t expect a blissful and totally intuitive experience. It’s a basic GUI that gets the job done once the configuration is completed. Its own documentation for Windows host machines is also, shall we say, slightly lacking if you’re not already a VirtualBox expert.

Getting started with remote management

First, if you haven’t already, download and install VirtualBox. Then, on the same machine, download and install the Hyperbox server software. You can also install the Hyperbox client on that machine, or on a remote machine with network access to the server, or both. I recommend installing the client software locally first because there will be fewer network communication issues to troubleshoot.

The Hyperbox server installation won’t result in any obvious new applications on your desktop. It’s just a service that runs at system boot, listening for connections from Hyperbox clients.

But even the Hyperbox server isn’t quite enough to enable access to your VirtualBox VMs. On Windows, Hyperbox relies on VirtualBox’s Web Services for remote administration. We need to turn those on first, through a Scheduled Task.

Start VBoxWebSrv.exe at system boot

VirtualBox includes a Web Services executable, but there’s no way to activate it via the GUI. Here’s how to start it automatically whenever the host machine is turned on or rebooted, using Windows Server 2008 R2 as a reference:

  1. Open Task Scheduler however you like - through Control Panel, MMC, Administrative Tools, whatever.
  2. Click Create Task
  3. In the General tab:
    1. Name the task “VirtualBox Web Services”
    2. Tick “Run whether user is logged on or not”
    3. Tick “Run with highest privileges”
    4. Tick “Hidden”

  1. In the Triggers tab:
    1. Click “New…”
    2. Select “At startup”
    3. Click “OK”

  1. In the Action tab:
    1. Click New…
    2. Set Action to “Start a program”
    3. Click “Browse…”
    4. Navigate to the VirtualBox directory - by default, C:\Program Files\Oracle\VirtualBox
    5. Select VBoxWebSrv.exe
    6. Click “Open”
    7. In the “Add arguments (optional)” box, fill in “-A null”; this step disables the need to provide a username and password when connecting to the hypervisor software later on
    8. Click “OK”

  1. In the Conditions tab, untick everything:

  1. In the Settings tab:
    1. Untick “Stop the task if it runs longer than:”
    2. Leave other settings as they are
    3. Click “OK”

Save the task and the VirtualBox Web Services will always start with your host machine.

With your host machine set up, it’s time to get the client software configured. Getting connected to your library of virtual machines is a two-step process.

Connect to Hyperbox remote management server

Here you’re connecting to the Hyperbox server software, hboxd.exe, running as a service, on the machine hosting your VirtualBox VMs. You won’t see your list of VMs just yet.

In the Hyperbox client interface, click Server > Add and fill in the details.

The Label can be anything you like. The Hostname can be the IP address or name of the host machine. The default User and Password are “admin” and “hyperbox”, respectively. Click OK and your first server is ready for a connection.

Right-click your server name and select “Connect”, or just double-click the server name. With luck, you’re connected within a few seconds. If you’re unlucky, the Hyperbox service doesn’t respond, and you’ll have to remotely restart the hboxd.exe service on your host, kind of negating the whole point of having a Hyperbox client in the first place.

Deep breath. Version 0.0.12.

Connect to hypervisor (VirtualBox)

Let’s assume your connection to the Hyperbox server is successful. You still need to connect to the hypervisor software, VirtualBox, via its Web Services component, VBoxWebSrv.exe.

Right-click your server name again, select Hypervisor, and then select Connect. You’ll get a small dialog box asking for some parameters.

My host has VirtualBox 5.0.20 installed, and its Web Services component were set up earlier, so from the dropdown I choose the “Oracle VirtualBox - vbox-5.0-ws” connector. Since I configured VBoxWebSrv to not require authentication, the Connector Options field can be left blank. If you choose to require authentication, fill in Connector Options like so:

http://[username]:[password]@localhost

The username and password are the Windows host machine credentials. Any special characters in the password, by the way, like a question mark or slash, will flummox the connector, so only use letters and numbers in the account password if possible.

The good news? Once you connect to the hypervisor for the first time, the connection will be made automatically every time you connect to the server.

Manage your virtual machines remotely

The graphical user interface that Hyperbox offers isn’t quite as pretty as the native VirtualBox GUI, but it tells you everything you need to know.

Well, almost. You might notice that if your VMs are running under VBoxVmService, Hyperbox won’t show that they’re running, just that they exist. Same as VirtualBox itself, actually.

Regardless, you can still view and edit your VM configurations, and even start and stop them if Hyperbox is your only add-on to VirtualBox.

One more oddity to note: since the Hyperbox client is actually a Java program, it might not show up in the Windows Task Manager’s list of running applications. Rather, it shows up underneath a listing for your Java platform.

How do you manage your virtual machines? Let us know in the comments!

Photo credit: Andres Athehortua

jaQ Andrews

John "jaQ" Andrews is the Information Manager for custom app development company Zco Corporation. He also runs Defunct Comic and his own blog between binging Netflix, brushing his cats, and writing tech columns for The Hippo.

Share
Published by
jaQ Andrews

Recent Posts

Biometrics authentication: Where the technology is now — and where it’s going

As cyberthreats rise in number and complexity, biometrics authentication technology has seen rapid adoption and…

2 days ago

Remote work vulnerabilities: Tips on avoiding a nightmare scenario

Remote work is likely to remain permanent — and so will the vulnerabilities it brings…

2 days ago

Microsoft Teams rolls out new video meetings features

Microsoft Teams is adding new features to help employees adjust to the new normal of…

3 days ago

Azure Charts: If you’re not using this cool feature, you should be

This Azure Quick Tip shows you how to use Azure Charts, a great resource that…

3 days ago

What to do after you migrate your virtual machines to the cloud

There are countless reference works available online (including many that I have written myself) that…

3 days ago

Review: Identity verification solution Specops Secure Service Desk

Specops Secure Service Desk is an innovative solution for positively identifying a user who calls…

4 days ago