Without an IP address, Packer cannot connect to the VM. You won't be able to use a majority of our provisioners. However, if all you need is to run a vm and use a preseed file, you can use the "none" communicator and I believe that will work and Packer won't try to connect or wait for an IP address.
On Mon, Mar 9, 2020 at 3:19 AM lovi <[email protected]> wrote: > > Hello, > > I try to build VM without DHCP in my interfaces bu it seems that it must > try to find an IP during the build : > > ==> hyperv-iso: Configuring vlan... > ==> hyperv-iso: Determine Host IP for HyperV machine... > ==> hyperv-iso: Error getting host adapter ip address: No ip address. > ==> hyperv-iso: Clean up secondary dvd drives... > ==> hyperv-iso: Clean up os dvd drive... > ==> hyperv-iso: Unregistering and deleting virtual machine... > ==> hyperv-iso: Deleting output directory... > > And fail if not .. > > As I don't need IP : is there a way to tell him not to lookup for one ? > > > Thanks > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/d366d2ba-0997-4b87-9eb3-511e5cfd82c7%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/d366d2ba-0997-4b87-9eb3-511e5cfd82c7%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAGPV1uqWWsBh3FggYgj%2Bp89Y5qZggk-KtGc4%3DPkk5WjKNmEuLQ%40mail.gmail.com.
