Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Unable to provision vm in vmware esxi 6.7 using vsphere-iso builder #311

Open
allaboutopensource opened this issue Apr 8, 2020 · 1 comment

Comments

@allaboutopensource
Copy link

allaboutopensource commented Apr 8, 2020

i am getting an error "vsphere-iso: Waiting for IP...
2020/04/08 12:11:00 packer-builder-vsphere-iso plugin: [INFO] Waiting for IP, up to total timeout: 30m0s, settle timeout: 5s"

during the packer_log=1 debugging i see that there is a line says:

2020/04/08 12:10:31 packer-builder-vsphere-iso plugin: Creating CD-ROM on controller '&{{{} 200 0xc0006be700 0 } 0 []}' with iso '[datastore] ISO/CentOS-7-x86_64-DVD-1908.iso'

while i am getting this error, if i check my vcenter i can see that the vm spins using the image but if i check the cd/dvd drive1 it shows disconnected i.e there is no iso mounted on the vm during the error.

my json file:

"builders": [
     {
       "type": "vsphere-iso",
       "vm_name": "packer-image-iso",
       "vcenter_server": "{{user `vcenter_server` }}",
       "username": "{{user `username` }}",
       "password": "{{user `password` }}",
       "datacenter": "{{user `datacenter`}}",
       "insecure_connection": "true",
       "host": "hostname",
       "cluster": "test",
       "datastore": "datastore-local",
       "cpu_cores": "4",
       "RAM": "1024",
       "disk_size": "20000",
       "network": "VLAN10",
       "network_card": "vmxnet3",
       "folder": "centos-image",
       "boot_order": "disk,cdrom",
       "disk_controller_type": "pvscsi",
       "disk_thin_provisioned": "true",
       "guest_os_type": "centosGuest",
       "iso_paths": "[datastore] ISO/CentOS-7-x86_64-DVD-1908.iso",
       "communicator": "ssh",
       "ssh_username": "root",
       "ssh_password": "password",
       "shutdown_command":"shutdown -P now",
       "create_snapshot": "false",
       "convert_to_template": "false",
       "boot_command": [
              "<tab><wait>",
              " text inst.ks=hd:fd0:/ks.cfg "
       ]
    }
]
}

packer version 1.5.5 vCenter 6.7

@asaf
Copy link

asaf commented May 16, 2020

I think you are missing floppy definition, take a look here:

https://github.com/guillermo-musumeci/packer-vsphere-iso-linux

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants