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—accessing the NAT mode in your VM

In this exercise, I'll show you how the NAT mode lets you do some basic networking tasks in your virtual machine as if you were working with a real PC behind a firewall or router. I'll also show you how to set up a web server in one of your virtual machines and test if you can access that web server from your host PC. In this exercise, I used a Windows XP system as the host PC and the UbuntuVB virtual machine we created in previous chapters.

  1. If you're using a Windows host, open a Command Prompt window and type ipconfig, followed by Enter. If you're using a Linux host, open a terminal window and type ifconfig, followed by Enter. Your IP configuration will show up next, as in the following screenshot ...

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