taliesins / packer-baseboxes

Templates for packer to build base boxes
224 stars 93 forks source link

hyper-v ISO builder - how to assign IP address the VM???? #22

Open muthurd opened 6 years ago

muthurd commented 6 years ago

hyper-v ISO builder - how to assign static IP address the to the VM????

I am trying to build a hyper-v VM through the JSON hyperv-windows-2012R2-serverstandard-amd64.json, Since there are no options to specify the IP address, the build could not connect to internet to get the windows update, Please advise, if I am missing anything.

Even the VM not getting the IP from DHCP server installed on the same Hyper-v HOST

fsdrw08 commented 3 years ago

I think you had to assign IP via the DHCP server in the same VM network you mention, set up a gateway VM (VYOS in my case) with DHCP services at the very first, that's my solution to assign IP and make VM discoverable by packer and connect VM to internet