Abhay Bhadani
2009-Mar-09 07:20 UTC
[Xen-users] Related to accessing guest OS based web server
Hi All, I am trying to run 2 instances of Apache Web Server. One on Fedora 8 Host Linux - dom0 and another instance in Guest OS which is also Fedora 8. The IP of Dom-0 / host OS is 10.100.64.23 and IP of Guest OS is : 192.168.122.71 I am able to access web pages of Dom-0 i.e 10.100.64.23 from my other systems on my network. But i am unable to access the web pages of Guest OS which is running on 192.168.122.71 from other systems on the network. Whereas i am able to access it from Dom-0 Host OS i.e http://192.168.122.71 and vice versa. Can anyone give some idea why is it so? How can i access the web pages of guest OS based Web Server from my other systems in my network? Regards, Abhay _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maresa Nirwan
2009-Mar-09 07:45 UTC
RE: [Xen-users] Related to accessing guest OS based web server
It''s most likely network issue. From outside Dom0 (your other systems on your network), what''s the IP range? I''d imagine it''s something like 10.100.64.23/24. If you don''t have a route setup for your 192.168.122.71, then that''s the problem. I''d recommend having the guest os on the same subnet as your Dom0. MSN Date: Mon, 9 Mar 2009 12:50:04 +0530 From: abhadani@gmail.com To: xen-users@lists.xensource.com Subject: [Xen-users] Related to accessing guest OS based web server Hi All, I am trying to run 2 instances of Apache Web Server. One on Fedora 8 Host Linux - dom0 and another instance in Guest OS which is also Fedora 8. The IP of Dom-0 / host OS is 10.100.64.23 and IP of Guest OS is : 192.168.122.71 I am able to access web pages of Dom-0 i.e 10.100.64.23 from my other systems on my network. But i am unable to access the web pages of Guest OS which is running on 192.168.122.71 from other systems on the network. Whereas i am able to access it from Dom-0 Host OS i.e http://192.168.122.71 and vice versa. Can anyone give some idea why is it so? How can i access the web pages of guest OS based Web Server from my other systems in my network? Regards, Abhay _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Abhay Bhadani
2009-Mar-09 17:16 UTC
[Xen-users] Re: Related to accessing guest OS based web server
Hi Maresa, Thanks for the response. I tried to set similar IP address after removing DHCP ie. 10.10.64.123 with subnet mask 255.255.255.0 in the guest OS manually, but in this case it is even unable to ping host OS-Dom 0 i.e 10.100.64.23 with subnet mask 255.255.255.0 I tried to give default gateway 10.100.64.2 in the guest OS i.e fedora 8 but then also it didn''t work. I also tried to assign default gateway as 10.100.64.23 but it also didnt work. How should i set the route to the existing IP address i,e 192.168.122.71 or any other suggestion that might work. Regards, Abhay> Message: 5 > Date: Mon, 9 Mar 2009 07:45:37 +0000 > From: Maresa Nirwan <parampat@hotmail.com> > Subject: RE: [Xen-users] Related to accessing guest OS based web > server > To: <xen-users@lists.xensource.com> > Message-ID: <BAY107-W43AA6AAEB569D5AF4393B4C5A00@phx.gbl> > Content-Type: text/plain; charset="iso-8859-1" > > > It''s most likely network issue. From outside Dom0 (your other systems on > your network), what''s the IP range? I''d imagine it''s something like > 10.100.64.23/24. If you don''t have a route setup for your 192.168.122.71, > then that''s the problem. I''d recommend having the guest os on the same > subnet as your Dom0. > > MSN > > Date: Mon, 9 Mar 2009 12:50:04 +0530 > From: abhadani@gmail.com > To: xen-users@lists.xensource.com > Subject: [Xen-users] Related to accessing guest OS based web server > > Hi All, > > > I am trying to run 2 instances of Apache Web Server. One on Fedora 8 > Host Linux - dom0 and another instance in Guest OS which is also Fedora 8. > > The IP of Dom-0 / host OS is 10.100.64.23 > > and IP of Guest OS is : 192.168.122.71 > > I am able to access web pages of Dom-0 i.e 10.100.64.23 from my other > systems on my network. But i am unable to access the web pages of Guest OS > which is running on 192.168.122.71 from other systems on the network. > > > Whereas i am able to access it from Dom-0 Host OS i.e > http://192.168.122.71 and vice versa. > > Can anyone give some idea why is it so? How can i access the web pages > of guest OS based Web Server from my other systems in my network? > > > Regards, > Abhay > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > http://lists.xensource.com/archives/html/xen-users/attachments/20090309/5258bacb/attachment.html > > ------------------------------ > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users > > > End of Xen-users Digest, Vol 49, Issue 48 > ***************************************** >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Fajar A. Nugraha
2009-Mar-09 17:41 UTC
Re: [Xen-users] Re: Related to accessing guest OS based web server
On Tue, Mar 10, 2009 at 12:16 AM, Abhay Bhadani <abhadani@gmail.com> wrote:> How should i set the route to the existing IP address i,e 192.168.122.71 > or any other suggestion that might work.If you''re familiar with vmware, then what you''re (most likely) using right now is similar to vmware''s NAT networking. To access a domU (guest) from other hosts you need to use bridged networking. On xen, this is done by selecting the bridge xenbr0 (or whatever bridge your ethernet device is on) instead of virbr0. After that, you need to setup domU''s networking the same way you setup any other host on dom0''s network (whether it''s static IP or dhcp). Regards, Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users