Files
RRC-Cybersecurity-Software-…/Software/VirtualMachineManager.md

4.7 KiB

Virtual Machine Manager

Virtual Machine Manager is a Hypervisor that is generally capable of everything VirtualBox or VMWare Workstation is, but with the benefit of built in support from the linux kernel. So no weird install processes involving kernel modules and the like.

Install

If your distribution has a Graphical software manager/store, you can likely search for Virtual Machine Manager and install it there.

NOTE: Some Windows VMs may require TPM, this will require the swtpm package to also be installed on your system. See the TPM section for details.

If not, or you wish to install it via command-line, see below:

Flatpak (universal)

If you wish to install through flatpak ensure flatpak is setup, see Flatpak for details if not.

flatpak install flathub org.virt_manager.virt-manager

Arch-based

sudo pacman -S virt-manager

Debian/Mint/Ubuntu

sudo apt update
sudo apt install virt-manager

Fedora

sudo dnf install virt-manager

Usage

Initial Setup

Before you can create a VM you need to connect to libvirt's QEMU/KVM module, which is installed along with virt-manager.

Select: File -> Add Connection...

Add Connection

Ensure Hypervisior is set to "QEMU/KVM", "Connect to remote" is unchecked and Autoconnect is checked. Then click "Connect"

Add Connection

Create new Virtual Machine

First download the desired .iso file, I recommend creating a folder somewhere to store your .iso files.

Click the Create VM Button:

New VM Button

Select "Local install media" and Forward:

VM Install Options

Select Browse:

Choose iso

If your iso folder is not in the list, click the add button:

Add Pool

Set a name for this location, such as "ISO Files", Click "Browse", navigate to the folder with your .iso and click "Open". Click "Finish" to create the pool.

Create Storage Pool

Select the ISO pool, if the pool looks empty, click the ▶︎ button. Then select your .iso file and click "Choose Volume".

Choose ISO

If the OS is not automatically detected, uncheck "Automatically detect" and search for it manually.

Select OS

Regardless, once the OS is selected, click Forward.

Set Memory and CPU allocation as desired.

You can set the storage size on the next page. However if you wish to install this VM in a different location, follow the below steps:

Select "Select or create custom storage" and click "Manage"

Custom Storage

Same as with adding a folder/pool for the .iso files, add a pool, give it a name, and select the location.

Add Pool

Create Storage Pool

In the desired pool, click the add button to create a volume.

Create Volume

Change the volume name if desired, set the capacity depending on the OS you're installing and click "Finish".

Create Volume

Make sure the volume is selected, and click "Choose Volume".

Make sure you are happy with the VM details and click "Finish". For Windows, you may want to check the option "Customize configuration before install" and remove or disable the NIC (Network Interface) to aid in bypassing Online Account registration.

Also see the TPM section below for Windows 11 installs

TPM

Windows 11, aside from the LTSC version, require TPM 2.0 to install, this can be emulated by swtpm.

Use your distribution's package manager to install swtpm.

  • When creating a Windows11 VM, a TPM device should now automatically be added.
  • For Already created VMs you can click Add Hardware on the Details page for the VM, select "TPM" and "Finish"

Add TPM

If there are any issues you can just install the LTSC version of windows, which as of this writing (March 2026) does not require TPM.

Honestly, I would recommend the LTSC version of Windows regardless as it provides all the same features, but is more resource and space efficient, due to the lack of unneeded applications being installed by default.

USB Device Passthrough

To pass a USB device through to a Virtual Machine, simply select "Redirect USB device" under Virtual Machine options.

Redirect USB

Now check the device you wish to passthrough and close. If you are not sure which device it is, unplug and re-plug it to see which device is added and removed from the list.