Getting Started
-
7. Installing Libvirt
Now to Install Libvirt for Kali
Simply play:sudo apt install libvirt-clients libvirt-daemon-system bridge-utils ipxe-qemu libcacard0 libexecs1 libfdt1 libiscsi7 libnfs13 librbd1 libslirp0 libspice-server1 libusbredirparser1 libvdeplug2 libvirglrenderer1 ovmf
Following Kali Documentation about KVM related Packages:
- libvirt provides libvirtd which you need to administer qemu and kvm instances using libvirt
- bridge-utils provides a bridge from your network to the virtual machines
-
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