is not having ssh and fails due the timeout

can you share the kickstart file youa re using?

during the install a user/pass should be created

at the end of the install should be a reboot

so on the next boot there is a ssh server that can be used within the ssh
timeout

Alvaro


On Wed, Nov 8, 2017 at 11:40 PM, Milan <[email protected]> wrote:

> Tried with the following and got the error message as
>
> {
> "builders": [
> {
> "boot_command": [
> " text inst.ks=hd:fd0:/ks.cfg "
> ],
> "boot_wait": "10s",
> "cpu": 2,
> "ram_size": 1024,
> "disk_size": 8000,
> "http_directory": "http",
> "iso_url": "c:\packer_isos\CentOS-7-x86_64-Minimal-1708.iso",
> "iso_checksum_type": "",
> "iso_checksum": "*****",
> "output_directory": "packer-test-hyperv",
> "shutdown_command": "echo 'vagrant' | sudo -S /sbin/halt -h -p",
> "ssh_password": "vagrant",
> "ssh_port": 22,
> "ssh_username": "vagrant",
> "type": "hyperv-iso",
> "vm_name": "packer123",
> "communicator": "ssh",
> "ssh_timeout": "1h"
> } ]
> }
>
> Error Message:
> C:>C:\packer21\packer.exe build C:\packer21\hyper-cent.json
> hyperv-iso output will be in this color.
>
> ==> hyperv-iso: Creating temporary directory...
> ==> hyperv-iso: Downloading or copying ISO
> hyperv-iso: Downloading or copying: file:///C:/packer_isos/CentOS-
> 7-x86_64-
> inimal-1708.iso
> ==> hyperv-iso: Creating floppy disk...
> hyperv-iso: Copying files flatly from floppy_files
> hyperv-iso: Copying file: c:\packer21\ks.cfg
> hyperv-iso: Done copying files from floppy_files
> hyperv-iso: Collecting paths from floppy_dirs
> hyperv-iso: Resulting paths from floppy_dirs : []
> hyperv-iso: Done copying paths from floppy_dirs
> ==> hyperv-iso: Creating switch 'internal_vSwitch' if required...
> ==> hyperv-iso: switch 'internal_vSwitch' already exists. Will not delete o
> cleanup...
> ==> hyperv-iso: Creating virtual machine...
> ==> hyperv-iso: Enabling Integration Service...
> ==> hyperv-iso: Setting boot drive to os dvd drive
> C:/packer_isos/CentOS-7-x86_
> 4-Minimal-1708.iso ...
> ==> hyperv-iso: Mounting os dvd drive C:/packer_isos/CentOS-7-x86_
> 64-Minimal-17
> 8.iso ...
> ==> hyperv-iso: Mounting floppy drive...
> ==> 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 10s for boot...
> ==> hyperv-iso: Host IP for the HyperV machine: 169.254.117.27
> ==> hyperv-iso: Typing the boot command...
> ==> hyperv-iso: Waiting for SSH to become available...
> ==> hyperv-iso: Timeout waiting for SSH.
> ==> hyperv-iso: Cleanup floppy drive...
> ==> hyperv-iso: Clean up os dvd drive...
> ==> hyperv-iso: Unregistering and deleting virtual machine...
> ==> hyperv-iso: Deleting output directory...
> ==> hyperv-iso: Deleting temporary directory...
> Build 'hyperv-iso' errored: Timeout waiting for SSH.
>
> ==> Some builds didn't complete successfully and had errors:
> --> hyperv-iso: Timeout waiting for SSH.
>
>
> ==> Builds finished but no artifacts were created.
>
>
>
> Any luck on this?
>
> --
> 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/fba2acda-9e99-4c3b-bed8-37d458b38ad8%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/fba2acda-9e99-4c3b-bed8-37d458b38ad8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Alvaro

-- 
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/CAHqq0exH%3DZwUUzDMQBOA%3DiAQoUPcgmrY68GfPBg%2B-0AuFxG69Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to