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: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-users] Re: Guests stops at "Sending DHCP requests ..."
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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=z2BJ3HIkT4AxmLDQFsPE7s6taJP237/JeF3sU1xoEDk=; b=hAMb4HrW4QbYjM0L7ZTcIToHQAIVZUOJorvChDN+SIJIjNBmpYdTbBdaZcutCZA+RO lEqc4fEKF5KLFo0t90uQ2holjqFNrZf9eZ29RZses4Wk+BIv4/gzWM04lxc6r1DBT3Pu WpMHKh8eSj6UkNVznUUf8z4J8iLafOuG5nqtQ=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <350505.97303.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <d75259650911240525t6a7470b5tca60eea611575950@xxxxxxxxxxxxxx> <350505.97303.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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