Page 1 of 1

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

Posted: 14. Jan 2009, 08:31
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? :)

Posted: 15. Jan 2009, 00:07
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.

Posted: 15. Jan 2009, 01:20
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.