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

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


  • To: Boris Derzhavets <bderzhavets@xxxxxxxxx>
  • From: Flavio <fbcyborg@xxxxxxxxx>
  • Date: Tue, 24 Nov 2009 17:14:25 +0100
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 24 Nov 2009 08:15:39 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=eNeG4ijvVo5HuU9MLWTS3aSZ17GHijNcbIY+92/JA2nhNadMMvW4lLa0WCW8Bd6Jy4 q4KSFMj2RGuw81VMC02xlUmvWUlfGqdSimnhURL4zlo+tilmvQjJudc17UfFwJqs1gRt 9/NZ/wZEoqFmE9O3IQZA5UPc8qr8SE2Gf/taQ=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

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