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

Re: [Xen-users] Howto start domU's network (gentoo-specific)?



Matthias Wolf wrote:

> You don't have to do this!
> The vif interfaces will be automatically started and added
> to the xenbr0 if you start a domU if you have configured xend-config.sxp
> with (standard) bridging:
> 
> (network-script network-bridge)

Again, this is Gentoo specific. The network-bridge script tries to
figure out what netdev is by "ip route list default scope global"
and take the last word. On gentoo, the output of the command ends
with "... eth0 metric 2000". Therefore I use explicitly
(network-script 'network-bridge netdev=eth0').
If I don't make the links to net.vifN.0, I see in /var/log/messages
(on dom0) net.agent[pid]: add event not handled
and the vifN.0 is not brought up (but IS added to the bridge) and
it won't try dhcp.
>  
> What does your dhcpd.conf in the dom0 and thru /etc/conf.d/net in the domU
> look like?
> 
On dom0, /etc/conf.d/dhcpd contains DHCPD_IFACE="eth0"
and the relevant part in /etc/dhcp/dhcpd.conf:

host CARDHU {
        hardware ethernet 00:16:3e:00:00:03;
        fixed-address 10.0.0.3;
}

There is no specific configuration for net.vifN.0 (not on dom0 and not
on domU) and therefore it defaults to dhcp.
It also makes no difference if I include dhcp="dhcp" in the domU
configuration file om dom0, or not.

Hans.

_______________________________________________
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®.