LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-25-2007, 01:36 AM   #1
RavenLX
Member
 
Registered: Oct 2004
Posts: 98

Rep: Reputation: 15
Question Can't get Ubuntu Server Apache from Brower in Virtual PC 2007 Host


I have been fighting for two weeks with this and I'm supposed to start coding something instead of still be setting this up. I've got nowhere in the setup alone.

I am trying to urn Ubuntu 6.06.1-server in Virtual PC 2007 (in WinXP Pro SP2). I tried using the MS Loopback adaptor and NOTHING is working! It will not show anything but my IIS default page in a web browser in WinXP and not the Apache default page. I need step-by-step instructions so I can set it up to use a browser on the host machine (WinXP Pro SP2) to access a page served by apache in Ubuntu running in Virtual PC 2007 (guest machine). All I've ever got for help was vague "step by step" instructions which led me on a wild goose chase for 2 weeks now. I really don't have this time and am WAY behind in what I am supposed to be doing, all because I can't even get it set up!

When I installed the MS loopback adaptor, it's default was 169.254.25.129 / 255.255.0.0. BUT if you look at the TCP/IP IP settings, it was all blank. I had to add in the IP and netmask to further configure it or I got an icon in the system tray with a yellow triangle and exclaimation point.

Now I let Ubuntu try and set up the loopback (selected it as the default network card) and it did but I can't get in using 169.254.25.129. Instead I get the default IIS server page. If I shut down IIS, I get host not found. Yet I can ping that address fine in both the host and the guest machine!

BTW, I have a wireless router and wireless card in the system. The system is entirely wireless.

I also found that while using the loopback interface, I can't do any apt-get's. IT can't find the host URLs either. ANd I need to do some apt-gets to update the software (part of the stuff I'm supposed to do).

What do I need to do to get this working? Or should I forget it and just write the code i'm supposed to and let someone else tell me if it worked or not and go back and forth like that instead of testing it on my own system (since it won't let me do that part of accessing the web site via browser)?

Ideas and help is much needed!
 
Old 07-25-2007, 06:56 PM   #2
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
In my opinion, I would stop using the loopback adapter right away. Then setup your GuestOS to use shared networking with your HostOS or NAT through the HostOS network. I have not played much with VPC but if it's anything like VMWare, the GuestOS should grab an IP through DHCP provided by VPC. Don't forget to power off the GuestOS before making the changes to the virtual network card.

Keep posting any findings.
 
Old 07-26-2007, 05:39 PM   #3
RavenLX
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by hrp2171
In my opinion, I would stop using the loopback adapter right away. Then setup your GuestOS to use shared networking with your HostOS or NAT through the HostOS network. I have not played much with VPC but if it's anything like VMWare, the GuestOS should grab an IP through DHCP provided by VPC. Don't forget to power off the GuestOS before making the changes to the virtual network card.

Keep posting any findings.
I haven't a clue what exactly you're talking about (I'm VERY new to all this). All I know is, shared networking (NAT) doesn't work either.

I can get onto the internet and apt-get the updates ok (I reinstalled the server on VPC with the shared networking (NAT) set as the adapter). It shows this for $ route -n:

Code:
Kernel IP Routing Table
Destination   Gateway         Genmask        Flags Metric Ref Use Iface
192.168.131.0 *               255.255.255.0  U     0      0   0   eth0
0.0.0.0       192.168.131.254 0.0.0.0        UG    0      0   0   eth0
ifconfig eth0 shows the Inet addr as 192.168.131.67, Bcast as 192.168.131.255, Mask as 255.255.255.0.

On the windows side, netstat does not show the guest OS's host name. And the routeing table in the host OS does not show the 192.168.131.* IP addresses.

I have my router set up to only accept connections on the Mac Accress list which I entered the mac addresses for the PC and my laptop adapaters. But I would think it would also allow connections from the Guest OS in VPC too. In fact, I entered the eth0 MAC address into the router and it shows it as inactive and not active when Ubuntu is running. So I don't know what is going on there.

http://192.168.131.67 (IP taken from the ifconfig eth0 command) in the Host OS's browser times out with no connection. I can't ping the 192.168.131.67 nor 192.168.131.0 addresses from the host OS (windows XP Pro) I CAN ping 192.168.131.67 from the guest OS (Ubuntu), though.

It's as if the Guest OS doesn't really exist as far as the Host OS is concerned. Like they can't connect or see each other.

/etc/hosts
127.0.0.1 localhost
127.0.0.1 cgi2

(plus some ipv6 stuff)

/etc/hostname
cgi2

/etc/network/interfaces
# The Loopback network interface
auto lo
iface lo inet loopback

#The primary network interface
auto eth0
iface eth0 inet dhcp

/etc/resolv.conf
(Shows two nameserver lines with my ISPs nameserver DNSs)

I'm totally stumped on how to get this to work. The two machines don't even know each other exists! But yet Ubuntu can access the internet.

Last edited by RavenLX; 07-26-2007 at 05:40 PM.
 
Old 07-26-2007, 06:34 PM   #4
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
Wow! Ok, assuming no firewall in WinXP, then edit /etc/hosts.allow and add the HostOS IP to it. Then try to ping the GuestOS, if successful then try browsing to it from WinXP.
 
Old 07-27-2007, 01:32 PM   #5
RavenLX
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
The XP Firewall is active, and allows Virtual PC to use the connections. I have reinstalled with Shared/NAT and am able to update using the Internet. But even with the Host IP in hosts.allow as you suggested, I still can not ping the guest OS from the host at all. I've run out of time and am a week behind in my work now because of the inability to do this so I have installed Lynx and will install a command line FTP program to do what I need to do. But I still would like to eventually figure this out too - just for my own curiosity.

BTW, I tried to ping the host OS (which I put the IP in hosts.allow) from Ubuntu and it won't do it. Just hangs trying.

So having the host IP in there doesn't help either.

For some reason, it simply isn't working. Period. Why, is beyond me. Like I said, it's as if the Host and Guest OS don't know each other exists.
 
Old 07-27-2007, 05:54 PM   #6
hrp2171
Member
 
Registered: Aug 2004
Location: California, USA
Distribution: Ubuntu
Posts: 243
Blog Entries: 3

Rep: Reputation: 30
I'm with you on this one. I'm stumped, too. Maybe once your project is over you won't be under too much pressure and be able to troubleshoot it. Hey, we tried...for now!
 
Old 07-27-2007, 10:54 PM   #7
RavenLX
Member
 
Registered: Oct 2004
Posts: 98

Original Poster
Rep: Reputation: 15
I'm with you there... I'll keep this topic bookmarked. It might be a few months because I have to do quite a lot to set up the server and test scripts etc. We're estimating a few months development time to do some stuff that needs doing.

But this IS a head-scratcher and a half. I think now with Virtual PC 2007's ability to run Linux OSs, I think we may find more of this type of thing and hopefully some answers.

And maybe by then I can learn more about networking, etc.
 
Old 04-14-2008, 04:57 PM   #8
Mayonese
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
Well this is pretty old thread and i stumbled upon it twiddling with the same problem and the solution is that you in Network Connections bridge Loopback Adapter and the original connection to the internet (Ctrl-click bot Local area connection 1 & Local area connection 2 and right click the selection and finish the procedure by clicking Add to Bridge). After that go to linux OS and type ifconfig command and see in eth0 the inet addr (mine was 192.168.100.13, your will be maybe different) and type that into your preferred web browser in Windows (make sure that your preferred server is active).
I hope this is enough laymen and that it will help to some poor soul that lost a day like me trying to figure out the solution.

oh BTW happy productive coding!
 
  


Reply

Tags
adapter, guest, loopback, network, networking, pc, virtual


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache virtual host help? paddyjoy Linux - Server 4 09-19-2006 05:49 AM
Apache - Name virtual host tisource Linux - Networking 5 03-03-2006 02:52 AM
About Virtual Host of Apache Server tommyliu Linux - General 5 06-17-2004 10:49 AM
Apache 2.0 Virtual Host? w0lfeyes Linux - Networking 1 05-03-2004 03:09 PM
apache virtual host mimi Linux - General 1 04-06-2002 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:14 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration