5
1
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?
Are you sure your virtual network adapter is PCNet? When I create a virtual machine and choose ubuntu x64, i get e1000 by default. – Bender – 2009-10-01T13:57:45.317
Do you realy need NAT? Bridge is simplier to set, and this what you want will work instantaneously. – igustin – 2009-09-19T16:55:58.217
True, but I think NAT comes as default in certain versions. At least, it did when I set up my VBox using latest 8 months ago. – J. Polfer – 2009-10-01T13:44:01.717