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] Cannot access to Apache on Xen VM

To: freddie weng <freddieweng@xxxxxxxx>
Subject: Re: [Xen-users] Cannot access to Apache on Xen VM
From: Age_M <Age_M@xxxxxx>
Date: Wed, 11 Jun 2008 22:51:41 +0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 11 Jun 2008 13:52:20 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <153688.35769.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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <153688.35769.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.14 (X11/20080505)
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,
Freddie

*/Age_M <Age_M@xxxxxx>/* wrote:

    Hi Freddie,

    maybe it's a checksum problem. try to disable transfer
    checksumming with
    ethtool.
    First you need to check which ID your domU has:

    # xm list

    Then you turn off tx checksumming with ethtool:

    # ethtool -K vif.0 tx off

    So for a domU with ID 12 it would be:

    # ethtool -K vif12.0 tx off

    Hope it helps,
    Greetz Age_M


    freddie weng schrieb:
    > Hi all,
    >
    > I have installed an apache server on my Virtual Machine but I
    can't access to that URL from outside.
    > However I can ping the virtual machine from outside successfully.
    > Do you have any ideas about this issue?
    >
    > thanks in advance,
    > freddie
    >
    >
    ------------------------------------------------------------------------
    > Ask a question on any topic and get answers from real people.
    *Go to
    > Yahoo! Answers.*
    >
    ------------------------------------------------------------------------
    >
    > _______________________________________________
    > Xen-users mailing list
    > Xen-users@xxxxxxxxxxxxxxxxxxx
    > http://lists.xensource.com/xen-users


------------------------------------------------------------------------
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the *All-new Yahoo! Mail * <http://ca.promos.yahoo.com/newmail/overview2/>


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>