|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Cannot access to Apache on Xen VM
Hi Freddie,
there is another workaround so you don't have to do that stuff manually.
go to your /etc/xen/scripts directory and edit the xen-network-common.sh
scroll down until you see the following function:
add_to_bridge ()
modify the function from this:
add_to_bridge () {
local bridge=$1
local dev=$2
# Don't add $dev to $bridge if it's already on a bridge.
if [ -e "/sys/class/net/${bridge}/brif/${dev}" ]; then
ip link set ${dev} up || true
return
fi
brctl addif ${bridge} ${dev}
ip link set ${dev} up
}
to this (only the last line with 'ethtool' in it:
add_to_bridge () {
local bridge=$1
local dev=$2
# Don't add $dev to $bridge if it's already on a bridge.
if [ -e "/sys/class/net/${bridge}/brif/${dev}" ]; then
ip link set ${dev} up || true
return
fi
brctl addif ${bridge} ${dev}
ip link set ${dev} up
ethtool -K ${dev} tx off
}
So now, everytime a virtual network device is added to the bridge, the
script will turn off checksumming on this device.
Have a nice day Greetz Age_M freddie weng wrote: Hi Age_M,It works!Thank you so so much!! I did exactly what you said and now I can access to the apache perfectly!! You are so nice ~all the best, _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |