[libvirt-users] Use virtio channel send data to vm fail
2020human
human2020 at qq.com
Thu Jun 18 06:46:50 UTC 2015
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20150618/a26134b4/attachment.htm>
More information about the libvirt-users
mailing list