I'm now trying to use packer to build an VMware Fusion VM image, I can use packer to build the VM, however it relies on using the packer http kickstart server to present the kickstart file.
The issue I have it that there is only one virtual network that can reach my packer http server.
Is it possible to specify the virtual network to connect to in the packer JSON template ?
This is my current builder section of the template
"builders": [{
"headless": true,
"type": "vmware-iso",
"vm_name": "{{user `vm_name`}}",
"guest_os_type": "rhel7-64",
"vmdk_name": "rhel7",
"disk_size": "8192",
"vmx_data": {
"numvcpus": 2,
"cpuid.coresPerSocket": 1,
"memsize": 2048,
"ethernet0.virtualDev": "vmxnet3",
"virtualHW.version": "11"
},
I was hoping for something like the below in the builder template, to ensure my newly created vm is on the correct network to get the kickstart.
"virtualNetwork": "vmnet3"
I've looked through the documentation on the packer site, and a number of other places, but i'm struggling to find anything to help.
Any suggestions would be very welcome.
Thanks
Jim