Hello,
I’m having trouble using packer to build vagrant images for VMware Desktop in Github Actions using the vmware-vmx plugin on Ubuntu. The vagrant plugin also does not work. I worked through a few problems but I’m stuck at getting the IP address of the VM after it boots, so the script cannot ssh into the VM to finish provisioning. The thread is here: Timeout waiting for SSH · Issue #243 · hashicorp/packer-plugin-vmware · GitHub.
The logs are here:
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 A network mapper configuration file does not exist in the default path: /etc/vmware/netmap.conf
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 Checking alternate path for network mapper configuration file: /etc/vmware/networking
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 Located the network mapper configuration file: /etc/vmware/networking
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 GuestIP discovered device matching nat: vmnet8
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 Lookup up IP information...
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 GuestAddress discovered MAC address: 00:0c:29:b6:fc:91
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 Trying DHCP leases path: /etc/vmware/vmnet8/dhcpd/dhcpd.leases
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 Unable to find an exact match for DHCP lease. Falling back loose matching for a hardware address 00:0c:29:b6:fc:91
==> vmware-vmx.box: Waiting for SSH to become available...
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 IP lookup failed: none of the found device(s) [vmnet8] have a DHCP lease for MAC address 00:0c:29:b6:fc:91
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 [DEBUG] Unable to get address during connection step: IP lookup failed: none of the found device(s) [vmnet8] have a DHCP lease for MAC address 00:0c:29:b6:fc:91
2024/10/16 19:54:16 packer-plugin-vmware_v1.1.0_x5.0_linux_amd64 plugin: 2024/10/16 19:54:16 [INFO] Waiting for SSH, up to timeout: 10m0s
I am able to use vagrant and packer with Virtualbox on Ubuntu in Github Actions without any problem.
Does anyone have any suggestion for how to get past the DHCP issue and get VMware builds working?
Thanks.