From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: Re: How to connect to the Internet in pv DomU Date: Wed, 29 Sep 2010 09:07:27 -0700 Message-ID: <4CA3643F.4090405@goop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bei Guan Cc: xen devel List-Id: xen-devel@lists.xenproject.org On 09/28/2010 09:21 PM, Bei Guan wrote: > I got it. > I just set the vif=3D['bridge=3Dvirbr0'] 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=3Dvirbr0, but I > think you also can try bridge=3Dxenbr0 on your computer. > > However, I have another question. > > I cannot not assign the DomU ip address in its configure file. For > example, vif=3D['ip=3D192.168.122.20, bridge=3Dvirbr0'] does not work a= nd my > DomU=91s 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