Unable to find host IP from devices


I’m new to packer and wanted to create a VM in VMware Workstation 16 on Windows 10, which automatically starts after being created.
When I run my script a VM is created but I always get an error it doesn’t start automatically:

“==> vmware-iso: Error detecting host IP: Unable to find host IP from devices [vmnet8], last error: No host declarations containing vmnet8 found”

This vmnet8 adapter is used by all my other VMs as “primary network adapter” so I don’t know why it says it’s unable to be found.
Maybe someone has/had a similar problem and knows how to fix this?

Thanks for answers in advance