How to ping a Virtual Box machine from a VMware machine or vice versa
I see a lot of people face this problem. I, myself had this problem when I was trying some Vulnerable Labs which were based on Virtual box and I was running Kali machine on VMware. After some hit and trial, I figured this out.
So to create a connection between these two platforms, we must create a bridged connection between the VM and Host machine.
On VMware this can be done by following
- right click the name tab of your machine or go to VM in menu bar
- go to removable devices then network adapter then setting
- select the bridged network option and make sure replicate the host address is not selected.
On Virtual box,
- Select the machine on main screen/dashboard
- go to settings, then network
- select Bridged adapter in attached to menu
A bridged connection allows the virtual machine to come under the same network as that of Host machine. It takes up local IP from dhcp pool of the router same as that of the the host machine.
So after creating bridged connection between VMWare and host machine, and Virtual Box and host machine, we can finally ping from VMware machine to Virtual box machine.