;
>> 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
&
>> 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>.*
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>.*