How do I find the IP address of a virtual machine using VMware Fusion?
Solution 1:
Short Answer: No
Long Answer: No but maybe
An IP address is purely the responsibility of an OS. Therefore, the virtual framework that holds the OS has no idea about the TCP/IP stack within unless there are symbiotic additions to the framework such as Hyper-V and VMware's additional guest tools (thanks to todda.speot.is in the comments below). It's not much different than wanting to browse the files on a VM without starting it up first.
Technically, if the VM relies on DHCP, you could search your DHCP server (likely your LAN's router) for the last lease that was handed out to the MAC address of the virtual NIC to get a good idea of what the IP would probably be the next time it launches. That's assuming that same IP wasn't handed out to another device in between when you looked at the lease history and when the VM started up.
Solution 2:
VMWare provides, not surprisingly, a built in tool for this, vmrun
. It's under /Applications/VMware Fusion.app/Contents/Library/vmrun
although it has moved around in other Fusion releases a bit.
🍺 vmrun list
Total running VMs: 1
.docker/machine/machines/myvm.vmx
🍺 vmrun getGuestIPAddress ~/.docker/machine/machines/myvm.vmx
172.16.213.128