Page 1 of 1

what is KVM and how to install it

Posted: Tue May 19, 2015 10:20 am
by madisonwilliams574
Hello, do you know what is KVM and how to install it?

Re: what is KVM and how to install it

Posted: Sat May 23, 2015 9:06 am
by margueritealice
KVM (Kernel-based Virtual Machine) is a virtualization technology that allows you to run multiple operating systems, including multiple instances of the same operating system, concurrently on the same physical computer and it supports all major operating systems including Linux and Windows.
Install KVM Packages
Install KVM packages using your distro specific package management tool (for example, yum on RedHat and CentOS).
# yum install kvm
Once you install the main kvm package, install the following KVM related packages that will help you to manage the VMs on your system.
# yum install qemu-kvm python-virtinst libvirt libvirt-python virt-manager libguestfs-tools
The following are the KVM related packages that are installed on my machine. The version number on your system might vary slightly.
# rpm -qa | egrep "virt|kvm|qemu"
python-virtinst-0.600.0-18.el6.noarch
qemu-img-0.12.1.2-2.415.el6.x86_64
libvirt-0.10.2-29.el6.x86_64
virt-viewer-0.5.6-8.el6.x86_64
qemu-kvm-0.12.1.2-2.415.el6.x86_64
libvirt-python-0.10.2-29.el6.x86_64
virt-manager-0.9.0-19.el6.x86_64
virt-top-1.0.4-3.15.el6.x86_64
libvirt-client-0.10.2-29.el6.x86_64
gpxe-roms-qemu-0.9.7-6.10.el6.noarch
virt-what-1.11-1.2.el6.x86_64
After the packages are installed, it is recommended to reboot your machine to load all the KVM and libvirt modules, even though you can reload it using modprobe command.

Re: what is KVM and how to install it

Posted: Thu Jun 11, 2015 3:07 pm
by matildaward113
A kernel-based virtual machine (KVM) is a virtualization infrastructure built for Linux OS and designed to operate on x86-based processor architecture.

Let us start with KVM hypervisor installed in Redhat/Fedora/CentOS Linux operating system.

Step1: Before installing KVM (Kernel Virtual machine) hypervisor we have check if our hardware support or not.

Step2: If the hardware supports, install KVM virtualization with following command as a normal user.
sudo yum install qemu-kvm virt-install virt-manager libvirt*

Step3: Confirm if libvirtd service is started or not.
ps -ef | grep libvirtd

Step4(optional step): If libvirtd service is not at started use below command -d option so that it will start as daemon.
sudo service libvirtd start
sudo chkconfig libvirtd on


Step5: Once the service is started we can run virt-manager command to start virtual machine manager as a normal user. It will ask for root password, provide it.
virt-manager

Once if you see virtual machine manager without any error that shows KVM hypervisor installed successfully.