From: Yolkfull Chow Subject: Re: [Autotest] [KVM-AUTOTEST PATCH 0/7] KVM test: support for the new remote shell server for Windows Date: Mon, 14 Sep 2009 17:39:31 +0800 Message-ID: <20090914093931.GC2476@aFu.nay.redhat.com> References: <6ac58f4f0908180836h202f8cc0mef04175fa32b2a9d@mail.gmail.com> <897883581.2137371250634614504.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> Reply-To: Yolkfull Chow Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Lucas Meneghel Rodrigues , autotest@test.kernel.org, kvm@vger.kernel.org, sudhir kumar To: Michael Goldish Return-path: Received: from mx1.redhat.com ([209.132.183.28]:9519 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750874AbZINJjA (ORCPT ); Mon, 14 Sep 2009 05:39:00 -0400 Content-Disposition: inline In-Reply-To: <897883581.2137371250634614504.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Aug 18, 2009 at 06:30:14PM -0400, Michael Goldish wrote: >=20 > ----- "Lucas Meneghel Rodrigues" wrote: >=20 > > On Tue, Aug 18, 2009 at 7:15 AM, Michael Goldish > > wrote: > > > > > > ----- "Lucas Meneghel Rodrigues" wrote: > > > > > >> Ok, very good, similarly to the previous patchset, I rebased one > > of > > >> the patches and applied the set, I am making tests with an rss > > binary > > >> generated by the cross compiler. > > >> > > >> I am testing with Winxp 32 bit, so far so good and rss.exe works > > as > > >> expected. I guess I will test more with other hosts, but I am no= t > > too > > >> far from applying this patchset as well. > > >> > > >> Will keep you posted! Hi Michael, so far rss works wonderful on remote login a VM and execute some simple commands. But can we expect extend the facility to enable it support some telnet commands, like 'wmic' ? We did need such commands which is used for collecting guest hardware information. > > > > > > Note that this patchset should also allow you to install rss.exe > > > automatically using step files, so I hope that in your tests you'= re > > not > > > installing it manually. =A0I'm not expecting you to test everythi= ng > > (it > > > takes quite a while), but if you're testing anyway, better let th= e > > step > > > files do some work too. > > > > > > (I know we'll start using unattended installation scripts soon bu= t > > it > > > doesn't hurt to have functional step files too.) > > > > > > Also note that using a certain qemu/KVM version I couldn't get Vi= sta > > to > > > work with user mode. =A0This isn't an rss.exe problem. =A0In TAP = mode > > it > > > works just fine. > > > > > > In any case, thanks for reviewing and testing the patchsets. > >=20 > > Ok Michael, turns out the win2000 failure was a silly mistake. So, > > after checking the code and going trough light testing, I applied > > this > > patchset > >=20 > > http://autotest.kernel.org/changeset/3553 > > http://autotest.kernel.org/changeset/3554 > > http://autotest.kernel.org/changeset/3555 > > http://autotest.kernel.org/changeset/3556 >=20 > Maybe I'm misinterpreting this, but it looks like you squashed two > patches together. The commit titled "step file tests: do not fail > when receiving an invalid screendump" (changeset 3556) also makes > changes to kvm_tests.cfg.sample (it's not supposed to), and the patch > that's supposed to do it seems to be missing. > This is probably not important -- I just thought I should bring it to > your attention. >=20 > > Sudhir, perhaps you can try the upstream tree starting with r3556. = It > > has all the changes you have asked for earlier (rss and stuff). > >=20 > > In order to get things all set, I suggest: > >=20 > > 1) Create a directory with the following contents: > >=20 > > [lmr@freedom rss]$ ls -l > > total 52 > > -rwxrwxr-x. 1 lmr lmr 42038 2009-08-17 18:55 rss.exe > > -rw-rw-r--. 1 lmr lmr 517 2009-08-17 18:57 rss.reg > > -rw-rw-r--. 1 lmr lmr 972 2009-08-17 18:57 setuprss.bat > >=20 > > Those can be found under client/tests/kvm/deps directory on the mos= t > > current autotest tree. > >=20 > > 2) Create an iso from it: > >=20 > > genisoimage -o rss.iso -max-iso9660-filenames -relaxed-filenames -D > > --input-charset iso8859-1 rss > >=20 > > 3) Put rss.iso under your windows iso directory. > >=20 > > 4) Profit :) > >=20 > > If you want to compile the latest rss, you could try numerous thing= s, > > here are some possible routes: > >=20 > > 1) Compile it under a windows host with mingw installed > > 2) Compile it under Fedora 12 with the cross compile environment > > installed, you need to install at least these through yum: > >=20 > > mingw32-w32api > > mingw32-gcc-c++ > > mingw32-gcc > >=20 > > And then do a: > >=20 > > i686-pc-mingw32-g++ rss.cpp -lws2_32 -mwindows -o rss.exe > >=20 > > I hope that was helpful. After this patch-applying spree, I gotta a > > *lot* of documentation to write to our wiki :) > >=20 > > Cheers, > >=20 > > Lucas > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html