Skip to contentSkip to conversation

serial/ rs232 and qemu /kvm?

DISCUSSION Michael Malone 2 participants 3 messages Aug 19, 2008 KVM

lore
Share & tools
lore
#0 lore raw

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

Quoted 10 lines · Glauber Costa
Quoted 8 lines · Marc Weber

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.

Quoted 19 lines
Quoted 4 lines

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

Quoted 7 lines

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

=======================================================================
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.
=======================================================================

#1 lore raw
Quoted 4 lines · Michael Malone

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).

#2 lore raw
Quoted 10 lines · Charles Duffy
Quoted 4 lines · Michael Malone

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.

Quoted 4 lines
Signature · 3 lines
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

=======================================================================
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.
=======================================================================