# Virtualize SQL Server with KVM

> Install KVM and libvirt on Debian or Ubuntu, enable the service and add your user to the libvirt and kvm groups, before virtualizing SQL Server.
>
> Source : https://www.pachadata.com/en/docs/howtos/linux/kvm/
> Author : Rudi Bruchez · updated 2026-10-14
> Markdown version of the page, for tools and LLMs. The HTML page is the reference.


## Installing KVM on Debian/Ubuntu

```bash
sudo apt update
sudo apt install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager
```

```bash
sudo systemctl enable --now libvirtd
```

Add your user to the `libvirt` and `kvm` groups:

```bash
sudo usermod -aG libvirt $USER
sudo usermod -aG kvm $USER
```

Log out and back in to apply the change.


---

## About the author

Rudi Bruchez, independent SQL Server consultant since 2006: performance audits, tuning, migrations, high availability and training. For an audit or hands-on help on your server: https://www.pachadata.com/en/contact/ (remote audit: https://www.pachadata.com/en/services/remote-sql-server-audit/).
