Hi,I am trying to build Ubuntu 16.04 for hyper-v, but I am always get "Waiting for ssh to be available" and nothing happen after that, I would appreciate if you anyone can help with this issue.Host OS: Microsoft Windows [Version 10.0.14393]Guest OS: ubuntu-16.04.2-server-amd64
Here is the result of packer build:packer build .\hyperv-ubuntu-16.04.jsonhyperv-iso output will be in this color.==> hyperv-iso: Creating temporary directory...==> hyperv-iso: Downloading or copying ISOhyperv-iso: Downloading or copying: file:///F:/ISOs/Ubuntu/ubuntu-16.04.2-server-amd64.iso==> hyperv-iso: Starting HTTP server on port 8185==> hyperv-iso: Creating switch 'External' if required...==> hyperv-iso: switch 'External' already exists. Will not delete on cleanup...==> hyperv-iso: Creating virtual machine...==> hyperv-iso: Enabling Integration Service...==> hyperv-iso: Setting boot drive to os dvd drive F:/ISOs/Ubuntu/ubuntu-16.04.2-server-amd64.iso ...==> hyperv-iso: Mounting os dvd drive F:/ISOs/Ubuntu/ubuntu-16.04.2-server-amd64.iso ...==> hyperv-iso: Skipping mounting Integration Services Setup Disk...==> hyperv-iso: Mounting secondary DVD images...==> hyperv-iso: Configuring vlan...==> hyperv-iso: Starting the virtual machine...==> hyperv-iso: Waiting 5s for boot...==> hyperv-iso: Host IP for the HyperV machine: 192.168.100.13==> hyperv-iso: Typing the boot command...Enter code here...This is my packer template hyperv-ubuntu-16.04.json, cloned from https://github.com/taliesins/packer-baseboxes{"variables": {"vm_name": "ubuntu-xenial","cpu": "2","ram_size": "2048","disk_size": "21440","iso_url": "F:/ISOs/Ubuntu/ubuntu-16.04.2-server-amd64.iso","iso_checksum_type": "sha256","iso_checksum": "737ae7041212c628de5751d15c3016058b0e833fdc32e7420209b76ca3d0a535","hyperv_switchname": "External","username" : "vagrant","password" : "vagrant"},"builders": [{"vm_name":"{{user `vm_name`}}","type": "hyperv-iso","disk_size": "{{user `disk_size`}}","guest_additions_mode":"disable","iso_url": "{{user `iso_url`}}","iso_checksum_type": "{{user `iso_checksum_type`}}","iso_checksum": "{{user `iso_checksum`}}","communicator":"ssh","ssh_username": "{{user `username`}}","ssh_password": "{{user `password`}}","ssh_timeout" : "4h","http_directory": "./linux/ubuntu/http/","boot_wait": "5s","boot_command": ["<esc><wait10><esc><esc><enter><wait>","set gfxpayload=1024x768<enter>","linux /install/vmlinuz ","preseed/url=http://{{.HTTPIP}}:{{.HTTPPort}}/preseed.cfg ","debian-installer=en_US auto locale=en_US kbd-chooser/method=us ","hostname={{.Name}} ","fb=false debconf/frontend=noninteractive ","keyboard-configuration/modelcode=SKIP keyboard-configuration/layout=USA ","keyboard-configuration/variant=USA console-setup/ask_detect=false <enter>","initrd /install/initrd.gz<enter>","boot<enter>"],"shutdown_command": "echo 'vagrant' | sudo -S -E shutdown -P now","ram_size": "{{user `ram_size`}}","cpu": "{{user `cpu`}}","generation": 2,"switch_name":"{{user `hyperv_switchname`}}","enable_secure_boot":false}],"provisioners": [{"type": "shell","execute_command": "echo 'vagrant' | sudo -S -E sh {{.Path}}","scripts": ["./linux/ubuntu/update.sh","./linux/ubuntu/network.sh","./linux/common/vagrant.sh","./linux/common/chef.sh","./linux/common/motd.sh","./linux/ubuntu/cleanup.sh"]}],"post-processors": [{"type": "vagrant","keep_input_artifact": true,"output": "{{.Provider}}_ubuntu-16.04_chef.box"}]}Packer log is in this gistYou advise is appreciated.Thanks,Mukhtar.
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/f9dd6e65-b40a-4c58-9766-9fc596028403%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#version=DEVEL# System authorization informationauth --enableshadow --passalgo=sha512# Use CDROM installation mediacdrom# Use text installtext# Keyboard layoutskeyboard --vckeymap=gb --xlayouts='gb'# System languagelang en_GB.UTF-8# Network informationnetwork --bootproto=dhcp --device=eth0 --ipv6=auto --activate# Root passwordrootpw --iscrypted <redacted># System servicesservices --enabled="chronyd"# System timezonetimezone Europe/London --isUtc# User acountsuser --groups=wheel --name=packer --password=$6$DcoAmARrcZV75ZyV$zGKlyPg4qgel8GS9H38q3sFGqlkBaDMz7luQrZyJZEDEmBnlwCJxLPMPSCV5//huRl3JBDfHCR.6XMpim0X3V0 --iscrypted --gecos="Packer" # Partition clearing informationzerombrclearpart --all# System bootloader configurationbootloader --append=" crashkernel=auto" --location=mbrignoredisk --only-use=sda# Disk partitioning informationpart /boot --fstype="xfs" --size=1024part pv.156 --fstype="lvmpv" --growpart /boot/efi --fstype="efi" --size=200 --fsoptions="umask=0077,shortname=winnt"volgroup main pv.156logvol swap --fstype="swap" --size=2048 --name=swap --vgname=mainlogvol / --fstype="xfs" --grow --size=1024 --name=rootvol --vgname=main
# Accept the EULAeula --agreed
# Reboot at the end of installationreboot
%packages@^minimal@corechronykexec-tools
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
%anacondapwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --notemptypwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --notemptypwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --notempty%end{ "variables": { "vm_name": "rhel-7.3", "cpu": "1", "ram_size": "1024", "disk_size": "40960", "iso_url": "../iso/os/redhat/rhel-server-7.3-x86_64-dvd.iso", "iso_checksum_type": "sha1", "iso_checksum": "377B264F3488A623A2155C65F9B9429C9B3F9C35" }, "builders": [ { "vm_name": "{{user `vm_name`}}", "type": "hyperv-iso", "disk_size": "{{user `disk_size`}}", "guest_additions_mode": "disable", "iso_url": "{{user `iso_url`}}", "iso_checksum_type": "{{user `iso_checksum_type`}}", "iso_checksum": "{{user `iso_checksum`}}", "communicator": "ssh", "ssh_username": "packer", "ssh_password": "packer", "ssh_timeout": "4h", "http_directory": "../linux/rhel-7-server-x64/", "boot_command": [ "<up>e<down><down><end><spacebar>", "inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/ks.cfg ", "network --hostname {{.Name}}", "<leftCtrlOn>x<leftCtrlOff>" ], "shutdown_command": "echo 'packer' | sudo -S shutdown -P now", "ram_size": "{{user `ram_size`}}", "cpu": "{{user `cpu`}}", "generation": 2, "enable_secure_boot": false } ]}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/f9dd6e65-b40a-4c58-9766-9fc596028403%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Alvaro