how to use hyperv-iso offline

16 views
Skip to first unread message

lovi

unread,
Mar 9, 2020, 6:19:36 AM3/9/20
to Packer

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

Megan Marsh

unread,
Mar 9, 2020, 11:18:42 AM3/9/20
to packe...@googlegroups.com
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.

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/d366d2ba-0997-4b87-9eb3-511e5cfd82c7%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages