That seems weird. Can you attach the output when running with PACKER_LOG=1.

On Mon, Dec 10, 2018, 14:28 Peter Krefting <[email protected] wrote:

> Hi!
>
> I am using Packer to create images on an ESXi 6.5 host, and I am having
> problems with it taking a very long time to start up. Packer uploads the
> ISO file and then stops at "Starting HTTP server on port NNNN" for half
> an hour or so. During the time I can see no activity on the ESXi host,
> and the VM entry is not available. After half an hour, it (most often)
> continues, creates the VM and runs the installer as expected.
>
> Is there any reason for this delay?
>
> This is my configuration file:
>
> {
>    "builders": [
>      {
>        "type": "vmware-iso",
>        "remote_type": "esx5",
>        "remote_host": "10.0.31.140",
>        "remote_username": "builder",
>        "remote_password": "withheld",
>        "remote_datastore": "raid5array",
>        "remote_cache_datastore": "raid5array",
>        "remote_cache_directory": "ISOs",
>        "vnc_disable_password": true,
>        "format": "ovf",
>        "vm_name": "centos",
>        "vmdk_name": "centos",
>        "iso_url": "centos.iso",
>        "iso_checksum_type": "none",
>        "ssh_username": "root",
>        "ssh_password": "withheld",
>        "ssh_wait_timeout": "30m",
>        "shutdown_command": "shutdown -P now",
>        "disk_size": "491520",
>        "disk_type_id": "thin",
>        "guest_os_type": "rhel7-64",
>        "vmx_data": {
>          "numvcpus": "8",
>          "memsize": "16384",
>          "ethernet0.present": "true",
>          "ethernet0.networkName": "VM Network",
>          "ethernet0.virtualDev": "vmxnet3",
>          "ethernet1.present": "true",
>          "ethernet1.networkName": "Host-Only Network",
>          "ethernet1.virtualDev": "vmxnet3",
>          "vmxnet.noOprom": "true",
>          "vmxnet2.noOprom": "true"
>        },
>        "http_directory": "kickstart",
>        "boot_wait": "0s",
>        "boot_command": [
>
>
> "<esc><esc><wait><esc><esc><wait><esc><esc><wait><esc><esc><wait><esc><esc><wait><esc><esc><wait>",
>          "/isolinux/vmlinuz ",
>          "inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/CentOS.cfg ",
>          "initrd=initrd.img ",
>          "inst.stage2=hd:LABEL=CentOS ",
>          "biosdevname=0 net.ifnames=0 ",
>          "quiet",
>          "<enter>"
>        ]
>      }
>    ],
>    "provisioners": [
>      {
>        "type": "file",
>        "direction": "download",
>        "source": "/root/anaconda-ks.cfg",
>        "destination": "anaconda-ks.cfg"
>      },
>      {
>        "type": "file",
>        "direction": "download",
>        "source": "/root/original-ks.cfg",
>        "destination": "original-ks.cfg"
>      },
>      {
>        "type": "file",
>        "direction": "download",
>        "source": "/var/log/anaconda/anaconda.log",
>        "destination": "anaconda.log"
>      },
>      {
>        "type": "file",
>        "direction": "download",
>        "source": "/var/log/anaconda/journal.log",
>        "destination": "journal.log"
>      },
>      {
>        "type": "shell",
>        "script": "post-install/post-install.sh"
>      }
>    ]
> }
>
> --
> \\// Peter - http://www.softwolves.pp.se/
>
> --
> 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/86b45277ee0670e1f7de40172a8b78df%40softwolves.pp.se
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALz9Rt9tdcBXUwvqPGuJf1VSHjHi2s0WnfrL6HsbOb%3D5HaBkmA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to