O'Reilly logo

VirtualBox 3.1: Beginner's Guide by Alfonso V Romero

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—enabling port-forwarding in NAT mode

In the following exercise, I'll show you how to use the port-forwarding feature available in the NAT networking mode of your UbuntuVB virtual machine, so that your host PC can access the web server from the previous Time for action—Accessing the NAT mode in your VM section.

Note

When using the VBoxManage command on a Windows host, you need to add the full path to the VBoxManage command; another option is to add the VirtualBox installation folder—the default being "C:\Program Files\Sun\VirtualBox\"—to your system path.

On Linux systems, you don't have to specify the VirtualBox path when using the VBoxManage command.

  1. Open a Command Prompt and type the following lines, pressing Enter after each one: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required