Run VirtualBox virtual machine in background mode

by Daniel Pham
Published: Updated:

Run VirtualBox virtual machine in background mode. If you’ve ever used VMWare WorkStation, you probably already know that when you close the window of a virtual machine, you can choose to allow the virtual machine to run in the background.

How about VirtualBox? Is it possible to do? The answer is absolutely yes. Let’s see how we will do it.

VirtualBox and each virtual machine work on a window

On VMWare, you can start multiple virtual machines on the same window, the virtual machines will be located in many different tabs.

But with VirtualBox, every time you open a virtual machine, it will work on a separate window.

Imagine if you were using 10 virtual machines, you would have 10 separate windows. This is quite annoying to users.

Therefore, we can choose the solution for these virtual machines to run in the background. You will no longer see those 10 windows, instead you just need to look at a manager window.

Start the virtual machine in Headless mode

Headless in VirtualBox, or more precisely, VBoxHeadless. It is designed to be able to create and start virtual machines in a non-graphical environment like servers.

In a personal computer environment, you can take advantage of it to allow running virtual machines without exporting any graphic interface. In other words, we are letting these virtual machines run in the background.

To start a virtual machine in Headless mode, at the manager window, select the virtual machine to start.

And then, click on the arrow next to the Start button and select Headless Start as image below.

Run VirtualBox virtual machine in background mode

Look at the manager window, you can see that the virtual machine goes into Running mode, but no console window of the virtual machine appears.

Now try ssh or remote desktop into the virtual machine, it will still work normally.

You can even turn off the manager window of VirtualBox and the virtual machine will still work.

Conclusion

This is a feature that can be said that quite a few people talk about using VirtualBox. But conversely, it brings a lot of utilities. Especially when you work with multiple virtual machines at the same time.

(This is an article from my old blog that has been inactive for a long time, I don’t want to throw it away so I will keep it and hope it helps someone).

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

DevOps Lite is a personal blog specializing in technology with main topics about DevOps, DevSecOps, SRE and System Administrator. Articles are shared for free and contributed to the community.

SUPPORT US

FOLLOW US

Subscribe my Newsletter for new blog posts. Stay updated from your inbox!

© 2021-2024 DevOpsLite.com – All rights reserved.

Please write sources “DevOpsLite.com” when using articles from this website.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

0
Would love your thoughts, please comment.x
()
x

Adblock Detected

Please support us by disabling your AdBlocker extension from your browsers for our website.