Skip to content

KVM

Integration

Client

To improve client integration in linux os like gnome boxes or virt-manager.

Bash
# Debian, Ubuntu
sudo apt install spice-gtk 
# Fedora
sudo dnf install spice-gtk

Host

To increase integration on the host like paper cliboard sharing or dynamic screen resolution.

Bash
# Debian, Ubuntu
sudo apt install spice-vdagent
# Fedora
sudo dnf install spice-vdagent

Install KVM/QEMU

Test on debian 11

Bash
# Install KVM and tooling
sudo apt install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system dnsmasq netcat -y
sudo usermod -a -G libvirt <user>

# Activating routing 
sudo sysctl -w net.ipv4.ip_forward=1

# Reboot to activate libvirt and reload sysctl
sudo reboot now

# Start the default network
sudo virsh net-start default
# Enable auto start of the default network
sudo virsh net-autostart --network default

Now you can connect to your serer with virt-manager to manage and interact with a GUI.

Sources