public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* serial/ rs232 and qemu /kvm?
@ 2008-08-19 14:24 Marc Weber
  2008-08-19 15:32 ` Glauber Costa
  0 siblings, 1 reply; 5+ messages in thread
From: Marc Weber @ 2008-08-19 14:24 UTC (permalink / raw)
  To: kvm

First of all, is this the mailinglist to ask this question? Or should I
ask it on the qemu lists?

I'd like to run WinXP/ Vista within kvm and do microcontroller
programming. My host is linux of course. I had some success using the
qemu pre 0.8 way using slsnif. Setting baud rate to 115200 made some of
the operations work, but most don't.

So is there a way to connect COM1 within the guest to /dev/ttyS0 so that
baud rate settings within the guest will be forwarded to /dev/ttyS0 on
the host?

Marc Weber

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

* Re: serial/ rs232 and qemu /kvm?
  2008-08-19 14:24 Marc Weber
@ 2008-08-19 15:32 ` Glauber Costa
  0 siblings, 0 replies; 5+ messages in thread
From: Glauber Costa @ 2008-08-19 15:32 UTC (permalink / raw)
  To: Marc Weber; +Cc: kvm

On Tue, Aug 19, 2008 at 11:24 AM, Marc Weber <marco-oweber@gmx.de> wrote:
> First of all, is this the mailinglist to ask this question? Or should I
> ask it on the qemu lists?
>
> I'd like to run WinXP/ Vista within kvm and do microcontroller
> programming. My host is linux of course. I had some success using the
> qemu pre 0.8 way using slsnif. Setting baud rate to 115200 made some of
> the operations work, but most don't.
>
> So is there a way to connect COM1 within the guest to /dev/ttyS0 so that
> baud rate settings within the guest will be forwarded to /dev/ttyS0 on
> the host?

check out for qemu's  "-serial" option

>
> Marc Weber
> --
> 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
>



-- 
Glauber Costa.
"Free as in Freedom"
http://glommer.net

"The less confident you are, the more serious you have to act."

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

* Re: serial/ rs232 and qemu /kvm?
@ 2008-08-19 21:18 Michael Malone
  2008-08-19 22:37 ` Charles Duffy
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Malone @ 2008-08-19 21:18 UTC (permalink / raw)
  To: kvm mailing list

I have been trying to use kvm to do some microcontroller programming,
mostly with success - until I want to send an ascii NULL down the port.
(I don't know what's going on there, but if you have any ideas, that 
would be
fantastic)Our communication protocol is very touchy about speeds, so the
baud rate was being passed on correctly when I used qemu/kvm like this:
kvm <irrelevant options> -serial /dev/ttyUSB0
(I'm using a usb-serial converter).  You can have up to 4 COM ports by 
repeating
the -serial "device" option.  See the qemu man page for more details 
(yes, it works
just the same when you're invoking it with kvm).

If you're trying to use virt-manager, then don't.
Virt-manager stops you from having access to a bunch of the underlying 
features
of kvm/qemu such as serial ports.  I'm told they're working on it, but 
it's only useful
for a basic setup at the moment.

Michael


Glauber Costa wrote:
> On Tue, Aug 19, 2008 at 11:24 AM, Marc Weber <marco-oweber@gmx.de> wrote:
>   
>> First of all, is this the mailinglist to ask this question? Or should I
>> ask it on the qemu lists?
>>
>> I'd like to run WinXP/ Vista within kvm and do microcontroller
>> programming. My host is linux of course. I had some success using the
>> qemu pre 0.8 way using slsnif. Setting baud rate to 115200 made some of
>> the operations work, but most don't.
>>
>> So is there a way to connect COM1 within the guest to /dev/ttyS0 so that
>> baud rate settings within the guest will be forwarded to /dev/ttyS0 on
>> the host?
>>     
>
> check out for qemu's  "-serial" option
>
>   
>> Marc Weber
>> --
>> 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
>>
>>     
>
>
>
>   


=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
 altered or corrupted during transmission.
=======================================================================


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

* Re: serial/ rs232 and qemu /kvm?
  2008-08-19 21:18 serial/ rs232 and qemu /kvm? Michael Malone
@ 2008-08-19 22:37 ` Charles Duffy
  2008-08-19 22:55   ` Michael Malone
  0 siblings, 1 reply; 5+ messages in thread
From: Charles Duffy @ 2008-08-19 22:37 UTC (permalink / raw)
  To: kvm

Michael Malone wrote:
> If you're trying to use virt-manager, then don't.
> Virt-manager stops you from having access to a bunch of the underlying 
> features
> of kvm/qemu such as serial ports.  I'm told they're working on it, but 
> it's only useful
> for a basic setup at the moment.

Serial ports *are* available through libvirt, and have been since late 
April.

Using a recent git build of libvirt, I've yet to find anything I'm 
interested in but incapable of (except perhaps USB storage hot-unplug, 
but that's very much just a nice-to-have).


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

* Re: serial/ rs232 and qemu /kvm?
  2008-08-19 22:37 ` Charles Duffy
@ 2008-08-19 22:55   ` Michael Malone
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Malone @ 2008-08-19 22:55 UTC (permalink / raw)
  To: kvm mailing list

Charles Duffy wrote:
> Michael Malone wrote:
>> If you're trying to use virt-manager, then don't.
>> Virt-manager stops you from having access to a bunch of the 
>> underlying features
>> of kvm/qemu such as serial ports.  I'm told they're working on it, 
>> but it's only useful
>> for a basic setup at the moment.
>
> Serial ports *are* available through libvirt, and have been since late 
> April.
>
> Using a recent git build of libvirt, I've yet to find anything I'm 
> interested in but incapable of (except perhaps USB storage hot-unplug, 
> but that's very much just a nice-to-have).
>
My apologies.  It's more than likely that I'm using Ubuntu and using 
their package (where feature updates are only included every 6months), 
rather than a recent download.
> -- 
> 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


=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
 altered or corrupted during transmission.
=======================================================================


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

end of thread, other threads:[~2008-08-19 22:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 21:18 serial/ rs232 and qemu /kvm? Michael Malone
2008-08-19 22:37 ` Charles Duffy
2008-08-19 22:55   ` Michael Malone
  -- strict thread matches above, loose matches on Subject: below --
2008-08-19 14:24 Marc Weber
2008-08-19 15:32 ` Glauber Costa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox