KhaosT / MacVM

macOS VM for Apple Silicon using Virtualization API
Apache License 2.0
1.33k stars 97 forks source link

Programatically get IP of VM #44

Open hokadiri opened 1 year ago

hokadiri commented 1 year ago

Hi, is there a way to programatically get the IP of the VM so i can SSH into it?

hokadiri commented 1 year ago

Looking at tart, they parse /var/db/dhcpd_leases.

But one needs to know the mac address.

How can we get that?