can you delete the iso and take the time?

it shouldnt upload twice, what can happen is too slow to check the md5/sha1
sum

other option is once you build a minimal image, you use vmware-vmx and
build from an existing vm.

as time permits, can you have a look ?

Thanks
Alvaro

On Wed, Jul 20, 2016 at 2:35 PM, Alejandro <[email protected]>
wrote:

> 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
> <https://groups.google.com/d/msgid/packer-tool/36d32bd5-c9e4-4602-9a3b-309e5230a53a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAHqq0ewdbrOv7K-UxN9%2BCSWi%3DcMBz7PppnWJzWNS%3DFhmxet5Jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to