First check your Ubuntu version with lsb_release -a
command.
If not 20.04 you might experience some differences during follow this guide.
Yes, we want virt-manager
but it comes with bunch of dependencies. Stuff is related in the way shown in the diagram.
We start with installing virt-manager
itself.
sudo apt-get install virt-manager
Check if KVM can be used
$ kvm-ok// OUTPUT
INFO: /dev/kvm exists
KVM acceleration can be used
Then go with bunch of stuff
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
Add yourself to the group libvert
, kvm
and you need libvirt
group to be exist in the system.
This can be done earlier if you install stuff like Virtual box or VMWare.
sudo adduser `id -un` libvirt
sudo adduser `id -un` kvm
newgrp libvirt
This will make the permission pass because things fall into the same group.
There should print out the table with no data.
virsh list --all
Then start the virt-manager
virt-manager
Then you go to
Here we go, we have the first VM up and running !
Hope this helps. Cheers !
If you want to learn more, checkout this link:
https://developers.redhat.com/blog/2015/03/24/live-migrating-qemu-kvm-virtual-machines/