1
I have a tomcat (Liferay) project, up and running on my Ubuntu laptop. So, I wanted to be able to run it on virutualbox guest.
I created the virtual machine,deployed the files and now it's up and running. (Or at least the ant command for starting the project finishes successfully.)
So, how should I open the project from the virtual machine?
=======================
I. The Host:
- The project opens on "portal.local" (it has record in the database for it), so I have record in my /etc/hosts file: 127.0.0.1 portal.local
II. The virtual machine:
- It uses NAT adapter/settings.
- It has it's IP - 10.0.2.15.
- I've made port forwarding, in order to be able to SSH to it: 127.0.0.1:22222 -> 10.0.2.15:22 ... and this way I can use
ssh -p 22222 {username}@127.0.0.1
- to SSH to the virtual machine.
=======================
So, what changes should I do to the host and/or the virtual machine, so I open the project from the virtual guest?
Thanks in advance :)