DId you follow the note on the bottom of https://packer.io/docs/builders/hyperv-iso.html?
Note for *nix guests: Please note that packer requires the VM to be running > a hyper-v KVP daemon in order to detect the IP address of the guest VM. On > RHEL based machines this may require installing the package hyperv-daemons > and ensuring the hypervkvpd service is started at boot. On Debian based > machines, you may need linux-cloud-tools-common for hv_kvp_daemon. Failure > to do this may cause packer to wait at Waiting for SSH to become > available... before eventually timing out. On Tue, Oct 8, 2019 at 6:56 PM Andre Moraes (ICARO TECH) < [email protected]> wrote: > Hello everyone, > > I’m new in Packer world and I’m stuck in a few days trying to create an > hyperv image using CoreOS as ‘iso’. > Here’s the template that I’m using right now: > > { > "description": "CoreOS image for a VirtualBox platform.", > > "builders": [{ > "type": "hyperv-iso", > "iso_url": > "https://stable.release.core-os.net/amd64-usr/current/coreos_production_iso_image.iso", > "iso_checksum": "5d41fe61404f298a87f303d766b84d3b", > "iso_checksum_type": "md5", > "ssh_username": "packer", > "ssh_password": "packer", > "vm_name": "testvm", > "memory": 3000, > "ssh_timeout" : "10m", > "shutdown_command": "echo 'packer' | sudo -S shutdown -P now", > "boot_wait": "50s", > "http_directory": "./extra/files", > "boot_command": [ > "sudo -i<enter>", > "systemctl stop sshd.socket<enter>", > "wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.yml<enter>", > "coreos-install -d /dev/sda -C {{user `channel`}} -c install.yml<enter>", > "reboot" > ] > }] > > } > > Error: [DEBUG] Error getting SSH address: No ip address > Timeout waiting for SSH. > > > Full packer_log attached. > > Your privacy is important to us. That is why we have taken appropriate > measures to ensure the data you provide to us is kept secure. To learn more > about how we process your personal information, how we comply with > applicable data protection laws, and care for the security and privacy of > your personal data, please review our Privacy Policy > <https://www.motorolasolutions.com/en_us/about/privacy-policy.html#privacystatement>. > If you have any questions related to data protection and compliance with > applicable laws, please contact us at our Security Operations Center at > 1-302-444-9838 > or mail us at: > > Attention: Privacy Compliance Program, P.O. Box 59263, Schaumburg, IL > USA, 60159-0263 > > -- > 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/50eea96a-3d64-4d90-9a6c-5bb4d48edc85%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/50eea96a-3d64-4d90-9a6c-5bb4d48edc85%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/CALz9Rt9c%3DCJsdENHpdyUxwxMgRL8io6zY2wZYsooM2XX3qiEdg%40mail.gmail.com.
