Re: [packer] Help - CoreOS/Hyperv-iso not working # Timeout waiting for SSH.

38 views
Skip to first unread message
Message has been deleted

Rickard von Essen

unread,
Oct 8, 2019, 2:12:07 PM10/8/19
to packe...@googlegroups.com
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) <andre....@motorolasolutions.com> 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. 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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/50eea96a-3d64-4d90-9a6c-5bb4d48edc85%40googlegroups.com.

Andre Moraes (ICARO TECH)

unread,
Oct 9, 2019, 1:43:24 PM10/9/19
to Packer
Hi,

  First, sorry for the delay. 
  If I got your point, looks like I need to setup a initial configuration to get SSH enable, so I follow some templates now and I'll test but I got stuck because of Memory issue in my laptop, I don't have enough memory to setup the VM, so I'm waiting for the IT guys get this done.
  Soon as I have this updated I'll keep here posted.

Andre Moraes (ICARO TECH)

unread,
Oct 16, 2019, 8:31:45 AM10/16/19
to Packer
Still not able to get it running.

  I used some templates but when Packer tries to wget on Http, it returns Network Unreached. I'm keep stuck on that, and I have no idea.
Reply all
Reply to author
Forward
0 new messages