|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] GPLPV and dhcp should it work?
I was sure I forgot something :">There is no physical interface, I use a stripped down network-bridge that doesn't add any physical interface to the bridge. I have attached it here. The vif script is the standard bridge one. Also I have tried gplpv from this packages: "gplpv_chk_wlh_x86_0.10.0.83.msi" and "gplpv_chk_wlh_x86_0.10.0.86.msi" Silviu Pasi Kärkkäinen wrote: On Mon, Sep 14, 2009 at 06:08:50PM +0300, Silviu Paragina wrote:My problem: I have- a xen ubuntu 9.04 with xen from the repository (3.3.0 with some patches) and the debian kernel- windows 2008 server guest with the attached config - dhcp3 server with the attached config If I leave everything as is (without gplpv) everything works great.If I install gplpv and remove type=ioemu from the config the machine can not get the ip, but if I manually set the ip address it works fine.On the dhcp server side I get "dhcpd: 5 bad udp checksums in 5 packets"What's the physical NIC you have?Please run "ethtool -i peth0" in dom0. Also check the offloading settings in dom0 for the NIC: "ethtool -k peth0" -- PasiI have tried Checksum offloading from properties on the xen network device with no luck. I shall try again anyhow (I might have missed something, because I had other issues with xen at the time).Also on another note the iso image, attached as a cdrom, vanishes after I install the drivers, but this doesn't matter much.Searching with google I have found a few sites some that say this is solved, some that say to disable Checksum offloading, but all sites I have found refer to the 0.9.x version of the drivers, so I'm not sure of anything. Is this how they are supposed to act?Silviu #!/bin/bash
#============================================================================
# Default Xen network start/stop script.
# Xend calls a network script when it starts.
# The script name to use is defined in /etc/xen/xend-config.sxp
# in the network-script field.
#
# This script creates a bridge (default ${netdev}), adds a device
# (defaults to the device on the default gateway route) to it, copies
# the IP addresses from the device to the bridge and adjusts the routes
# accordingly.
#
# If all goes well, this should ensure that networking stays up.
# However, some configurations are upset by this, especially
# NFS roots. If the bridged setup does not meet your needs,
# configure a different script, for example using routing instead.
#
# Usage:
#
# network-bridge (start|stop|status) {VAR=VAL}*
#
# Vars:
#
# bridge The bridge to use (default ${netdev}).
# netdev The interface to add to the bridge (default gateway device).
# antispoof Whether to use iptables to prevent spoofing (default no).
#
# Internal Vars:
# pdev="p${netdev}"
# tdev=tmpbridge
#
# start:
# Creates the bridge as tdev
# Copies the IP and MAC addresses from pdev to bridge
# Renames netdev to be pdev
# Renames tdev to bridge
# Enslaves pdev to bridge
#
# stop:
# Removes pdev from the bridge
# Transfers addresses, routes from bridge to pdev
# Renames bridge to tdev
# Renames pdev to netdev
# Deletes tdev
#
# status:
# Print addresses, interfaces, routes
#
#============================================================================
dir=$(dirname "$0")
. "$dir/xen-script-common.sh"
. "$dir/xen-network-common.sh"
findCommand "$@"
evalVariables "$@"
bridge=${bridge:-xenbr}
antispoof=${antispoof:-no}
do_ifup() {
if ! ifup $1 ; then
logger -t xen "Couldn't bring $1 up"
fi
}
##
# link_exists interface
#
# Returns 0 if the interface named exists (whether up or down), 1 otherwise.
#
link_exists()
{
if ip link show "$1" >/dev/null 2>/dev/null
then
return 0
else
return 1
fi
}
# Set the default forwarding policy for $dev to drop.
# Allow forwarding to the bridge.
antispoofing () {
iptables -P FORWARD DROP
iptables -F FORWARD
iptables -A FORWARD -m physdev --physdev-in ${pdev} -j ACCEPT
}
# Usage: show_status dev bridge
# Print ifconfig and routes.
show_status () {
local bridge=$1
echo '============================================================'
ip addr show ${bridge}
echo ' '
brctl show ${bridge}
echo ' '
ip route list
echo ' '
route -n
echo '============================================================'
}
op_start () {
if [ "${bridge}" = "null" ] ; then
return
fi
if link_exists "${bridge}"; then
# The device is already up.
return
fi
create_bridge ${bridge}
do_ifup ${bridge}
if [ ${antispoof} = 'yes' ] ; then
antispoofing
fi
}
op_stop () {
if [ "${bridge}" = "null" ]; then
return
fi
if ! link_exists "$bridge"; then
return
fi
brctl delbr ${tdev}
}
case "$command" in
start)
op_start
;;
stop)
op_stop
;;
status)
show_status ${bridge}
;;
*)
echo "Unknown command: $command" >&2
echo 'Valid commands are: start, stop, status' >&2
exit 1
esac
_______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |