Re: [Qemu-discuss] [Qemu-devel] [QGA] Bug of qga?

2017-09-12 Thread Sameeh Jubran
; >> Hi all, >> >> I could repeat it, host os and guest os is Centos-7, qemu-ga is alive in >> guest. the step to repeat it is: >> >> 1. run python script just like the first email. >> 2. send qmp command1(cmd in the python script, like `route -n` command or &

Re: [Qemu-discuss] [Qemu-devel] [QGA] Bug of qga?

2017-08-29 Thread Sameeh Jubran
>> sock.settimeout(20) > >>>> sock.connect(vm_qga_sockpath) > >>>> sock.send(cmd) > >>>> while True: > >>>> res = sock.recv(1024) > >>>> if len(res): > >>>> break > >>>> except Exception as e: > >>>> res = -1 > >>>> finally: > >>>> sock.settimeout(None) > >>>> sock.close() > >>> > >>> > >> > > > -- Respectfully, *Sameeh Jubran* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>* *Software Engineer @ Daynix <http://www.daynix.com>.*

Re: [Qemu-discuss] [Qemu-devel] Why I got "timeout" while using qga socket to connect VM?

2017-08-23 Thread Sameeh Jubran
qga.sock,server,nowait,id= > qga0 > >>> -device virtio-serial -device virtserialport,chardev=qga0,na > >>> me=org.qemu.guest_agent.0 > >> > >> > >> But When I use socat to send command (https://wiki.qemu.org/Feature > >> s/GuestAgent), it blocked. Why and how to fix this? Thank you~ > >> > > > > > -- Respectfully, *Sameeh Jubran* *Linkedin <https://il.linkedin.com/pub/sameeh-jubran/87/747/a8a>* *Software Engineer @ Daynix <http://www.daynix.com>.*