KVM test: support for the new remote shell server for Windows
Quoted 28 lines · ----- "Yolkfull Chow
Quoted 4 lines · Michael Goldish
Quoted 1 line · ----- "Lucas Meneghel Rodrigues
On Tue, Aug 18, 2009 at 7:15 AM, Michael
Goldish<[email protected]>
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 1 line · ----- "Lucas Meneghel Rodrigues
Ok, very good, similarly to the previous patchset, I rebased
one
Quoted 6 lines
Quoted 6 lines
of
Quoted 1 line
Quoted 1 line
the patches and applied the set, I am making tests with an rss
binary
Quoted 3 lines
Quoted 3 lines
generated by the cross compiler.
I am testing with Winxp 32 bit, so far so good and rss.exe
works
Quoted 2 lines
Quoted 2 lines
as
Quoted 1 line
Quoted 1 line
expected. I guess I will test more with other hosts, but I am
not
Quoted 4 lines
Quoted 4 lines
too
Quoted 3 lines
Quoted 3 lines
far from applying this patchset as well.
Will keep you posted!
Quoted 6 lines
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.
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 when 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 out because I don't have the MS telnet source code.
I'll start looking for a solution/workaround.
Quoted 106 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Note that this patchset should also allow you to install
rss.exe
Quoted 1 line
Quoted 1 line
Quoted 1 line
automatically using step files, so I hope that in your tests
you're
Quoted 2 lines
Quoted 2 lines
not
Quoted 1 line
installing it manually. I'm not expecting you to test
everything
Quoted 2 lines
Quoted 2 lines
(it
Quoted 1 line
takes quite a while), but if you're testing anyway, better let
the
Quoted 4 lines
Quoted 4 lines
step
Quoted 3 lines
files do some work too.
(I know we'll start using unattended installation scripts soon
but
Quoted 4 lines
Quoted 4 lines
it
Quoted 3 lines
doesn't hurt to have functional step files too.)
Also note that using a certain qemu/KVM version I couldn't get
Vista
Quoted 2 lines
Quoted 2 lines
to
Quoted 1 line
work with user mode. This isn't an rss.exe problem. In TAP
mode
Quoted 6 lines
Quoted 6 lines
it
Quoted 3 lines
works just fine.
In any case, thanks for reviewing and testing the patchsets.
Ok Michael, turns out the win2000 failure was a silly mistake.
So,
Quoted 9 lines
Quoted 8 lines
after checking the code and going trough light testing, I applied this
patchsethttp://autotest.kernel.org/changeset/3553
http://autotest.kernel.org/changeset/3554
http://autotest.kernel.org/changeset/3555
http://autotest.kernel.org/changeset/3556Quoted 4 lines
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
Quoted 2 lines
that's supposed to do it seems to be missing.
This is probably not important -- I just thought I should bring itto
Quoted 3 lines
your attention.
Quoted 1 line
Sudhir, perhaps you can try the upstream tree starting with r3556.
It
Quoted 6 lines
Quoted 6 lines
has all the changes you have asked for earlier (rss and stuff).
In order to get things all set, I suggest:
1) Create a directory with the following contents:
Quoted 7 lines
Quoted 7 lines
[lmr@freedom rss]$ ls -l
total 52(quoted diff) +0
-3-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.batThose can be found under client/tests/kvm/deps directory on the
most
Quoted 5 lines
Quoted 5 lines
current autotest tree.
2) Create an iso from it:
genisoimage -o rss.iso -max-iso9660-filenames -relaxed-filenames
-D
Quoted 7 lines
Quoted 7 lines
--input-charset iso8859-1 rss
3) Put rss.iso under your windows iso directory.
4) Profit :)
If you want to compile the latest rss, you could try numerous
things,
Quoted 10 lines
Quoted 10 lines
here are some possible routes:
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:mingw32-w32api
mingw32-gcc-c++
mingw32-gccQuoted 5 lines
Quoted 5 lines
And then do a:
i686-pc-mingw32-g++ rss.cpp -lws2_32 -mwindows -o rss.exe
I hope that was helpful. After this patch-applying spree, I gotta
a
Quoted 9 lines
Quoted 5 lines
*lot* of documentation to write to our wiki :)
Cheers,
Lucas
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 51 lines · ----- "Michael Goldish
Quoted 4 lines · ----- "Yolkfull Chow
Quoted 3 lines · Michael Goldish
----- "Lucas Meneghel Rodrigues" <[email protected]> wrote:
Quoted 10 lines
Quoted 1 line
Quoted 1 line
On Tue, Aug 18, 2009 at 7:15 AM, Michael
Goldish<[email protected]>
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 1 line · ----- "Lucas Meneghel Rodrigues
Ok, very good, similarly to the previous patchset, I rebased
one
Quoted 2 lines
Quoted 2 lines
of
Quoted 1 line
Quoted 1 line
the patches and applied the set, I am making tests with an
rss
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
binary
Quoted 3 lines
Quoted 3 lines
generated by the cross compiler.
I am testing with Winxp 32 bit, so far so good and rss.exe
works
Quoted 2 lines
Quoted 2 lines
as
Quoted 1 line
Quoted 1 line
expected. I guess I will test more with other hosts, but I
am
Quoted 7 lines
not
Quoted 4 lines
Quoted 4 lines
too
Quoted 3 lines
Quoted 3 lines
far from applying this patchset as well.
Will keep you posted!
Quoted 6 lines
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.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 when 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 out because I don't have the MS telnet source code.
Quoted 1 line
I'll start looking for a solution/workaround.
I think I've found a solution and I'm testing it now. If everything works as expected I'll send a patch soon.
Quoted 117 lines
Quoted 11 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Note that this patchset should also allow you to install
rss.exe
Quoted 1 line
Quoted 1 line
Quoted 1 line
automatically using step files, so I hope that in your tests
you're
Quoted 2 lines
Quoted 2 lines
not
Quoted 1 line
installing it manually. I'm not expecting you to test
everything
Quoted 2 lines
Quoted 2 lines
(it
Quoted 1 line
takes quite a while), but if you're testing anyway, better
let
Quoted 5 lines
the
Quoted 4 lines
Quoted 4 lines
step
Quoted 3 lines
files do some work too.
(I know we'll start using unattended installation scripts
soon
Quoted 5 lines
but
Quoted 4 lines
Quoted 4 lines
it
Quoted 3 lines
doesn't hurt to have functional step files too.)
Also note that using a certain qemu/KVM version I couldn't
get
Quoted 12 lines
Vista
Quoted 2 lines
Quoted 2 lines
to
Quoted 1 line
work with user mode. This isn't an rss.exe problem. In TAP
mode
Quoted 6 lines
Quoted 6 lines
it
Quoted 3 lines
works just fine.
In any case, thanks for reviewing and testing the patchsets.
Ok Michael, turns out the win2000 failure was a silly mistake.
So,
Quoted 1 line
Quoted 1 line
after checking the code and going trough light testing, I
applied
Quoted 9 lines
Quoted 9 lines
Quoted 7 lines
this
patchsethttp://autotest.kernel.org/changeset/3553
http://autotest.kernel.org/changeset/3554
http://autotest.kernel.org/changeset/3555
http://autotest.kernel.org/changeset/3556Maybe I'm misinterpreting this, but it looks like you squashed
two
Quoted 1 line
Quoted 1 line
patches together. The commit titled "step file tests: do not
fail
Quoted 5 lines
Quoted 2 lines
when receiving an invalid screendump" (changeset 3556) also makes changes to kvm_tests.cfg.sample (it's not supposed to), and the
patch
Quoted 2 lines
that's supposed to do it seems to be missing.
This is probably not important -- I just thought I should bringit
Quoted 4 lines
to
Quoted 3 lines
your attention.
Quoted 1 line
Sudhir, perhaps you can try the upstream tree starting with
r3556.
Quoted 7 lines
It
Quoted 6 lines
Quoted 6 lines
has all the changes you have asked for earlier (rss and stuff).
In order to get things all set, I suggest:
1) Create a directory with the following contents:
Quoted 13 lines
Quoted 7 lines
Quoted 7 lines
[lmr@freedom rss]$ ls -l
total 52(quoted diff) +0
-3-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.batThose can be found under client/tests/kvm/deps directory on the
most
Quoted 5 lines
Quoted 5 lines
current autotest tree.
2) Create an iso from it:
genisoimage -o rss.iso -max-iso9660-filenames
-relaxed-filenames
Quoted 13 lines
-D
Quoted 7 lines
Quoted 7 lines
--input-charset iso8859-1 rss
3) Put rss.iso under your windows iso directory.
4) Profit :)
If you want to compile the latest rss, you could try numerous
things,
Quoted 4 lines
Quoted 4 lines
here are some possible routes:
1) Compile it under a windows host with mingw installed
2) Compile it under Fedora 12 with the cross compileenvironment
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
installed, you need to install at least these through yum:
mingw32-w32api
mingw32-gcc-c++
mingw32-gccAnd then do a:
i686-pc-mingw32-g++ rss.cpp -lws2_32 -mwindows -o rss.exe
I hope that was helpful. After this patch-applying spree, I
gotta
Quoted 10 lines
a
Quoted 9 lines
Quoted 5 lines
*lot* of documentation to write to our wiki :)
Cheers,
Lucas
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 54 lines · Michael Goldish
Quoted 51 lines · ----- "Michael Goldish
Quoted 4 lines · ----- "Yolkfull Chow
Quoted 3 lines · Michael Goldish
----- "Lucas Meneghel Rodrigues" <[email protected]> wrote:
Quoted 10 lines
Quoted 1 line
Quoted 1 line
On Tue, Aug 18, 2009 at 7:15 AM, Michael
Goldish<[email protected]>
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:
Quoted 1 line · ----- "Lucas Meneghel Rodrigues
Ok, very good, similarly to the previous patchset, I rebased
one
Quoted 2 lines
Quoted 2 lines
of
Quoted 1 line
Quoted 1 line
the patches and applied the set, I am making tests with an
rss
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
binary
Quoted 3 lines
Quoted 3 lines
generated by the cross compiler.
I am testing with Winxp 32 bit, so far so good and rss.exe
works
Quoted 2 lines
Quoted 2 lines
as
Quoted 1 line
Quoted 1 line
expected. I guess I will test more with other hosts, but I
am
Quoted 7 lines
not
Quoted 4 lines
Quoted 4 lines
too
Quoted 3 lines
Quoted 3 lines
far from applying this patchset as well.
Will keep you posted!
Quoted 6 lines
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.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 when 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 out because I don't have the MS telnet source code.
Quoted 4 lines
Quoted 1 line
I'll start looking for a solution/workaround.
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. :-)
Quoted 122 lines
Quoted 102 lines
Quoted 12 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Note that this patchset should also allow you to install
rss.exe
Quoted 1 line
Quoted 1 line
Quoted 1 line
automatically using step files, so I hope that in your tests
you're
Quoted 2 lines
Quoted 2 lines
not
Quoted 1 line
installing it manually. I'm not expecting you to test
everything
Quoted 2 lines
Quoted 2 lines
(it
Quoted 1 line
takes quite a while), but if you're testing anyway, better
let
Quoted 5 lines
the
Quoted 4 lines
Quoted 4 lines
step
Quoted 3 lines
files do some work too.
(I know we'll start using unattended installation scripts
soon
Quoted 5 lines
but
Quoted 4 lines
Quoted 4 lines
it
Quoted 3 lines
doesn't hurt to have functional step files too.)
Also note that using a certain qemu/KVM version I couldn't
get
Quoted 12 lines
Vista
Quoted 2 lines
Quoted 2 lines
to
Quoted 1 line
work with user mode. This isn't an rss.exe problem. In TAP
mode
Quoted 6 lines
Quoted 6 lines
it
Quoted 3 lines
works just fine.
In any case, thanks for reviewing and testing the patchsets.
Ok Michael, turns out the win2000 failure was a silly mistake.
So,
Quoted 1 line
Quoted 1 line
after checking the code and going trough light testing, I
applied
Quoted 9 lines
Quoted 9 lines
Quoted 7 lines
this
patchsethttp://autotest.kernel.org/changeset/3553
http://autotest.kernel.org/changeset/3554
http://autotest.kernel.org/changeset/3555
http://autotest.kernel.org/changeset/3556Maybe I'm misinterpreting this, but it looks like you squashed
two
Quoted 1 line
Quoted 1 line
patches together. The commit titled "step file tests: do not
fail
Quoted 5 lines
Quoted 2 lines
when receiving an invalid screendump" (changeset 3556) also makes changes to kvm_tests.cfg.sample (it's not supposed to), and the
patch
Quoted 2 lines
that's supposed to do it seems to be missing.
This is probably not important -- I just thought I should bringit
Quoted 4 lines
to
Quoted 3 lines
your attention.
Quoted 1 line
Sudhir, perhaps you can try the upstream tree starting with
r3556.
Quoted 7 lines
It
Quoted 6 lines
Quoted 6 lines
has all the changes you have asked for earlier (rss and stuff).
In order to get things all set, I suggest:
1) Create a directory with the following contents:
Quoted 13 lines
Quoted 7 lines
Quoted 7 lines
[lmr@freedom rss]$ ls -l
total 52(quoted diff) +0
-3-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.batThose can be found under client/tests/kvm/deps directory on the
most
Quoted 5 lines
Quoted 5 lines
current autotest tree.
2) Create an iso from it:
genisoimage -o rss.iso -max-iso9660-filenames
-relaxed-filenames
Quoted 13 lines
-D
Quoted 7 lines
Quoted 7 lines
--input-charset iso8859-1 rss
3) Put rss.iso under your windows iso directory.
4) Profit :)
If you want to compile the latest rss, you could try numerous
things,
Quoted 4 lines
Quoted 4 lines
here are some possible routes:
1) Compile it under a windows host with mingw installed
2) Compile it under Fedora 12 with the cross compileenvironment
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
installed, you need to install at least these through yum:
mingw32-w32api
mingw32-gcc-c++
mingw32-gccQuoted 16 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
And then do a:
i686-pc-mingw32-g++ rss.cpp -lws2_32 -mwindows -o rss.exe
I hope that was helpful. After this patch-applying spree, I
gotta
Quoted 10 lines
a
Quoted 9 lines
Quoted 5 lines
*lot* of documentation to write to our wiki :)
Cheers,
Lucas
--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html