Getting Started
-
7. Installing Libvirt
Now to Install Libvirt for CentOS
Simply play:sudo dnf install libvirt libvirt-client libvirt-daemon libvirt-daemon-kvm libvirt-daemon-qemu bridge-utils edk2-ovmf virt-manager
-
8. Adding User to Group
Next Add User to libvirt Group
First, you need to Make the Group:sudo addgroup libvirtd
And then Add User with:
sudo adduser `id -un` libvirtd
This because only the Users of this Group can Run Virtual Machines.
Then Relogin to Enable this Setup! -
9. Verifing KVM Installation
Finally, Test Installation.
Simply performing:
virsh list --all
And in the Output you should find:
Id Name State ----------------------------------------------------
This because still no VMs has been made.
-
10. Starting Libvirt Daemon
Again to Start Libvirtd Daemon.
sudo service libvirtd start
And to Enable it on Boot:
sudo update-rc.d libvirtd enable
-
11. Creating and Running KVM VMs
KVM Virtualization Getting-Started Guide
Contents