Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to access Oracle DB in VirtualBox from Host (windows)

I installed VirtualBox with a Oracle VM.

Now I simply try to access the Oracle Database of the VM from the host environment, but it doesn't work.

ipconfig on my host shows an IP number, but when I try to open this (Port 80), i get the content of localhost of the host system instead of the content of the server in the VirtualBox.

Which is the proper network setting ?

like image 619
ABX Avatar asked May 24 '11 22:05

ABX


People also ask

How do I access VirtualBox VM from host?

On VirtualBox, choose the guest VM you want to access, and open Settings window of the VM. Click on Network menu on the left, click on Advanced to show additional network adapter options. Click on a button labeled Port Forwarding . You will see a window where you can configure port forwarding rules.


2 Answers

- Use Host-Only Networking on your guest machine

enter image description here

- See if the server (WEB, DB etc.) is running.

enter image description here

- Mouse-over network icon on status bar to note ip address

enter image description here

- From your host browser send a request to your quest server

enter image description here

like image 127
Kerem Baydoğan Avatar answered Oct 21 '22 17:10

Kerem Baydoğan


I usually do a bridged connection so the vm will pick up an ip address from my router's dhcp; if that option is not available, your other option is to employ port forwarding where you assign an unused port on the host machine to forward to the port on the vm. The virtual box manual has a lot of useful info on both of these options. Let us know if you need additional info or examples.

like image 35
baraboom Avatar answered Oct 21 '22 19:10

baraboom