How to install QEmu KVM with libvirt on CentOS 7 machine

5 users found this article helpful


This article describes how to install and use QEmu KVM with libvirt stack on CentOS machine.

  1. On the CentOS 7 machine open Terminal and execute the commands:

    yum install centos-release-qemu-ev
    yum install qemu-kvm-ev

    NOTE: On CentOS 7 default qemu-kvm does not provide block job functionality so it is required to install qemu-kvm-ev as described above. Further information available here:

    yum install virt-manager
  2. Now you can add this VDI Host to your RAS Farm you muat deploy RAS VDI Agent as virtual machine:

    a) Download and install a virtual appliance from

    b) On the download page, scroll down to the "VDI Agent Appliances" section and click the VDI Agent Appliance VMDK link to download the appliance.

    c) After downloading the virtual appliance, you need to deploy it on a hypervisor. For the information about deploying a virtual appliance, please refer to your hypervisor documentation.

    NOTE: Current implementation supports only disks of file type (i.e. disks which content is stored in image files of qcow2 type). You can conver VMDK to QCOW2 using the command below:

    qemu-img convert -c -p -O qcow2 vmname.vmdk vmname.qcow2

    d) Once converted, please add it as new virtual machine:

  3. Add VDI Host to the RAS Farm:

  4. Noц you can create RAS Template and publish resources from the VDI Host.

Important information

It is not possible to get guest IP without QEmu guest agent/drivers installed, to resolve it:

1) Install virtio drivers from inside Guest VM.

2) setup Virtio channel in Guest VM:

3) Install QEmu agent from inside guest, check that command is supported issuing command like

    [root@user-kvm dom]# virsh qemu-agent-command winxp '{"execute":"guest-network-get-interfaces"}'

    {"return":[{"name":"Local Area Connection 2","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"","prefix":24}],"hardware-address":"52:54:00:b8:bb:79"},{"name":"Local Area Connection","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"","prefix":24}],"hardware-address":"52:54:00:b8:9c:18"},{"name":"MS TCP Loopback interface","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"","prefix":-1}]}]}

Was this article helpful?

Tell us how we can improve it.