Page 1 of 1

Can't set up web server on Guest Fedora 10

Posted: 25. May 2009, 05:09
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!

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

Posted: 25. May 2009, 11:21
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.

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

Posted: 25. May 2009, 14:39
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. :)