qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: NyOS <lista@nyos.homelinux.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Monitor
Date: Sun, 16 Jul 2006 19:51:41 +0200	[thread overview]
Message-ID: <op.tcsmkfj2t9pcbo@mail.chello.hu> (raw)
In-Reply-To: <3461d5200607151451s384bf990oefd2c04c1453efb1@mail.gmail.com>

On Sat, 15 Jul 2006 23:51:39 +0200, Michael Fisher <desnotes@gmail.com>  
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 instance  
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) server  
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 then  
fetch it through scp/ftp/samba/whatever you want

>
> Thanks,
>
> desNotes
>

Best regards,

Nyos

  parent reply	other threads:[~2006-07-16 17:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-15 21:51 [Qemu-devel] Monitor Michael Fisher
2006-07-16  3:33 ` [Qemu-devel] Monitor Anthony Liguori
2006-07-16 17:51 ` NyOS [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-08-02 13:20 [Qemu-devel] Monitor Natalia Portillo
2004-08-02 13:53 ` Joe Menola
2004-08-02 13:56   ` Brad Watson
2004-08-02 21:36     ` Lindsay Mathieson
2004-08-03 23:03   ` J. Mayer
2004-08-04 15:18     ` Jim C. Brown

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=op.tcsmkfj2t9pcbo@mail.chello.hu \
    --to=lista@nyos.homelinux.net \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).