[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: Flavio <fbcyborg@xxxxxxxxx>
  • 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
  • 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=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

> 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.