Feist Virtual Machines

Oct 29, 2023

This Feist sub-guide describes the steps necessary to make the computer a VM host.

The VM host will be used to run the following virtual machines:

  • Paolini: Describes the setup of paolini, which is a Windows Vista guest virtual machine used on Karl’s primary desktop.

Selecting a VM Technology

In the past, I’ve primarily used VirtualBox to host virtual machines. I’ve also recently had a bit of experience with kvm. While VirtualBox was pleasantly simple to use, I’ve had issues with guest stability using it in the past. In addition, kvm seems to be the most commonly recommended technology on Linux these days. It also seems to be easier to automate. Accordingly, I’ve opted to use kvm on this computer.

Installing kvm

References:

Run the following command to install kvm and related utilities:

# sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder virtinst bridge-utils virt-viewer

The apt-cache show <package-name> command can be used to view the description of each of those packages.

After installation, you will need to log off and log back in to your user account before proceeding. This is necessary as the installation create a new libvirtd group that your user has been added to, but group membership is only updated on login. Run the groups command to view a list of the groups that your user is a member of.

Managing VMs

References:

When possible, I recommend using the command line to manage virtual machines. It’s faster (once you learn what you’re doing) and much easier to document. However, the virt-manager GUI made that learning process much easier for me. You can install it by running the following command:

# apt-get install virt-manager