WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: How to connect to the Internet in pv DomU

To: Bei Guan <gbtju85@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: How to connect to the Internet in pv DomU
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Wed, 29 Sep 2010 09:07:27 -0700
Cc: xen devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 29 Sep 2010 09:08:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikPh=K55uDk90JJTb2di8APf01gnCP+_=dce10Y@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTinL21i8sdFVvdfoRJnZY10=r_GuWGd9gTyC_hZD@xxxxxxxxxxxxxx> <AANLkTikPh=K55uDk90JJTb2di8APf01gnCP+_=dce10Y@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Lightning/1.0b3pre Thunderbird/3.1.4
 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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>