From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4vrY-0006YJ-Nq for qemu-devel@nongnu.org; Fri, 24 Aug 2012 11:31:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4vrW-00021t-Pt for qemu-devel@nongnu.org; Fri, 24 Aug 2012 11:31:56 -0400 Received: from xvm-169-183.ghst.net ([95.142.169.183]:57185 helo=photon.sigxcpu.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4vrW-00021V-Im for qemu-devel@nongnu.org; Fri, 24 Aug 2012 11:31:54 -0400 Date: Fri, 24 Aug 2012 17:31:49 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= Message-ID: <20120824153149.GA12023@bogon.sigxcpu.org> References: <20120821115754.GA5855@bogon.sigxcpu.org> <20120821183117.GA18191@redhat.com> <20120822080433.GB11269@bogon.sigxcpu.org> <20120822083202.GB22908@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20120822083202.GB22908@redhat.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Add guest-get-hostname to retrieve the guests current hostname List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Daniel P. Berrange" Cc: qemu-devel@nongnu.org On Wed, Aug 22, 2012 at 09:32:02AM +0100, Daniel P. Berrange wrote: > On Wed, Aug 22, 2012 at 10:04:33AM +0200, Guido G=FCnther wrote: > > On Tue, Aug 21, 2012 at 07:31:17PM +0100, Daniel P. Berrange wrote: > > > On Tue, Aug 21, 2012 at 01:57:54PM +0200, Guido G=FCnther wrote: > > [..snip..] > > >=20 > > > Why no impl ? Winsock has the gethostname() API too > > >=20 > > > $ grep gethostname /usr/i686-w64-mingw32/sys-root/mingw/include/*.h > > > /usr/i686-w64-mingw32/sys-root/mingw/include/winsock2.h: WINSOCK_A= PI_LINKAGE int WSAAPI gethostname(char *name,int namelen); > >=20 > > This was mostly due to the lack of a test system. Are there any point= ers > > on how to cross compile qemu-qa for Windows? >=20 > Assuming you have the Mingw64 toolchain installed, then compilation is = just > a case of passing the --cross-prefix arg to configure. eg on Fedora 17 = I > would do: >=20 > ./configure --target-list=3Dx86_64-softmmu --cross-prefix=3Di686-w64-= mingw32- >=20 > which causes it to use i686-w64-mingw32-gcc as the compiler That helped! I had to additionally install mingw32-pkg-config mingw32-zlib mingw32-glib2 to cross build qemu-ga. Howver running this on a win7-pro evaluation version I get: .\qemu-ga : critical: error opening path : critical: error opening channel : critical: failed to create guest agent channel : critical: failed to initialize guest agent channel qemu-ga is current git while the host is qemu-kvm 1.1.0. The virtio serial driver is installed in the guest but running the test program gives errors as well: .\VIOSER-TEST Running in non blocking mode. Cannot find vioserial device \\?\.\{}#vioserialport#... , error 5 Libvirt creates the guest agent channel via:
While the same works well with linux guests. Any ideas what I'm missing on the Windows side? Cheers, -- Guido >=20 > Daniel > --=20 > |: http://berrange.com -o- http://www.flickr.com/photos/dberran= ge/ :| > |: http://libvirt.org -o- http://virt-manager.= org :| > |: http://autobuild.org -o- http://search.cpan.org/~danbe= rr/ :| > |: http://entangle-photo.org -o- http://live.gnome.org/gtk-= vnc :| >=20