I'm starting to learn about Vagrant. I started provisioning a machine with Centos 7 Minimal, I installed Java and Tomcat, I ran Tomcat, I checked the processes it is running, but I can not access it through my machine.
I configured a static ip for this machine in several ways, but the last configuration was as follows:
Vagrant.configure(2) do |config|
config.vm.define :tomcat do |tom|
tom.vm.box = "relativkreativ/centos-7-minimal"
tom.vm.network "private_network", ip: "192.168.33.10"
end
end
I ping from my machine on the ip that I set up (192.168.33.10) and everything is fine, even when I turn off my Vagrant vm the ping stops working as it should.
Apparently all right but I can not access the URL through my machine: link stating that the page is not available. But when I check in vm port 8080 is being used by java also as it should be.
If you serve as extra information:
- My machine is a Mac
- Yes, all the settings in the Vagrant that I made came from vm
- Both java and tomcat installed via yum
Does anyone know what it could be? How do I access tomcat from my machine? :)