QEMU/KVM and virt-manager

Debian wiki page

QEMU/KVM is a full virtualisation solution supported by Linux via a kernel module. virt-manager is a gui tool to easily create and manage virtual machines using QEMU/KVM.

Create and run a machine

Just launch the virtual-manager gui.

QEMU/KVM has a concept of "sessions", which are groups of virtual machines. The "QEMU/KVM user session" contains only machines of the current user, the "QEMU/KVM (session:///system)" contains the machine of the whole system (as if root were running the commands) and allows for more configuration (e.g. network interface creation and configuration).

Clipboard share between host and guest

On a Debian guest with Debian host combo, just installing the spice-vdagent package in the guest and then rebooting it works for bidirectional sharing of clipboard.

Otherwise, connecting to the machine using ssh is a good solution

Share folders between host and guest

Have multiple disk images share the same base

In order to save space, a machine disk can be created which is based on another disk. This uses the qcow2 (Copy On Write) format: only the differing sectors are written to the new file.

Virtualbox

Debian wiki instructions

Install from debian repository

This guide is for debian 9.

Install from virtualbox repository

See Install packages not in repository.

This guide is for debian 9.

Download package from official site

Disable virtualbox services

During setup, virtualbox sets its services to be enabled to automatically start at boot time. To disable this, run

If you do this, in order to use virtualbox you must first execute: