Wednesday, March 18, 2015

Oracle VirtualBox and port forwarding



After setting up a VirtualBox it can be handy to start using the port forwarding functionality that VirtualBox offers, however sometimes things might work against you.

The Virtual Machine that I created is based on Red Hat Enterprise Linux 6, “RHEL 6 Update 6”, but the issues discussed here will apply to most Linux distributions. Other software installed: Oracle database 12c, Weblogic 10.3.6 and WebCenter Content version 11 PS7. My problem was that the port forwarding functionality of VirtualBox did not work after the initial setup.

I like to access the WebLogic Admin on my VirtualBox from my Host on port 7001 via an URL like http://localhost:7001/console and WebCenter Content on port 16200 etc.  The port forwarding functionality of the VirtualBox can be used and is very handy for this.

It seems easy, just start forwarding the port using the instructions in the GUI or after reading the documentation on the VirtualBox port forwarding facility http://www.virtualbox.org/manual/ch06.html#natforward.


After troubling yourself about it for hours and reading the VitualBox documentation about networking ten times you realize that the Firewall might cause the problem. You can start the firewall configuration from the GUI on the Virtual Machine using the menu options: System --> Administration --> Firewall.

Something else that might be needed is mark the Ethernet interface on the Virtual Machine as trusted:


In the past I used one or two Virtual Machines that were prepared by Oracle, and later on investigating these machine I discovered that the firewall was turned of completely, which is also a way of getting port forwarding to work.

Is this message in this blog worthwhile mentioning it? We could call it one of the blogs of silly things, one of the things that can be easily overlooked. Reading all the stories about port forwarding and the VirtualBox I found it worthwhile to open a blog for it.
Do you have more of these silly things worthwhile mentioning on the Virtual Box software?

No comments:

Post a Comment