`virt-manager` or *Virtual Machine Manager* is a frontend for managing virtual machines through *libvirt*. It primarily targets KVM virtual machines but is also capable of managing Xen and LXC. In this post we will focus on KVM.
libvirt ships with a default network profile. Here we enable it have it start automatically. This will allow the virtual machines to connect to the internet.
```bash
virsh net-start default
virsh net-autostart default
```
### Add yourself to necessary groups
Here you will add yourself to the necessary groups to avoid running as root every time you want to run a virtual machine. Replace `<user>` with normal user.
```bash
adduser <user> libvirt
adduser <user> libvirt-qemu
adduser <user> kvm
```
### Enable and start libvirt
Apt automatically enables and starts `libvirtd.service`. We do it again anyways.
```bash
systemctl enable libvirtd.service
systemctl restart libvirtd.service
```
Now you should be able to install and manage virtual machines through virt-manager.