Virtualization with KVM: virt-manager
Posted: Oct 9th, '17, 08:33
The virt-manager tool to manage KVM virtual machines is maybe not winning a price for his graphical design, it's a very useful and powerful piece of software.
To install it:
It will automatically pull all dependencies such as qemu-kvm
After that you have to enable the libvirt daemon at boot time:
Start this daemon with:
As a normal user you don't have the right permissions to do anything, and it's difficult to get them.
First add yourself to the kvm group:
and create a file /etc/polkit-1/rules.d/50-libvirt.rules with the following content:
Logout, and you are ready to create virtual machines
To install it:
- Code: Select all
sudo dnf install virt-manager
It will automatically pull all dependencies such as qemu-kvm
After that you have to enable the libvirt daemon at boot time:
- Code: Select all
sudo systemctl enable libvirtd
Start this daemon with:
- Code: Select all
sudo systemctl start libvirtd
As a normal user you don't have the right permissions to do anything, and it's difficult to get them.
First add yourself to the kvm group:
- Code: Select all
usermod -aG kvm <user name>
and create a file /etc/polkit-1/rules.d/50-libvirt.rules with the following content:
- Code: Select all
/* Allow users in kvm group to manage the libvirt
daemon without authentication */
polkit.addRule(function(action, subject) {
if (action.id == "org.libvirt.unix.manage" &&
subject.isInGroup("kvm")) {
return polkit.Result.YES;
}
});
Logout, and you are ready to create virtual machines