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-users

Re: [Xen-users] Re: Guests stops at "Sending DHCP requests ..."

To: Flavio <fbcyborg@xxxxxxxxx>
Subject: Re: [Xen-users] Re: Guests stops at "Sending DHCP requests ..."
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Tue, 24 Nov 2009 08:39:40 -0800 (PST)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 24 Nov 2009 08:40:33 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1259080780; bh=nFow2UT7jqlimp0J723lpH2Owx7uRkZmv5dkrOl6Byk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Nq0zCdSwYh46tQ0B6sgNznreqfx/E/Jv/7q563BHWaAAmSP31lYbVj76TTyCd/K5lxTijwfOgxuGO8hoJwye/ZelAq9MYvMJcykjXVaWhsuKAOzN96s5+5BN8yXOEW56PZ/Dyfv2MUR7uW7tOfF9NOP1TVMPEd2udOh4/OGwHC8=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=kPhvhPCiZ8vE8KLvVvz8NG5LOsiJFkd7rUadrAK6hV9T7QnEhBhF3RjBtpyxEd2YdiYoHUzTqpMaDv5rA3UUr8MjguA7OejlERNiJg8D4ZqIm7KPqRXBIqVaxSfbv3tZlxvVCgHXSLVxEkSJ3Z7aXlwyMwfhHBdXTFFUhVQwsbQ=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d75259650911240814p31ffb6f1oe100044e57638207@xxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> And the Internet connection is not longer working (need to stop xenbr0).

That's a fair i believe. DHCP bridge setup ( network setup) is incorrect.
 Sorry, i have no any idea what Gentoo is. When internet will be up,
 comment out :-
 # (network-script network-bridge)
 and your DomUs will succeed with DHCPDISCOVER.

Boris.

--- On Tue, 11/24/09, Flavio <fbcyborg@xxxxxxxxx> wrote:

From: Flavio <fbcyborg@xxxxxxxxx>
Subject: Re: [Xen-users] Re: Guests stops at "Sending DHCP requests ..."
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Tuesday, November 24, 2009, 11:14 AM

This is my /etc/xen/xend-config.sxp file:
(xend-http-server yes)
(xend-relocation-server yes)
(xend-port            8000)
(xend-address localhost)
(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
(network-script network-bridge)
(vif-script vif-bridge)
(dom0-min-mem 196)
(enable-dom0-ballooning yes)
(dom0-cpus 0)
(vncpasswd '')

I tried comment out the (vif-script vif-bridge) and the
(network-script network-bridge) rows, even though
I don't understand why, since, I configure a bridge in the net config file...
But let me understand what to modify exactly.
The /etc/conf.d/net is the corresponding /etc/network/interfaces file on Gentoo.

At the moment this is the content of that file:
config_eth0=( "null" )

bridge_xenbr0="eth0"

brctl_xenbr0=(
"setfd 0"
"stp off"
)

config_xenbr0=(
  "dhcp"
)


If I understand correctly, you want me to correct the net file:
>
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
> # The loopback network interface
> auto lo
> iface lo inet loopback
Ok, this is not necessary in Gentoo..

> # The primary network interface
> auto eth1
> iface eth1 inet dhcp
#eth0 is the primary network interface
config_eth0=( "dhcp" )

> # Bridge definied
> auto xenbr0
> iface xenbr0 inet static
> address 192.168.1.45
> network 192.168.0.0
> netmask 255.255.255.0
> broadcast 192.168.1.255
> gateway 192.168.1.1
config_xenbr0=( "192.168.1.105 netmask 255.255.255.0 brd 192.168.1.255" )
routes_xenbr0=( "default via 192.168.1.254" )

> bridge_ports eth1
bridge_xenbr0="eth0"

> bridge_fd 9
> bridge_hello 2
> bridge_maxage 12
> bridge_stp off

brctl_xenbr0=(
"sethello 2"
"setfd 9"
"stp off"
)

So the (new) resulting config file is:
config_eth0=( "dhcp" )

config_xenbr0=( "192.168.1.105 netmask 255.255.255.0 brd 192.168.1.255" )
routes_xenbr0=( "default via 192.168.1.254" )

bridge_xenbr0="eth0"

brctl_xenbr0=(
"sethello 2"
"setfd 9"
"stp off"
)

But the only interface that is automatically coming up is eth0.
Once i start the VM, I get the following error:
Error: Device 0 (vif) could not be connected. Could not find bridge
device xenbr0
(Of course!)

But if I start the xenbr0 interface
(/etc/init.d/xenbr0 start)
and start the VM again, it still freezes on:
"[    4.438022] Sending DHCP requests ..."
And the Internet connection is not longer working (need to stop xenbr0).


Still the same problem...

I don't really understand why to change the network configuration, since it
worked up to few weeks ago. I didn't change anything and I didn't update any
package. The only new installation is virt-manager, but it was warking
too, before.

Thank you,

Flavio

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

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