Web Host on Guest (Ubuntu) Not Accessible on Host (Vista)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
moltendorf
Posts: 3
Joined: 14. Jan 2009, 08:14

Web Host on Guest (Ubuntu) Not Accessible on Host (Vista)

Post by moltendorf »

I have recently installed Ubuntu 8.10 64-bit as a guest operating system under Windows Vista Ultimate 64-bit (running VirtualBox 64-bit)

I think you get that this is 100% 64-bit environment. :)

Web host software running: (Not installed using synaptic package manager)
Apache 2.2.11 (Installed to /usr/web/httpd)
PHP 6.0-dev (Installed to /usr/web/php)
MySQL 6.0.8-alpha (Installed to /usr/web/mysql)

I've run the following commands in command prompt in Windows Vista (Host):
cd C:\Program Files\Sun\xVM VirtualBox
VBoxManage setextradata Ubuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" 80
VBoxManage setextradata Ubuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" 80
VBoxManage setextradata Ubuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" TCP

Yet, I cannot access the web server in Windows Vista (Host), even after restarting.
I have tried using all four of the "virtual" network adapters available in VirtualBox, yet none of them work. I have also tried using NAT, and Host Interface to no success.

Any hints? :)
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

Post by Sasquatch »

NAT port forwarding doesn't work on TCP in 2.1.0. It's broken. It should be fixed in the SVN, so the next release, which isn't too far away, should have it. For now, either downgrade to 2.0.6 where it works, or switch to HIF, where the VM will become a part of the network.
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.
moltendorf
Posts: 3
Joined: 14. Jan 2009, 08:14

Post by moltendorf »

Alright, I realized that "Host Interface" was like it was another computer on the network, and not sharing my current computer's network (which is what I thought it was doing). The reason it didn't initially work is because I set it up to use the same IP address as my host machine, and didn't treat it as an entirely separate machine.

I already solved it, but forgot to say so here, Thanks.
Post Reply