All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Why I got "timeout" while using qga socket to connect VM?
@ 2017-08-22  9:54 Sam
  2017-08-22 10:00 ` Sam
  0 siblings, 1 reply; 4+ messages in thread
From: Sam @ 2017-08-22  9:54 UTC (permalink / raw)
  To: qemu-devel

Hi all,

I start VM using command like this:

-chardev socket,path=/home/gangyewei-3/kvm/qga.sock,server,nowait,id=qga0
> -device virtio-serial -device
> virtserialport,chardev=qga0,name=org.qemu.guest_agent.0


But When I use socat to send command (
https://wiki.qemu.org/Features/GuestAgent), it blocked. Why and how to fix
this? Thank you~

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Why I got "timeout" while using qga socket to connect VM?
  2017-08-22  9:54 [Qemu-devel] Why I got "timeout" while using qga socket to connect VM? Sam
@ 2017-08-22 10:00 ` Sam
  2017-08-23  2:34   ` Sam
  0 siblings, 1 reply; 4+ messages in thread
From: Sam @ 2017-08-22 10:00 UTC (permalink / raw)
  To: qemu-devel

whole command is :

/usr/local/kvm/bin/qemu-system-x86_64 -smp 4 -m 4096 -enable-kvm
> /home/gangyewei-3/kvm/centos6.6_2.img -cdrom
> /home/gangyewei-3/kvm/CentOS-7-x86_64-DVD-1503-01.iso -daemonize -vnc
> 0.0.0.0:2520 -chardev
> socket,id=char-client-07-1,path=/usr/local/var/run/openvswitch/client-07-1,server=on
> -netdev type=vhost-user,id=client-07-1,chardev=char-client-07-1 -device
> virtio-net-pci,mac=00:00:af:07:03:02,netdev=client-07-1 -object
> memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge/,share=on -numa
> node,memdev=mem -mem-prealloc -chardev
> socket,path=/home/gangyewei-3/kvm/qga.sock,server,nowait,id=qga0 -device
> virtio-serial -device
> virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -incoming tcp:0:4444


2017-08-22 17:54 GMT+08:00 Sam <batmanustc@gmail.com>:

> Hi all,
>
> I start VM using command like this:
>
> -chardev socket,path=/home/gangyewei-3/kvm/qga.sock,server,nowait,id=qga0
>> -device virtio-serial -device virtserialport,chardev=qga0,
>> name=org.qemu.guest_agent.0
>
>
> But When I use socat to send command (https://wiki.qemu.org/
> Features/GuestAgent), it blocked. Why and how to fix this? Thank you~
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Why I got "timeout" while using qga socket to connect VM?
  2017-08-22 10:00 ` Sam
@ 2017-08-23  2:34   ` Sam
  2017-08-23 11:10     ` Sameeh Jubran
  0 siblings, 1 reply; 4+ messages in thread
From: Sam @ 2017-08-23  2:34 UTC (permalink / raw)
  To: qemu-devel, qemu-discuss

Hi all,

I start VM using command like this:

-chardev socket,path=/home/gangyewei-3/kvm/qga.sock,server,nowait,id=qga0
> -device virtio-serial -device virtserialport,chardev=qga0,
> name=org.qemu.guest_agent.0


But When I use socat to send command (https://wiki.qemu.org/
Features/GuestAgent), it blocked. Why and how to fix this? Thank you~

whole command is :

/usr/local/kvm/bin/qemu-system-x86_64 -smp 4 -m 4096 -enable-kvm
> /home/gangyewei-3/kvm/centos6.6_2.img -cdrom /home/gangyewei-3/kvm/CentOS-7-x86_64-DVD-1503-01.iso
> -daemonize -vnc 0.0.0.0:2520 -chardev socket,id=char-client-07-1,
> path=/usr/local/var/run/openvswitch/client-07-1,server=on -netdev
> type=vhost-user,id=client-07-1,chardev=char-client-07-1 -device
> virtio-net-pci,mac=00:00:af:07:03:02,netdev=client-07-1 -object
> memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge/,share=on -numa
> node,memdev=mem -mem-prealloc -chardev socket,path=/home/gangyewei-3/
> kvm/qga.sock,server,nowait,id=qga0 -device virtio-serial -device
> virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -incoming
> tcp:0:4444



2017-08-22 18:00 GMT+08:00 Sam <batmanustc@gmail.com>:

> whole command is :
>
> /usr/local/kvm/bin/qemu-system-x86_64 -smp 4 -m 4096 -enable-kvm
>> /home/gangyewei-3/kvm/centos6.6_2.img -cdrom
>> /home/gangyewei-3/kvm/CentOS-7-x86_64-DVD-1503-01.iso -daemonize -vnc
>> 0.0.0.0:2520 -chardev socket,id=char-client-07-1,path=/usr/local/var/run/
>> openvswitch/client-07-1,server=on -netdev type=vhost-user,id=client-07-1,chardev=char-client-07-1
>> -device virtio-net-pci,mac=00:00:af:07:03:02,netdev=client-07-1 -object
>> memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge/,share=on -numa
>> node,memdev=mem -mem-prealloc -chardev socket,path=/home/gangyewei-3/
>> kvm/qga.sock,server,nowait,id=qga0 -device virtio-serial -device
>> virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -incoming
>> tcp:0:4444
>
>
> 2017-08-22 17:54 GMT+08:00 Sam <batmanustc@gmail.com>:
>
>> Hi all,
>>
>> I start VM using command like this:
>>
>> -chardev socket,path=/home/gangyewei-3/kvm/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~
>>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Qemu-devel] Why I got "timeout" while using qga socket to connect VM?
  2017-08-23  2:34   ` Sam
@ 2017-08-23 11:10     ` Sameeh Jubran
  0 siblings, 0 replies; 4+ messages in thread
From: Sameeh Jubran @ 2017-08-23 11:10 UTC (permalink / raw)
  To: Sam; +Cc: QEMU Developers, qemu-discuss

Hi Sam,

>From the command line I assume that you are running CentOS-7-x86_64, did
you install the guest agent on the VM? Can you see that it is running?

What do you mean by blocked?

On Wed, Aug 23, 2017 at 5:34 AM, Sam <batmanustc@gmail.com> wrote:

> Hi all,
>
> I start VM using command like this:
>
> -chardev socket,path=/home/gangyewei-3/kvm/qga.sock,server,nowait,id=qga0
> > -device virtio-serial -device virtserialport,chardev=qga0,
> > name=org.qemu.guest_agent.0
>
>
> But When I use socat to send command (https://wiki.qemu.org/
> Features/GuestAgent), it blocked. Why and how to fix this? Thank you~
>
> whole command is :
>
> /usr/local/kvm/bin/qemu-system-x86_64 -smp 4 -m 4096 -enable-kvm
> > /home/gangyewei-3/kvm/centos6.6_2.img -cdrom
> /home/gangyewei-3/kvm/CentOS-7-x86_64-DVD-1503-01.iso
> > -daemonize -vnc 0.0.0.0:2520 -chardev socket,id=char-client-07-1,
> > path=/usr/local/var/run/openvswitch/client-07-1,server=on -netdev
> > type=vhost-user,id=client-07-1,chardev=char-client-07-1 -device
> > virtio-net-pci,mac=00:00:af:07:03:02,netdev=client-07-1 -object
> > memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge/,share=on -numa
> > node,memdev=mem -mem-prealloc -chardev socket,path=/home/gangyewei-3/
> > kvm/qga.sock,server,nowait,id=qga0 -device virtio-serial -device
> > virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -incoming
> > tcp:0:4444
>
>
>
> 2017-08-22 18:00 GMT+08:00 Sam <batmanustc@gmail.com>:
>
> > whole command is :
> >
> > /usr/local/kvm/bin/qemu-system-x86_64 -smp 4 -m 4096 -enable-kvm
> >> /home/gangyewei-3/kvm/centos6.6_2.img -cdrom
> >> /home/gangyewei-3/kvm/CentOS-7-x86_64-DVD-1503-01.iso -daemonize -vnc
> >> 0.0.0.0:2520 -chardev socket,id=char-client-07-1,
> path=/usr/local/var/run/
> >> openvswitch/client-07-1,server=on -netdev type=vhost-user,id=client-07-
> 1,chardev=char-client-07-1
> >> -device virtio-net-pci,mac=00:00:af:07:03:02,netdev=client-07-1 -object
> >> memory-backend-file,id=mem,size=4096M,mem-path=/mnt/huge/,share=on
> -numa
> >> node,memdev=mem -mem-prealloc -chardev socket,path=/home/gangyewei-3/
> >> kvm/qga.sock,server,nowait,id=qga0 -device virtio-serial -device
> >> virtserialport,chardev=qga0,name=org.qemu.guest_agent.0 -incoming
> >> tcp:0:4444
> >
> >
> > 2017-08-22 17:54 GMT+08:00 Sam <batmanustc@gmail.com>:
> >
> >> Hi all,
> >>
> >> I start VM using command like this:
> >>
> >> -chardev socket,path=/home/gangyewei-3/kvm/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>.*

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-23 11:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-22  9:54 [Qemu-devel] Why I got "timeout" while using qga socket to connect VM? Sam
2017-08-22 10:00 ` Sam
2017-08-23  2:34   ` Sam
2017-08-23 11:10     ` Sameeh Jubran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.