Use virtio channel send data to vm fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux