With all the unique features offered by different server operating systems, choosing an OS becomes a complicated decision when you want to build a home lab. For a no-nonsense setup, you could go with the community-favorite Proxmox for a casual setup. Or you can pick a Xen-powered production-tier OS like XCP-ng. For tinkerers with overkill servers, you might be tempted to give the demanding Harvester operating system a shot.
However, it’s just as easy to build a home lab with a Type-2 hypervisor like VirtualBox. While it might be rather restricted in the performance and functionality fronts, a server centered around VirtualBox is great for beginners who don’t want to deal with daunting bare-metal virtualization platforms. You aren’t limited in the projects department either, as here are four cool things you can do with your VirtualBox lab.
Setting up a home lab? Check out these 5 incredible operating systems
Versatile and powerful, these 5 operating systems can push your home server's capabilities to the next level
4 Master the art of self-hosting services
Docker? K8s? Yup, you can run 'em all!
Self-hosting and home labs go hand-in-hand. After all, the virtual machines provisioned on your server are perfect for deploying your favorite apps and services inside containers. But if you’re new to managing containerized environments, VirtualBox can offer some hands-on experience with self-hosting tasks.
So long as you’ve got a somewhat modern system, you can deploy a Linux VM or two on your VirtualBox and use it to play with docker-compose.yml files and CLI commands. Heck, you don’t even have to restrict yourself to Docker! Containerd and Podman are efficient container runtime environments, while Buildah is great at helping you build OCI-based images. If you want to go deeper into the container management rabbit hole, you can set up Kubernetes and Docker Swarm on your VirtualBox VMs.
25 essential commands every Docker user should know
Docker's command-line interface may seem intimidating, but these commands can help you master it in no time!
3 Tinker with macOS and Linux distros
No OS shall escape your reach
Despite its intuitive UI, highly-integrated ecosystem, and feature-laden app suite, macOS’ biggest drawback is that it’s restricted to Apple’s proprietary hardware. Or at least, that’s supposed to be the case, were it not for certain tweaks that let you run macOS inside virtualization environments. Like its Type-1 counterparts, VirtualBox also lets you set up macOS VMs – though the situation is a bit trickier as you may need to run a handful of Powershell scripts depending on your specific CPU manufacturer.
Meanwhile, distro-hopping remains one of the most popular use cases for hypervisors. With a staggering number of distributions within the Linux ecosystem, VirtualBox allows you to test different operating systems without requiring you to set up dual boot or configure a bare-metal installation.
2 Clone your current PC into a VM
A virtual version of your PC within your PC
Running unique Linux distributions on your system has its perks, but nothing beats the fun of deploying a virtual instance of your daily driver inside a Type-2 hypervisor. It’s also surprisingly easy to do so, as all you have to do is create a backup of your necessary drives using Disk2vhd and use it as a VHD for a VirtualBox VM.
As for the use-case, well, there are a couple of reasons you might want to try out this wacky project. If you’ve ever wanted to experiment with the files and system settings of your primary system, you can let your intrusive thoughts run wild inside its virtual instance. In case you need to switch over to a new operating system, you can use the virtualized instance of your previous OS inside VirtualBox until you get familiar with your new computing environment.
1 Test Type-1 hypervisors
With the power of nested virtualization
Thanks to their superior performance, better isolation, and robust features, Type-1 hypervisors and bare-metal virtualization are unrivaled when it comes to building a home lab. However, even the simplest home lab operating systems can be difficult to get into when you're a beginner.
As unhinged as it may sound, you can familiarize yourself with Proxmox, SmartOS, and a slew of other home lab distros by running them on your VirtualBox machine. Sure, the setup process can be a bit tricky, especially on Windows 11, where you need to execute some Powershell commands and disable certain settings just to get nested virtualization working. Nevertheless, it’s still a fun project to try out new bare-metal hypervisors, especially when you don’t have a spare rig to experiment with.
Building wacky projects with Type-2 hypervisors
As someone who got into self-hosting by running CasaOS inside a VM on VirtualBox, I must admit that Type-2 hypervisors aren’t as bad as hardcore home lab owners make them out to be. Assuming you’re not concerned with professional self-hosting workloads involving PCI passthrough, enhanced security, high-availability measures, and other advanced workloads, a hypervisor running on top of your daily driver can provide decent results.
Heck, you don’t even need to stick to VirtualBox now that VMware offers Workstation Pro free of charge. The performance-heavy nature of its rival is hard to ignore, and you shouldn’t encounter any issues building the projects I've mentioned so far inside Workstation Pro VMs.
VirtualBox vs VMware Workstation Pro: Which Type-2 hypervisor should you use?
Can Workstation Pro dethrone VirtualBox and become the king of free hypervisors?
