From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G2AnN-0000D3-Vl for qemu-devel@nongnu.org; Sun, 16 Jul 2006 13:52:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G2An9-0008UF-69 for qemu-devel@nongnu.org; Sun, 16 Jul 2006 13:52:45 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2An9-0008U4-0R for qemu-devel@nongnu.org; Sun, 16 Jul 2006 13:52:31 -0400 Received: from [195.228.240.51] (helo=mta01.mail.t-online.hu) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G2Apb-0004wO-KY for qemu-devel@nongnu.org; Sun, 16 Jul 2006 13:55:04 -0400 Received: from mail.chello.hu (dsl51B66635.pool.t-online.hu [81.182.102.53]) by mail.t-online.hu (Postfix) with ESMTP for ; Sun, 16 Jul 2006 19:51:42 +0200 (CEST) Date: Sun, 16 Jul 2006 19:51:41 +0200 Subject: Re: [Qemu-devel] Monitor From: NyOS Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-2 MIME-Version: 1.0 References: <3461d5200607151451s384bf990oefd2c04c1453efb1@mail.gmail.com> Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: <3461d5200607151451s384bf990oefd2c04c1453efb1@mail.gmail.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Sat, 15 Jul 2006 23:51:39 +0200, Michael Fisher = = wrote: > 1. Can the commands (i.e. sendkeys, savevm, loadvm) be initiated from > within the guest OS? If so, can you give me an example? Of course, by its nature, not. A good emulator cannot allow that. However, - if you configure your system well - it is possibile with = external programs: Launch qemu with network support, use a named pipe as monitor, and do = something on the host to grant guest some access (launch sshd for instan= ce = and install ssh client on guest) mknod monitor.pipe p <-- this line creates a new named pipe, called = "monitor.pipe" qemu -hda disc.img -monitor pipe:monitor.pipe -net nic -net user <-- use= = monitor.pipe as monitor.. note that you cannot reach original monitor = (alt-ctr-2) this way connect to host from inside, and use "echo 'command' > monitor.pipe" It sounds quite useless.. but it isn't if you use a GNU netcat (nc) serv= er = on host, which listens on a tcp/ip port.. That way, a simple telnet = program could be used as a terminal from inside (I mean from guest) nc -T -l -t -p 8898 >monitor.pipe (There might be some patches around that make possibile to use a tcp/ip = = server as a monitor/serial/parallel device..) > > 2. When executing 'savevm' can it be saved to a virtual disk? By default, not. With the same trick, you can ask the host to make some VM saves, and the= n = fetch it through scp/ftp/samba/whatever you want > > Thanks, > > desNotes > Best regards, Nyos