From: shunwen <shunwen@exoweb.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] How to get a guest IP
Date: Mon, 07 Nov 2005 11:24:08 +0800 [thread overview]
Message-ID: <1131333848.3567.18.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.61.0511041549420.28851@filer.marasystems.com>
On 五, 2005-11-04 at 15:52 +0100, Henrik Nordstrom wrote:
> On Fri, 4 Nov 2005, zheng sw wrote:
>
> > Host want to get the guest's IP when the host start the guest?
>
> Why?
Beause I want to login the guest with ssh in another computer, and do
some test in it.
>
> > My setting is: debian(2.6.8), qemu, bridge-utils, TUN/TAP. The
> > guest get a IP from a DHCP server which is in the same subnet whit
> > host.
>
> Ok.
>
> > My purpose is use bash to run ssh connect to the host, then run
> > qemu, After the guest is started, the host want to get the guest's
> > IP and send to me, but nobody will control the guest. Now I am
> > puzzle in how the host get the guest IP.
>
> The most obvious way would be to use dynamic DNS updates, supported by
> most DHCP servers, automatically registering the guest host name in DNS.
I think it's difficult to do such actions in program or script.
>
> Another way is to have a init script in the guest to somehow tell the host
> what IP address it has.
In this way, the guest don't know the host IP except I send a message to
guest when qemu run, Beause I may run qemu in different computer. When
read the document, I can't find any way to send a message to guest in
the command line or script.
The best way I think is get the output of guest when it booting. I only
find the option of redirect the guest output use -serial dev. But I
can't read the output when use -serial pty. Is any other ways?
thank you!
Best Regards
Zheng SW
>
> Regards
> Henrik
prev parent reply other threads:[~2005-11-07 3:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-04 10:23 [Qemu-devel] How to get a guest IP zheng sw
2005-11-04 14:52 ` Henrik Nordstrom
2005-11-07 3:24 ` shunwen [this message]
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=1131333848.3567.18.camel@localhost.localdomain \
--to=shunwen@exoweb.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).