From: Yolkfull Chow Subject: Re: [Autotest] [KVM-AUTOTEST PATCH 0/7] KVM test: support for the new remote shell server for Windows Date: Fri, 18 Sep 2009 19:06:08 +0800 Message-ID: <20090918110608.GB2534@aFu.nay.redhat.com> References: <859508081.45681252929521396.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> <344997470.322951253202046590.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]:30454 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755839AbZIRLFe (ORCPT ); Fri, 18 Sep 2009 07:05:34 -0400 Content-Disposition: inline In-Reply-To: <344997470.322951253202046590.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Sep 17, 2009 at 11:40:46AM -0400, Michael Goldish wrote: >=20 > ----- "Michael Goldish" wrote: >=20 > > ----- "Yolkfull Chow" wrote: > >=20 > > > 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 rebas= ed > > > 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 > > > not > > > > > too > > > > > >> far from applying this patchset as well. > > > > > >> > > > > > >> Will keep you posted! > > >=20 > > >=20 > > > Hi Michael, so far rss works wonderful on remote login a VM and > > > execute some simple commands. But can we expect extend the facili= ty > > > to > > > enable it support some telnet commands, like 'wmic' ? We did need > > > such > > > commands which is used for collecting guest hardware information. > >=20 > > I wasn't aware of wmic, but now that I tried running it, it appears > > to > > be one of those programs, like netsh and ftp, that behave badly whe= n > > run outside an actual console window. > > In the case of netsh and ftp there are easy workarounds but wmic > > seems > > to hang no matter what I do. > > AFAIK, it doesn't work with SSH servers either, including openSSH > > under cygwin. > > I wonder how it works under telnet but it'll be difficult to find o= ut > > because I don't have the MS telnet source code. > >=20 > > I'll start looking for a solution/workaround. >=20 > I think I've found a solution and I'm testing it now. If everything = works > as expected I'll send a patch soon. Wow, that's wonderful. Expecting it. :-) >=20 > > >=20 > > > > > > > > > > > > Note that this patchset should also allow you to install > > > rss.exe > > > > > > automatically using step files, so I hope that in your test= s > > > you're > > > > > not > > > > > > installing it manually. =A0I'm not expecting you to test > > > everything > > > > > (it > > > > > > takes quite a while), but if you're testing anyway, better > > let > > > the > > > > > step > > > > > > files do some work too. > > > > > > > > > > > > (I know we'll start using unattended installation scripts > > soon > > > but > > > > > it > > > > > > doesn't hurt to have functional step files too.) > > > > > > > > > > > > Also note that using a certain qemu/KVM version I couldn't > > get > > > Vista > > > > > to > > > > > > work with user mode. =A0This isn't an rss.exe problem. =A0I= n TAP > > > mode > > > > > it > > > > > > works just fine. > > > > > > > > > > > > In any case, thanks for reviewing and testing the patchsets= =2E > > > > >=20 > > > > > Ok Michael, turns out the win2000 failure was a silly mistake= =2E > > > 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 mak= es > > > > 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 t= he > > > most > > > > > 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 > > > things, > > > > > 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.h= tml > -- > 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