Received: from eggs.gnu.org ([208.118.235.92]:33559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SrFSv-0004UC-RD for qemu-devel@nongnu.org; Tue, 17 Jul 2012 17:37:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SrFSt-0004ol-M3 for qemu-devel@nongnu.org; Tue, 17 Jul 2012 17:37:57 -0400 Received: from nm4.bullet.mail.sp2.yahoo.com ([98.139.91.74]:42641) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SrFSt-0004ld-9C for qemu-devel@nongnu.org; Tue, 17 Jul 2012 17:37:55 -0400 References: <1342470253.18091.YahooMailNeo@web45313.mail.sp1.yahoo.com> <1342471759.98603.YahooMailNeo@web45308.mail.sp1.yahoo.com> <20120716213338.GB2880@illuin> Message-ID: <1342560893.70926.YahooMailNeo@web45307.mail.sp1.yahoo.com> Date: Tue, 17 Jul 2012 14:34:53 -0700 (PDT) From: desi babu In-Reply-To: <20120716213338.GB2880@illuin> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="27303875-1463293682-1342560893=:70926" Subject: Re: [Qemu-devel] Fw: Qemu-ga : Guest Agent : Win 2008-64bit not working Reply-To: desi babu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth Cc: "aliguori@us.ibm.com" , "qemu-devel@nongnu.org" --27303875-1463293682-1342560893=:70926 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2012 at 01:49:19PM -0700, desi babu wrote:=0A> Any pointers= for debugging ?.=0A=0A>> What version of the virtio-win drivers are you us= ing? More specifically,=0A=A0>> what's the name of the ISO/package you used= ? I'm not sure how=0A>> "Driver Date" maps to actual virto-win releases.=0A= =0AI tested with both=A0virtio-win-0.1-22.iso and=A0virtio-win-0.1-30.iso.= =0A=0A>>There is a test utility on the virtio-win ISO called "vioser-test.e= xe".=0A>>I'd recommend running that to confirm whether or not it's a qemu-g= a=0A>>issue.=A0=0A=A0=0ARunning vioser-test.exe reports error 5.=0A"Running= in non-blocking mode.=0ACannot find vioserial device \\?\{6FDE7547-1B65-48= AE-B628-80BE62016026}#VIOSERIALPORT#4&263E99FC&0&01#{6FDE7547-1B65-48AE-B62= 8-80BE62016026}, error =3D 5=0A=0ABefore you run it, attach something to th= e host-side socket to=0A=0A>>confirm you get the expected output from the t= est utility, such as=0A>>`nc -U /tmp/qemu-ga.w2008.0.sock`=0A=0Aecho "{'exe= cute':'guest-ping'}" | socat stdio unix-connect:/tmp/qemu-ga.w2008.0=0A-- n= o response.. I tried this with another linux server which has guest agent l= oaded and get the same no response.=0A=0A>> Also, any logs/output from the = QEMU process may provide some=A0clues as well.=0A=0AChecked the logs and fo= und nothing abnormal which is reported, following is the process list.=0A= =0ALC_ALL=3DC PATH=3D/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbi= n:/bin QEMU_AUDIO_DRV=3Dnone /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024= -smp 2,sockets=3D2,cores=3D1,threads=3D1 -name w2008 -uuid ef25aa07-8ff6-1= 0c1-ad3d-d8b0c7455ee0 -nodefconfig -nodefaults -chardev socket,id=3Dcharmon= itor,path=3D/var/lib/libvirt/qemu/w2008.monitor,server,nowait -mon chardev= =3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3Dutc -no-reboot -no-s= hutdown -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 -device = virtio-serial-pci,id=3Dvirtio-serial0,bus=3Dpci.0,addr=3D0x5 -drive file=3D= /opt/nfs2/windows2008r2.iso,if=3Dnone,id=3Ddrive-ide0-1-0,readonly=3Don,for= mat=3Draw -device ide-cd,bus=3Dide.1,unit=3D0,drive=3Ddrive-ide0-1-0,id=3Di= de0-1-0 -drive file=3D/opt/nfs2/virtio-win-0.1-30.iso,if=3Dnone,id=3Ddrive-= ide0-1-1,readonly=3Don,format=3Draw -device ide-cd,bus=3Dide.1,unit=3D1,dri= ve=3Ddrive-ide0-1-1,id=3Dide0-1-1 -drive file=3D/opt/nfs2/vm/w2008.qcow2,if= =3Dnone,id=3Ddrive-virtio-disk0,format=3Dqcow2,cache=3Dnone,aio=3Dnative -d= evice virtio-blk-pci,scsi=3Doff,bus=3Dpci.0,addr=3D0x8,drive=3Ddrive-virtio-disk= 0,id=3Dvirtio-disk0,bootindex=3D1 -netdev tap,fd=3D18,id=3Dhostnet0 -device= virtio-net-pci,netdev=3Dhostnet0,id=3Dnet0,mac=3D42:52:01:52:fa:3f,bus=3Dp= ci.0,addr=3D0x3 -chardev pty,id=3Dcharserial0 -device isa-serial,chardev=3D= charserial0,id=3Dserial0 -chardev socket,id=3Dcharchannel0,path=3D/tmp/qemu= -ga.w2008.0.sock,server,nowait -device virtserialport,bus=3Dvirtio-serial0.= 0,nr=3D1,chardev=3Dcharchannel0,id=3Dchannel0,name=3Dorg.qemu.guest_agent.0= -vnc 0.0.0.0:0 -vga cirrus -device virtio-balloon-pci,id=3Dballoon0,bus=3D= pci.0,addr=3D0x4=0A=0A=0A=A0Version info :=A0=0Alibvirt : 0.9.12-0ubuntu3= =0Aqemu-kvm :=A01.0+noroms-0ubuntu1=A0=0Alinux kernel :=A03.2.0-26-generic= =0A=0AThanks,=A0appreciate=A0your help.=0A> =0A> Thanks..=0A> =0A> ----- Fo= rwarded Message -----=0A> From: desi babu =0A> To: "qe= mu-devel@nongnu.org" =0A> Sent: Monday, July 16, 20= 12 3:24 PM=0A> Subject: Qemu-ga : Guest Agent : Win 2008-64bit not working= =0A>=A0 =0A> =0A> =0A> ________________________________=0A> =0A> Qemu Guest= Agent =A0on Windows 2008 is not able to connect to virtio-serial socket.= =0A> =0A> Windows Version : 2008 64 Bit=0A> =0A> VIRT-IO Serial Driver inst= alled in windows.=0A> Driver Provider : Redhat Inc.=0A> Driver Date : 61.63= .103.2200=0A> =0A> Libvirt Settings.=0A> =0A> =0A> = =0A> =A0 =A0 =A0 =A0=0A> =A0 =A0 =A0 =A0=0A> =A0 =A0 =A0 =A0
=0A> =A0=0A> =0A> =0A> Version : qemu-ga -V= =0A> QEMU Guest Agent 1.1.0=0A> =0A> qemu-ga.exe=0A> critical : error openi= ng path=0A> critical : error opening channel=0A> critical : failed to creat= e guest agent channel=0A> critical : failed to initialize guest agent chann= el.=0A> =0A> Any recommendations or debugging methods to verify vertio-seri= al ?=0A> =0A> Thanks in advance. --27303875-1463293682-1342560893=:70926 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
On= Mon, Jul 16, 2012 at 01:49:19PM -0700, desi babu wrote:
&g= t; Any pointers for debugging ?.

>> What version of the virtio= -win drivers are you using? More specifically,
 >> what's the= name of the ISO/package you used? I'm not sure how
>> "Driver Dat= e" maps to actual virto-win releases.

I tested with both virtio= -win-0.1-22.iso and virtio-win-0.1-30.iso.

>>There is a t= est utility on the virtio-win ISO called "vioser-test.exe".
>>I'd = recommend running that to confirm whether or not it's a qemu-ga
>>issue. 
 
Running vioser-test.exe reports error 5.
"Runni= ng in non-blocking mode.
Cannot find vioserial device = \\?\{6FDE7547-1B65-48= AE-B628-80BE62016026}#VIOSERIALPORT#4&263E99FC&0&01#{6FDE7547-1B65-48AE-B628-80B= E62016026}, error =3D 5

= Before you run it, attach something to the hos= t-side socket to
>>confirm you = get the expected output from the test utility, such as
>>`nc -U /tmp/qemu-ga.w2008.0.sock`

echo "{'exec= ute':'guest-ping'}" | socat stdio unix-connect:/tmp/qemu-ga.w2008.0
-- no response.. I tried this with another linux server which has guest = agent loaded and get the same no response.

>> Also, any logs/output from the QEMU process may provide = some clues as well.

Checked the logs and found nothing abnormal which is reported, follo= wing is the process list.

L= C_ALL=3DC PATH=3D/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/b= in QEMU_AUDIO_DRV=3Dnone /usr/bin/kvm -S -M pc-0.14 -enable-kvm -m 1024 -smp = 2,sockets=3D2,cores=3D1,threads=3D1 -name w2008 -uuid ef25aa07-8ff6-10c1-ad= 3d-d8b0c7455ee0 -nodefconfig -nodefaults -chardev socket,id=3Dcharmonitor,p= ath=3D/var/lib/libvirt/qemu/w2008.monitor,server,nowait -mon chardev=3Dchar= monitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3Dutc -no-reboot -no-shutdown= -device piix3-usb-uhci,id=3Dusb,bus=3Dpci.0,addr=3D0x1.0x2 -device virtio-= serial-pci,id=3Dvirtio-serial0,bus=3Dpci.0,addr=3D0x5 -drive file=3D/opt/nf= s2/windows2008r2.iso,if=3Dnone,id=3Ddrive-ide0-1-0,readonly=3Don,format=3Dr= aw -device ide-cd,bus=3Dide.1,unit=3D0,drive=3Ddrive-ide0-1-0,id=3Dide0-1-0= -drive file=3D/opt/nfs2/virtio-win-0.1-30.iso,if=3Dnone,id=3Ddrive-ide0-1-= 1,readonly=3Don,format=3Draw -device ide-cd,bus=3Dide.1,unit=3D1,drive=3Ddr= ive-ide0-1-1,id=3Dide0-1-1 -drive file=3D/opt/nfs2/vm/w2008.qcow2,if=3Dnone= ,id=3Ddrive-virtio-disk0,format=3Dqcow2,cache=3Dnone,aio=3Dnative -device virtio-blk-pci,scsi=3Doff,bus=3Dpci.0,addr=3D0x8,drive=3Ddrive-virtio-disk= 0,id=3Dvirtio-disk0,bootindex=3D1 -netdev tap,fd=3D18,id=3Dhostnet0 -device= virtio-net-pci,netdev=3Dhostnet0,id=3Dnet0,mac=3D42:52:01:52:fa:3f,bus=3Dp= ci.0,addr=3D0x3 -chardev pty,id=3Dcharserial0 -device isa-serial,chardev=3D= charserial0,id=3Dserial0 -chardev socket,id=3Dcharchannel0,path=3D/tmp/qemu= -ga.w2008.0.sock,server,nowait -device virtserialport,bus=3Dvirtio-serial0.= 0,nr=3D1,chardev=3Dcharchannel0,id=3Dchannel0,name=3Dorg.qemu.guest_agent.0= -vnc 0.0.0.0:0 -vga cirrus -device virtio-balloon-pci,id=3Dballoon0,bus=3D= pci.0,addr=3D0x4


 V= ersion info : 
libvirt : 0.9.12-0ubuntu3
qemu-kvm = : 1.0+noroms-0ubuntu1 
linux kernel : 3.2.0-26-gen= eric

Thanks, appreciate your help.
=
>
> Thanks..
>
> ----- Forwarded Message -----
&g= t; From: desi babu <vdesibabu@yahoo.com>
> To: "qemu-devel@nongnu.org" <q= emu-devel@nongnu.org>
&= gt; Sent: Monday, July 16, 2012 3:24 PM
> Sub= ject: Qemu-ga : Guest Agent : Win 2008-64bit not working
>  >
>
> ________________________________
= >
> Qemu Guest Agent  on Windows 200= 8 is not able to connect to virtio-serial socket.
>
> Windows Version : 2008 64 Bit
>
> VIRT-IO Serial = Driver installed in windows.
> Driver Provide= r : Redhat Inc.
> Driver Date : 61.63.103.220= 0
>
> Libvirt = Settings.
>
> =
> <channel type=3D'unix'>
>        <source mode=3D'bind' path=3D'/tmp/qemu-ga.w2008.0.sock'/>

> &n= bsp;      <target type=3D'virtio' name=3D'org.qemu.guest_= agent.0'/>
>        &l= t;address type=3D'virtio-serial' controller=3D'0' bus=3D'0' port=3D'1'/>=
>  </channel>
>
>
&= gt; Version : qemu-ga -V
> QEMU Guest Agent 1= .1.0
>
> qemu-= ga.exe
> critical : error opening path=
> critical : error opening channel
> critical : failed to create guest agent channel
<= font size=3D"3">> critical : failed to initialize guest agent channel.
>
> Any recomme= ndations or debugging methods to verify vertio-serial ?
>
> Thanks in advance.


--27303875-1463293682-1342560893=:70926--