Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
10.2.2. Setting up Communication between Guest Agent and Host
Note
Procedure 10.1. Setting up communication between guest agent and host
Open the guest XML
Open the guest XML with the QEMU guest agent configuration. You will need the guest name to open the file. Use the command# virsh list
on the host machine to list the guests that it can recognize. In this example, the guest's name is rhel6:#
virsh edit rhel6
Edit the guest XML file
Add the following elements to the XML file and save the changes.<channel type='unix'> <source mode='bind' path='/var/lib/libvirt/qemu/rhel6.agent'/> <target type='virtio' name='org.qemu.guest_agent.0'/> </channel>
Figure 10.1. Editing the guest XML to configure the QEMU guest agent
Start the QEMU guest agent in the guest
Download and install the guest agent in the guest virtual machine usingyum install qemu-guest-agent
if you have not done so already. Once installed, start the service as follows:#
service start qemu-guest-agent