Hi everyone,

I am testing packer and so far is a great tool!

I managed to make it work with vCenter(esxi) 5.5 and 6 with no problems. 
One issue that I would like to ask you all is about re-using the iso that 
is already in the datastore.

With every build it takes around 10 minutes total (from enter build command 
to finish) but it takes around 4 minutes to "upload" the dvd iso to the 
datastore. Is it possible to tell packer to just use the one that is 
already there?

This is my json file:

{
    "builders": [
        {
            "type": "vmware-iso",
            "format": "ovf",
            "vm_name": "PACKERTEST02",
            "iso_url": "/rhel-server-7.2-x86_64-dvd.iso",
            "iso_checksum": 
"03f3a0291634335f6995534d829bd21ffaa0d000004dfeb1b2fb81052d64a4d5",
            "iso_checksum_type": "sha256",
            "disk_size": "104761",
            "disk_type_id": "thin",
            "remote_host": "esxi-host",
              "remote_datastore": "nas",
              "remote_username": "root",
              "remote_password": "********",
              "remote_type": "esx5",
            "ssh_username": "vagrant",
            "guest_os_type": "rhel6-64",
            "ssh_password": "vagrant",
            "ssh_port": 22,
            "ssh_wait_timeout": "20m",
            "shutdown_command": "sudo -S /sbin/halt -h -p",
            "headless": "false",
            "floppy_files": [
                  "kickstart/rhel7-packertest02.ks.cfg"
            ],
            "boot_command": "<esc> linux inst.text 
inst.ks=hd:fd0:/rhel7-packertest02.ks.cfg <enter><wait>",
            "boot_wait": "5s",
            "keep_registered": "true",
            "vmx_data": {
                "config.version": 8,
                "virtualHW.version": 8,
                "ethernet0.virtualDev": "vmxnet3",
                "ethernet0.networkName": "VM Network",
                "ethernet0.addressType": "generated",
                "ethernet0.present": "TRUE",
                "ethernet1.virtualDev": "vmxnet3",
                "ethernet1.networkName": "VLAN100",
                "ethernet1.addressType": "generated",
                "ethernet1.present": "TRUE",
                "ethernet0.pciSlotNumber": "192",
                "ethernet1.pciSlotNumber": "224",
                "memsize": "2048",
                "numvcpus": "2",
                "cpuid.coresPerSocket": "1",
                "RemoteDisplay.vnc.enabled": "TRUE",
                "RemoteDisplay.vnc.port":  "5900"
            }
        }
    ]
}


Cheers,

Alejandro

-- 
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/36d32bd5-c9e4-4602-9a3b-309e5230a53a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to