4d1029dbdb
- Theory assignments - Notes - Practical - Question Papers - DISCLAIMER and motto files Lastly, updated README. Stored using LFS: - Practical/Assignment-1/AWS EC2 - User Guide.pdf - Practical/Assignment-3/Bank-App-Demo.mp4 - Practical/Assignment-3/Demo-3.mp4 - Practical/Assignment-3/Salesforce Apex - Reference Guide.pdf
1.6 KiB
1.6 KiB
Steps to install KVM
- Check if virtualization is enabled.
cat /proc/cpuinfo | grep -Ec '(vmx|svm)'
In this command, we are printing the contents of /proc/cpuinfo, then using grep for pattern matching. vmx is the name for Intel's virtualization and svm is AMD's. If the output is 0, virtualization is disabled in BIOS, otherwise it's on.
- Install required packages
sudo apt install -y qemu-kvm virt-manager libvirt-daemon-system virtinst libvirt-clients
- qemu-kvm – An opensource emulator and virtualization package that provides hardware emulation.
- virt-manager – A Qt-based graphical interface for managing virtual machines via the libvirt daemon.
- libvirt-daemon-system – A package that provides configuration files required to run the libvirt daemon.
- virtinst – A set of command-line utilities for provisioning and modifying virtual machines.
- libvirt-clients – A set of client-side libraries and APIs for managing and controlling virtual machines & hypervisors from the command line.
- Start and enable virtualization daemon
sudo systemctl enable libvirtd
sudo systemctl start libvirtd
sudo systemctl status libvirtd
Tip
After viewing status of the
libvirtdservice, pressqto exit out of the view.
- Add user to KVM and libvirt group
sudo usermod -aG kvm $USER
sudo usermod -aG libvirt $USER
-
Launch KVM Virtual Machine Manager from App Launcher.
-
QEMU/KVMshould show connecting followed by connected in the app. Now, you can launch as many virtual machines as you want!