VirtualBox

Manage Virtual Box Remotely With RemoteBox – Install on Ubuntu 22.04

When working with a remote server, we often get stuck on how to manage various virtual machines without using the graphical interface. The headless virtual box can get frustrating when you want to manage various virtual machines unless you get a graphical client to aid with that.

Creating and managing virtual machines on your command line can be tricky, but you don’t have to, provided you know how to use a tool like RemoteBox. If you’ve not tried RemoteBox, read on to find out how to install it and use it to manage your virtual machines.

Getting Started With RemoteBox

RemoteBox is a graphical client designed to help users remotely manage their virtual machines on their servers. It gets better since RemoteBox offers a simple and reliable graphical way similar to how you use your normal virtual box to manage your virtual machines. However, in this case, we are installing RemoteBox on the client machines to help manage the VMs on our server.

There are plenty of features that RemoteBox offers, including the following.

    1. It requires no web server.
    2. The tool is free and open-source.
    3. RemoteBox is simple to compile, as it is written in Perl.
    4. With RemoteBox, you can manage Oracle virtual box and the installed guests.
    5. You get to manage your guest states easily.
    6. RemoteBox supports various systems, including Linux, Mac, and Windows.
    7. It supports guest snapshots.

We’ve seen the amazing features that RemoteBox offers. Let’s proceed to check the steps for installing RemoteBox on Ubuntu.

1. Install Virtual Box (Headless) on the Server

We must install the headless version of the virtual box on the server to connect to it from the client. So, log in to your server and use the below command to download the headless virtual box using wget.

$ wget https://download.virtualbox.org/virtualbox/6.1.16/virtualbox-6.1_6.1.16-140961~Ubuntu~eoan_amd64.deb

 

Once the deb file gets downloaded, install it using the dpkg tool, as shown below.

$ sudo dpkg -i *.deb

 

Using the command below, you must also add the current user to the vboxusers group.

$ sudo dpkg -i *.deb

 

Restart the server to ensure the new group gets recognized.

Next, install the extension pack for the virtual box. For that, execute the command below.

$ wget https://download.virtualbox.org/virtualbox/6.1.16/Oracle_VM_VirtualBox_Extension_Pack-6.1.16.vbox-extpack

 

Once the extension pack is downloaded, you must install it using the virtual box manage, as shown below.

$ sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.1.16.vbox-extpack

 

The server side’s last step is configuring how the virtual box will accept connections from the client via the RemoteBox. Using an editor of choice, create a configuration file for the virtual box with the command below.

Next, add the below lines

VBOXWEB_USER=user
VBOXWEB_PASSWD=password
VBOXWEB_TIMEOUT=0
VBOXWEB_HOST=server

 
Where:

User – The username for the vboxusers group.

Password – The password to be used for the connection.

Server – the IP address for your server.

That’s it for the server. Let’s configure the client.

2. Installing RemoteBox on Client

The RemoteBox must be installed on the client’s machine. So, start by downloading it using the command below.

$ wget http://remotebox.knobgoblin.org.uk/downloads/RemoteBox-2.7.tar.bz2

 

Once you’ve downloaded it, uncompress it using bunzip2.

$ bunzip2 RemoteBox-2.7.tar.bz2

 

Next, use tar to unpack it

$ tar xvf RemoteBox-2.7.tar

 

Navigate into the RemoteBox directory and run it using the command below.

$ cd RemoteBox-2.7
$ ./remotebox

 

Once it starts, you should get a window like the one below.


That’s it. You can now enter the credentials for your server to connect to your headless virtual box on it. You can manage your virtual machines from there, including creating new ones, editing them, and deleting them.

Conclusion

Managing your virtual machines on your server shouldn’t trouble you provided you have RemoteBox on your client machine. We’ve seen the steps to follow to manage your virtual machines using RemoteBox on Ubuntu 22.04 remotely. Hopefully, you managed to follow along.

About the author

Denis Kariuki

Denis is a Computer Scientist with a passion for Networking and Cyber Security. I love the terminal, and using Linux is a hobby. I am passionate about sharing tips and ideas about Linux and computing.