There are 2 virtual machines in Oracle VM VirtualBox: Ubuntu and Windows 7. I needed to get access to the PostgreSQL database located on ubuntu with Windows 7. I was looking for how to connect, I found that both virtual machines have the same IP (in the settings there is NAT). I was looking for solutions on different sites, I learned that I needed to use a virtual host adapter, but I still didn’t understand how to properly configure it. If someone can tell, I will be grateful.

At the moment, both virtualki are connected via NAT and have IP 10.0.2.15.

    1 answer 1

    Found the answer to my question, maybe someone will come in handy. We enable virtual adapters on both virtual machines. Like this: enter image description here

    Look what happened: enter image description here enter image description here

    Networks 10.0.XX - NAT, we are interested in adapters with networks 192.168.XX

    Check the connection: enter image description here