Let's say you want to compartmentalize your digital life. How do you get started?
This tutorial will cover using Virtualbox to create containers, or qubes, which you can isolate your digital activities in.
We'll use Ubuntu as the Host and Guest for this tutorial, but in theory you can use any operating system you'd like. You can obtain an Ubuntu ISO from the Ubuntu downloads page.
Installing Virtualbox
To install Virtualbox on Ubuntu, you can run sudo apt install virtualbox
. After the command completes, you should have desktop launchers which you can use to launch the Virtualbox console.
Creating a new virtual machine
Next, we can create a new virtual machine:
- Launch the VirtualBox Manager
- Click the New button
- Name your VM "Ubuntu - Base", and select "Type: Linux" and "Version: Ubuntu (64-bit)"
- Click "Expert Mode"
- Allocate at least 4096MB of memory to have a smooth running VM
- Select "Create a virtual hard disk now"
- Click "Create"
- Choose "Hard disk file type: VDI" and "Storage on physical hard disk: Dynamically allocated"
- Click "Create"
- Select your VM from the list and click "Start"
- Select the Ubuntu ISO file you've downloaded and boot from the ISO
- Follow the installation procedure to install your Ubuntu virtual machine
Cloning the virtual machine
Now that we have a fresh installation, you'll want to clone your virtual machine:
- Launch the VirtualBox Manager
- Select "Ubuntu" from the list and click "Clone"
From the clone menu, let's create three clones:
- A "Full Clone" named "Ubuntu - Base (Backup)"
- A "Linked Clone" named "Ubuntu - Banking"
- A "Linked Clone" named "Ubuntu - Untrusted"
What are these clones for?
The Full Clone "Ubuntu - Base (Backup)" is a full backup of the virtual machine. This is just in case you ever want a fresh install of Ubuntu. If you'd rather repeat the entire process above (downloading the ISO, installing, etc.) then you can skip this full clone and save the disk space.
The Linked Clones are what you'll actually run. Both "Ubuntu - Banking" and "Ubuntu - Untrusted" are based on "Ubuntu - Base". They have their own virtual hard disks which only record the differences since they were cloned from "Ubuntu - Base". What's the advantage? They use much less disk space, but they are completely isolated.
Living in Virtual Machines
Now that you've installed your containers, you should get used to living in virtual machines. Decide how you want to compartmentalize your digital life. Perform as few actions as possible on your host operating system, to prevent compromise.