public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: Dongsheng Song <dongsheng.song@gmail.com>
Cc: Alexander Graf <agraf@suse.de>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	Neo Jia <neojia@gmail.com>
Subject: Re: With -vnc option, can I still use "ctrl+alt + n"?
Date: Thu, 19 Feb 2009 10:30:31 +0100	[thread overview]
Message-ID: <499D26B7.6070302@wpkg.org> (raw)
In-Reply-To: <4b3406f0902190045j4c544aa1j9ce97a3e01d8aa9a@mail.gmail.com>

Dongsheng Song schrieb:
> 2009/2/19 Alexander Graf <agraf@suse.de>:
>> You could pass -monitor stdio to qemu. That gives you the monitor on the
>> shell you started qemu from.
>>
> 
> So if I run kvm as daemon:
> 
> kvm -name Linux-x64 -smp 2 -m 2048M -hda hda.img \
>     -cdrom ../../var/iso/debian-500-amd64-DVD-1.iso \
>     -net nic,vlan=0,macaddr=52:54:00:12:34:00,model=e1000 \
>     -net tap,vlan=0,ifname=tap00,script=no \
>     -net nic,vlan=1,macaddr=52:54:00:12:34:10,model=e1000 \
>     -net tap,vlan=1,ifname=tap10,script=no \
>     -vnc :10 -daemonize
> 
> After logout the host, I can't get the qemu system console anymore?

You could use:

-monitor unix:/var/run/qemu-server/103.mon,server,nowait

And connect i.e. with minicom to /var/run/qemu-server/103.mon.

If you put a "minirc.yourguest" file in /etc/minicom/ with content:

pu port             unix#/var/run/qemu-server/103.mon
pu minit
pu mreset


You will be able to connect to that monitor with:

minicom yourguest

For example:

# minicom web3-mon

Welcome to minicom 2.2

OPTIONS: I18n
Compiled on Jan  7 2007, 19:01:49.
Port unix#/var/run/qemu-server/105.mon

                                       Press CTRL-A Z for help on 
special keys

QEMU 0.9.1 monitor - type 'help' for more information
(qemu) help
help|? [cmd] -- show the help
(...)

Note: this will "quit the emulator" and your guest:

(qemu) quit


So most likely you will just want to exit with minicom's "ctrl-a z x" 
combination.

-- 
Tomasz Chmielewski
http://wpkg.org


  reply	other threads:[~2009-02-19  9:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-19  7:28 With -vnc option, can I still use "ctrl+alt + n"? Neo Jia
2009-02-19  7:38 ` Tomasz Chmielewski
2009-02-19  8:11   ` Neo Jia
2009-02-19  8:22     ` Alexander Graf
2009-02-19  8:45       ` Dongsheng Song
2009-02-19  9:30         ` Tomasz Chmielewski [this message]
2009-02-19  8:52       ` Neo Jia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=499D26B7.6070302@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=agraf@suse.de \
    --cc=dongsheng.song@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=neojia@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox