1. I created a virtual machine and add channel:
<channel type='unix'>
<source mode='bind' path='/var/lib/libvirt/qemu/r-22-VM.agent'/>
<target type='virtio' name='r-22-VM.vport'/>
<address type='virtio-serial' controller='0' bus='0' port='1'/>
</channel>
2. Use scripts,run this scripts is no error output
#!/usr/bin/python
import socket
s=socket.socket(socket.AF_UNIX,socket.SOCK_STREAM)
s.connect("/var/lib/libvirt/qemu/r-22-VM.agent")
s.send("test\n")
s.close
3. But i not read date in vm device /dev/vport0p1 (vm is run)
My version, libvirt: 1.2.13.1 qmeu: 2.3.0 system: centos 6.5
This test in libvirt 1.0.5.7 qemu 1.5.3 is success.
Please help , thanks