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 <batmanu...@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 <batmanu...@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~ >> > >