I am just starting to learn Metasploit and trying to practice on a metasploitable2 instance. My host system is Ubuntu and I have 2 virtual machines set up in VMware Player. The first one has Kali 2.0 installed and is running in bridged mode. The second has Metasploitable2 installed and is running in host-only mode. My problem is that I can't access the Metasploitable2 vm from the Kali vm. This makes sense cause it is in host-only mode and thus can only be accessed from my Host os (ubuntu).
I was following the Metasploit-unleashed guide and they state that the metasploitable2 vm should only be run in host-only or NAT mode but I have tried pinging the metasploitable2 ip from kali in both modes with no response. How should I be setting this lab up? Thanks.