Can't set up web server on Guest Fedora 10

Discussions related to using VirtualBox on Windows hosts.
Post Reply
kira3117
Posts: 2
Joined: 25. May 2009, 04:48
Primary OS: MS Windows XP
VBox Version: OSE Fedora
Guest OSses: Fedora 10

Can't set up web server on Guest Fedora 10

Post by kira3117 »

Hi all,

I am using XP on Host and installed Fedora 10 on Guest. My XP host web server is successfully configured and can be accessed using free domain name. The Fedora 10 Guest web server is also configured and can be accessed on Guest web browser by using http://localhost.
I used NAT in virtualbox and I tried the port forwarding command as follow.

VBoxManage setextradata "virtual core" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/Protocol" TCP
VBoxManage setextradata "virtual core" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/GuestPort" 22
VBoxManage setextradata "virtual core" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guestssh/HostPort" 2222

VBoxManage setextradata "virtual core" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol" TCP
VBoxManage setextradata "virtual core" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort" 80
VBoxManage setextradata "virtual core" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort" 8888

After running these commands, I can use putty(ssh) on XP Host to access Fedora Guest. However, I still cannot access Fedora Guest by typing http://localhost:8888 on XP host. I didn't enable firewall in XP and I am using F-secure as Anti-virus agent. Can anyone tell me how to solve it? Thanks!
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Can't set up web server on Guest Fedora 10

Post by Sasquatch »

Are you using the PCNet adapter for the Guest? If not, edit the xml file and replace pcnet with e1000. Also check with netstat or similar tools to see if the port is actually open on the Host. Maybe your anti-virus is blocking VB.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
kira3117
Posts: 2
Joined: 25. May 2009, 04:48
Primary OS: MS Windows XP
VBox Version: OSE Fedora
Guest OSses: Fedora 10

Re: Can't set up web server on Guest Fedora 10

Post by kira3117 »

Thanks for Sasquatch advices. I solved the problem. I found that port 80 in Fedora 10 is disabled by default installation. When I enable the port 80, I can access guest web server on XP host. :)
Post Reply