From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Chmielewski Subject: Re: With -vnc option, can I still use "ctrl+alt + n"? Date: Thu, 19 Feb 2009 10:30:31 +0100 Message-ID: <499D26B7.6070302@wpkg.org> References: <5d649bdb0902182328r250ffef5kec341d1765a842b1@mail.gmail.com> <499D0C80.5080808@wpkg.org> <5d649bdb0902190011h3c0b4688n70bd3cfd8ec9e6f4@mail.gmail.com> <1CA74D5B-2645-4CAD-B815-D3E1AD464610@suse.de> <4b3406f0902190045j4c544aa1j9ce97a3e01d8aa9a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Alexander Graf , "kvm@vger.kernel.org" , Neo Jia To: Dongsheng Song Return-path: Received: from mx03.syneticon.net ([78.111.66.105]:35676 "EHLO mx03.syneticon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754878AbZBSJa0 (ORCPT ); Thu, 19 Feb 2009 04:30:26 -0500 In-Reply-To: <4b3406f0902190045j4c544aa1j9ce97a3e01d8aa9a@mail.gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Dongsheng Song schrieb: > 2009/2/19 Alexander Graf : >> 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