Getting the IP address of a running VirtualBox VM
To get the IP address of a running virtual machine we just need to do the following:
VBoxManage guestproperty get <UUID|Machine Name> "/VirtualBox/GuestInfo/Net/0/V4/IP"
This will give you the IP4 address of the Virtual Machine if it’s set.