All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Bei Guan <gbtju85@gmail.com>
Cc: xen devel <xen-devel@lists.xensource.com>
Subject: Re: Re: How to connect to the Internet in pv DomU
Date: Wed, 29 Sep 2010 09:07:27 -0700	[thread overview]
Message-ID: <4CA3643F.4090405@goop.org> (raw)
In-Reply-To: <AANLkTikPh=K55uDk90JJTb2di8APf01gnCP+_=dce10Y@mail.gmail.com>

 On 09/28/2010 09:21 PM, Bei Guan wrote:
> I got it.
> I just set the  vif=['bridge=virbr0']  in the DomU configure file. And
> then, I can ping the dom0 successfully from DomU. I also can access to
> the internet from DomU. On my computer it is bridge=virbr0, but I
> think you also can try bridge=xenbr0 on your computer.
>
> However, I have another question.
>
> I cannot not assign the DomU ip address in its configure file. For
> example, vif=['ip=192.168.122.20, bridge=virbr0'] does not work and my
> DomU‘s IP is assigned through the dhcp, that is 192.168.122.192. (My
> virbr0's IP is 192.168.122.1)
> So how can I assign IP to the DomU?

IP addresses are something that machines - virtual or physical - set for
themselves.  It might be statically configured, or it might be from a
dhcp server, but either way the domain itself needs to do the setting.

I guess in principle dom0 could stick the ip address into xenstore and
the domU could fetch it from there, but AFAIK there's no mechanism to do
that.

    J

      reply	other threads:[~2010-09-29 16:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28  6:53 How to connect to the Internet in pv DomU Bei Guan
2010-09-29  4:21 ` Bei Guan
2010-09-29 16:07   ` Jeremy Fitzhardinge [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=4CA3643F.4090405@goop.org \
    --to=jeremy@goop.org \
    --cc=gbtju85@gmail.com \
    --cc=xen-devel@lists.xensource.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.