KhaosT / MacVM

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

IP keep increasing #28

Open rluvaton opened 2 years ago

rluvaton commented 2 years ago

Great project!

Each time I turned on the VM the IP is increasing by one (e.g. from 192.168.64.4 to 192.168.64.5) and I'm afraid that there are some forgotten cleaning that when it reaches 192.168.4.254 it would no longer be able to turned on

DeEskalator commented 2 years ago

I noticed the same behaviour

fkorotkov commented 2 years ago

It's because macAddress is not set and by default it's random.

Good news that the DHCP lease is only 24 hours so don't start too many VMs in a day. In our experiment it broke networking when we tried to sequentially start/stop bunch of VMs.