qemu-discuss
[Top][All Lists]
Advanced

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

[Qemu-discuss] Use virtio channel send data to vm fail


From: 2020human
Subject: [Qemu-discuss] Use virtio channel send data to vm fail
Date: Tue, 23 Jun 2015 17:41:57 +0800

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(qemu 2.1.3 is fail).

Please help , thanks



reply via email to

[Prev in Thread] Current Thread [Next in Thread]