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@lists.xensource.com http://lists.xensource.com/xen-users
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<domU-ID>.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.* <http://ca.answers.yahoo.com> > ------------------------------------------------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@gmx.de> 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@lists.xensource.com > 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
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@gmx.de>/* 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@lists.xensource.com > > 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@lists.xensource.com http://lists.xensource.com/xen-users
Hi Age_M, Thanks again for your suggestion. This solution worked at first, but it doesn''t work for my second VM. And it doesn''t work for my VM on another machine. It''s really weird!! BTW, I also can''t access to the VNC server on the VMs though I can ping and ssh them. Do you have any idea of this problem? thanks very much, Freddie --- On Wed, 6/11/08, Age_M <Age_M@gmx.de> wrote: From: Age_M <Age_M@gmx.de> Subject: Re: [Xen-users] Cannot access to Apache on Xen VM To: "freddie weng" <freddieweng@yahoo.ca> Cc: xen-users@lists.xensource.com Received: Wednesday, June 11, 2008, 2:51 PM 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<domU-ID>.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''taccess 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 >__________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users