Hi Alvaro,

Thank you for the suggestion.

Adding 
reboot --eject 
to kickstart .ks file did not eject the cdrom or the Datastore ISO.

Here is the logs from packer below.
It says that it's detaching the ISO but after the "vsphere-template" runs, 
it attaches back the ISO.
When I comment out the "vsphere-template" part the Datastore ISO is 
detached.  It's only when it converts to a template when the ISO gets 
attached.

Thanks for the help.
Happy Holidays.

# mukarram 

vmware-iso output will be in this color.

==> vmware-iso: Downloading or copying ISO
    vmware-iso: Downloading or copying: 
file:///var/www/html/ISOs/CentOS-7-x86_64-Minimal-1708.iso
==> vmware-iso: Uploading ISO to remote machine...
==> vmware-iso: Creating virtual machine disk
==> vmware-iso: Building and writing VMX file
==> vmware-iso: Registering remote VM...
==> vmware-iso: Starting virtual machine...
==> vmware-iso: Waiting 30s for boot...
==> vmware-iso: Connecting to VM via VNC
==> vmware-iso: Typing the boot command over VNC...
==> vmware-iso: Waiting for SSH to become available...
==> vmware-iso: Connected to SSH!
==> vmware-iso: Gracefully halting virtual machine...
    vmware-iso: Waiting for VMware to clean up after itself...
==> vmware-iso: Deleting unnecessary VMware files...
    vmware-iso: Deleting: 
/vmfs/volumes/hx-ds1/CentOS-7-Corp-Template-TEST/vmware.log
==> vmware-iso: Compacting the disk image
==> vmware-iso: Cleaning VMX prior to finishing up...
    vmware-iso: Unmounting floppy from VMX...
  *  vmware-iso: Detaching ISO from CD-ROM device...*
    vmware-iso: Disabling VNC server...
==> vmware-iso: Skipping export of virtual machine (export is allowed only 
for ESXi and the format needs to be specified)...
==> vmware-iso: Keeping virtual machine registered with ESX host 
(keep_registered = true)
==> vmware-iso: Running post-processor: vsphere-template
    vmware-iso (vsphere-template): Waiting 10s for VMware vSphere to start
    vmware-iso (vsphere-template): Choosing datacenter...
    vmware-iso (vsphere-template): Creating or checking destination 
folders...
    vmware-iso (vsphere-template): Marking as a template...
Build 'vmware-iso' finished.

==> Builds finished. The artifacts of successful builds are:
--> vmware-iso: VM files in directory: 
/vmfs/volumes/hx-ds1/CentOS-7-Corp-Template-TEST
--> vmware-iso:

-- 
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/94e6bf21-2cc8-42aa-874a-b30eab82e0f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to