Ok guys problem solved....almost.
Let's see all the procedure.
First of all I create a group named kvm
and then I installed all the below packages
Code:
sudo apt install bridge-utils libvirt-bin qemu-kvm qemu-system
Next, make the root user and the kvm group the owner of the /var/lib/libvirt/images directory
Code:
sudo chown root:kvm /var/lib/libvirt/images
and also change the permition of the above file
Code:
sudo chmod g+rw /var/lib/libvirt/images
and I add my account to kvm group
Code:
sudo usermod -aG kvm charis
After all that I start the service
Code:
sudo systemctl start libvirtd
and check it's status
Code:
sudo systemctl status libvirtd
Once service is active and running I install some additional packages
Code:
sudo apt install ssh-askpass virt-manager
Last but no least I made some changes to the /etc/libvirt/libvirtd.conf file
Firstly I copy the original
Code:
sudo cp /etc/libvirt/libvirtd.conf /etc/libvirt/libvirtd.conf.orig
and then I change below lines
#unix_sock_group = "libvirtd"
to the following
#unix_sock_group = "kvm"
and this line
#unix_sock_ro_perms = "0777"
changed it to this:
#unix_sock_ro_perms = "0770"
and restart the serive
Code:
sudo systemctl restart libvirtd
Here I have to say that all the above are as per Jay LaCroix guide.
So once I tried to set up my first VM I had the above error as I mentioned on the first post.
Googling around I realised that the above packages were not enough for run qemu/kvm
So I also installed
Code:
sudo apt install uml-utilities
but didn't work for me, then I install
Code:
sudo apt install qemu-utils
But still the issue exist.
Next step I installed
Code:
sudo apt install ebtables && sudo apt install dnsmasqd
...and Miraculous issue solved but a new one came up
Code:
Error connecting to graphical console:
Error opening Spice console, SpiceClientGtk missing
Still googling I found that I have to download the below package
Code:
gir1.2-spiceclientgtk-3.0
This solve my last problem and finally I can set up my first VM
Now my VM can not connect to the internet, I am still searching for a solution, if anybody can help is welcome.
I hope the above guide to be helpful to anybody.