Search

Language:  

Available article translations:

How to install QEmu KVM with libvirt on CentOS 7 machine

APPLIES TO:
  • Parallels Remote Application Server 16.2

Information

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
    

    alttext

    yum install qemu-kvm-ev
    

    alttext

    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:https://lists.centos.org/pipermail/centos-announce/2015-October/021445.html

    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 https://www.parallels.com/products/ras/download/links/

    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:

    alttext

  3. Add VDI Host to the RAS Farm:

    alttext

  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 https://fedoraproject.org/wiki/Windows_Virtio_Drivers inside Guest VM.

2) setup Virtio channel in Guest VM: https://wiki.libvirt.org/page/Qemu_guest_agent

3) Install QEmu agent from https://fedoraproject.org/wiki/Windows_Virtio_Drivers 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":"10.225.12.87","prefix":24}],"hardware-address":"52:54:00:b8:bb:79"},{"name":"Local Area Connection","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"192.168.122.37","prefix":24}],"hardware-address":"52:54:00:b8:9c:18"},{"name":"MS TCP Loopback interface","ip-addresses":[{"ip-address-type":"ipv4","ip-address":"127.0.0.1","prefix":-1}]}]}



1d70d1f9c41d01c5f7202a4290e434e1 8c1bd7ac0efc8c4ffbb530ad3ab16fae

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No