All of lore.kernel.org
 help / color / mirror / Atom feed
* Controlling (WinXP-Guest)- Textmode via chardev pipe broken?
@ 2011-12-20 10:01 Oliver Rath
  2011-12-20 12:08 ` Sasha Levin
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Rath @ 2011-12-20 10:01 UTC (permalink / raw)
  To: kvm

Hi List,

Im trying to control a winxp installation process (esp. the text-mode
part) via pipe through kvm. Im using the git-version of kvm from
yesterday (2011-12-19), build with these parameters:

~/qemu-kvm$ ./configure --enable-sdl
~/qemu-kvm$ make
~/qemu-kvm$ sudo make install

What works:

1. Generating ~/.winpipe/path.{in,out}via mkdir .winpipe; mkfifo
.winpipe/path.in; mkfifo .winpipe/path.out
2. Creating emty image via qemu-img create win.img 20G
3. Starting kvm via: qemu-system-x86_64 -m 1G -hda win.img -cdrom
winxpsp3.iso -chardev pipe,id=mywinpipe,path=.winpipe/path

What doesn't:

1. Piping some text via echo "R" > .winpipe/path.in (i.e. for starting
repair console in winxp-textmode) doesnt have any effect
2. Reading from path.out via cat ~/.winpipe/path.out (nothing happens
except the vm ends, then the command "cat .winpipe/path.out" ends, too)
has no result, only waiting
3. There is no .pipe/ directory inside winxp, wether on C: nor on D:
(looked in via starting repair-console with "R")


Whats wrong?

Tfh!

Oliver


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Controlling (WinXP-Guest)- Textmode via chardev pipe broken?
  2011-12-20 10:01 Controlling (WinXP-Guest)- Textmode via chardev pipe broken? Oliver Rath
@ 2011-12-20 12:08 ` Sasha Levin
  2011-12-22 15:37   ` SOLVED [was Re: Controlling (WinXP-Guest)- Textmode via chardev pipe broken?] Oliver Rath
  0 siblings, 1 reply; 3+ messages in thread
From: Sasha Levin @ 2011-12-20 12:08 UTC (permalink / raw)
  To: Oliver Rath; +Cc: kvm

On Tue, 2011-12-20 at 11:01 +0100, Oliver Rath wrote:
> Hi List,
> 
> Im trying to control a winxp installation process (esp. the text-mode
> part) via pipe through kvm. Im using the git-version of kvm from
> yesterday (2011-12-19), build with these parameters:
> 
> ~/qemu-kvm$ ./configure --enable-sdl
> ~/qemu-kvm$ make
> ~/qemu-kvm$ sudo make install
> 
> What works:
> 
> 1. Generating ~/.winpipe/path.{in,out}via mkdir .winpipe; mkfifo
> .winpipe/path.in; mkfifo .winpipe/path.out
> 2. Creating emty image via qemu-img create win.img 20G
> 3. Starting kvm via: qemu-system-x86_64 -m 1G -hda win.img -cdrom
> winxpsp3.iso -chardev pipe,id=mywinpipe,path=.winpipe/path
> 
> What doesn't:
> 
> 1. Piping some text via echo "R" > .winpipe/path.in (i.e. for starting
> repair console in winxp-textmode) doesnt have any effect
> 2. Reading from path.out via cat ~/.winpipe/path.out (nothing happens
> except the vm ends, then the command "cat .winpipe/path.out" ends, too)
> has no result, only waiting
> 3. There is no .pipe/ directory inside winxp, wether on C: nor on D:
> (looked in via starting repair-console with "R")
> 
> 
> Whats wrong?

Are you sure that windows is using the serial device at all?

You're not emulating a keyboard there, you're emulating input from a
serial device.

-- 

Sasha.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* SOLVED [was Re: Controlling (WinXP-Guest)- Textmode via chardev pipe broken?]
  2011-12-20 12:08 ` Sasha Levin
@ 2011-12-22 15:37   ` Oliver Rath
  0 siblings, 0 replies; 3+ messages in thread
From: Oliver Rath @ 2011-12-22 15:37 UTC (permalink / raw)
  To: Sasha Levin; +Cc: kvm

Am 20.12.2011 13:08, schrieb Sasha Levin:
> [..]
> Whats wrong?
> Are you sure that windows is using the serial device at all?
>
> You're not emulating a keyboard there, you're emulating input from a
> serial device.
>
HI Sasha,

Ive found a better solution:

It is possible to pipe the qemu-monitor:

qemu ... -monitor pipe:.winpipe/path

so Im able to send commands through the path.in pipe via
sendkey-kommand, i.e.

echo "sendkey r" > .winpipe/path.in
echo "sendkey d" > .winpipe/path.in
echo "sendkey shift-dot" > .winpipe/path.in
echo "sendkey ret" > .winpipe/path.in

Its not very komfortable, but does its job :-)

Tfh!

Regards,

Oliver


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-22 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-20 10:01 Controlling (WinXP-Guest)- Textmode via chardev pipe broken? Oliver Rath
2011-12-20 12:08 ` Sasha Levin
2011-12-22 15:37   ` SOLVED [was Re: Controlling (WinXP-Guest)- Textmode via chardev pipe broken?] Oliver Rath

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.