Skip to contentSkip to conversation

Serial console's using kvm -serial ?????

DISCUSSION Steve Shorter 3 participants 3 messages May 27, 2008 2 messages not in the archive KVM

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Howdy!

What is the correct way to obtain serial consoles on
kvm instances..

  	kvm -serial ${SOME_DEV}

What should SOME_DEV be and then how can I access the
serial console?

I am on Ubuntu Hardy, and tried various things like ptmx, ttyS2
etc but couldn't get anything to work.

thanx - steve

#3 lore raw
Quoted 9 lines · Steve Shorter

Howdy!

What is the correct way to obtain serial consoles on
kvm instances..

  	kvm -serial ${SOME_DEV}

What should SOME_DEV be and then how can I access the
serial console?

Look in the QEMU docs, there are a lot of possible options. I imagine you probably want either stdio or you want to use the -nographic option.

Regards,

Anthony Liguori

Quoted 13 lines

I am on Ubuntu Hardy, and tried various things like ptmx, ttyS2
etc but couldn't get anything to work.

thanx - steve

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

#4 lore raw
In reply to Steve Shorter
Quoted 2 lines · Steve Shorter

I am on Ubuntu Hardy, and tried various things like ptmx, ttyS2
etc but couldn't get anything to work.

If you are referring to using serial devices to connect to the Qemu monitor, I use the telnet option (-monitor telnet::5000,server,nowait). That option allows me to connect to the Qemu monitor via telnet to that port. I also specify a different port for each different VM (5001, 5002, etc.) and then I can run a very large number of VM's without any device conflicts.

For my telnet application, I prefer netcat, since it allows me to use Ctrl-C to exit without having to deal with telnet's escape sequences.

My answer may not be even close to what or why you were asking, but I hope that helps.

Signature · 2 lines
Alberto Treviño
[email protected]