I have an Ubuntu 9.04 desktop 64-bit guest OS running on an Ubuntu 9.04 desktop 64-bit host OS (yes, the same OS). I'd like to run a web server on the guest and make it accessible through NAT on the host.
I (think I) followed the VirtualBox port forwarding instructions, but the guest/VM won't start after I do the configuration.
Here's the configuration that I ran:
VBoxManage setextradata "<Guest Name>" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/Protocol" TCP
VBoxManage setextradata "<Guest Name>" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/GuestPort" 80
VBoxManage setextradata "<Guest Name>" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/guesthttp/HostPort" 8080
Where <Guest Name>
is the name of the guest VM image.
The error looks like this:
The same error happens regardless of whether I run the configuration while the VM is running, or not running.
Guest additions are installed.
How do I properly configure the NAT port forwarding? What is causing this error?
Best Answer
get all param you did for this WM with command:
You should see all value transmited to VM.
Remove all ligne begin with VBoXInternal by Copying and paste the line to command like this
with no value to the end. At end you should enumerate again and see no more lines of VBoxInternal.
Now you can make again the NAT rules, with different name for rules.
Under linux you should remind that PORTS <1024 should NOT be redirected. use 2222 for guestssh and 8080 for guesthttp (Example) For ease of use I personnaly use <1014 port under WINDOWS.
Hope this should help you.
(Sorry For English! I'm frenchy :P)
Jacques.guensherian