0
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’t access it through my machine.
I set 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 I set up (192.168.33.10) and it’s all right, even when I turn off my vm from Vagrant the ping to work as it should be.
Apparently all right but I can’t access the URL through my machine: http://192.168.33.10:8080 stating that the page is not available. However, when I check on vm the port 8080 is being used by java as well as it should be.
If it serves as extra information:
- My machine is a Mac
- Yes, all the settings in the Vagrant that I made
- Both java and Tomcat installed via yum
Does anyone know what it could be? How do I access Tomcat from my machine? :)