Hi Yuya, I was considering using packer through vsphere as well and would be interested in contributing to the development as well (if I manage to allocate the time for that ;) ). Couldn't you pull the MAC address of the VM from the HW config through the API and then send an ARP request to that MAC (assuming net setup allows to pass it on)? Don't know how much code would be involved, but would it be an option? Alternatively one could transfer the responsibility of installing VMware tools to the boot/PE phase of the VM (in the same sense as activating WinRM is). I'd be happy to know if there is any work done on that topic.
Cheers, Eike Am Dienstag, 23. Februar 2016 00:37:51 UTC+1 schrieb 日下部雄也: > > I know we can get IP via API, if VMware tools is running on a VM. But we > needs to get IP from the VM that VMware tools isn't running. > After installing OS, packer connects to the VM via ssh or winrm for the > first time for provisioning. At that time VMware tools is not installed. So > packer uses GuestIPHack. For details about GuestIPHack, please read this > VMware's article: > http://blogs.vmware.com/vsphere/2013/01/network-troubleshooting-using-esxcli-5-1.html > > 2016年2月23日(火) 2:23 Matt <[email protected] <javascript:>>: > >> >> >> Thank you for your answer Yuya! >> >> I am not an expert, however to retrieve the IP from the esxcli should be >> possible possible. >> Afaik VMware Tools needs to run in the OS running on that virtual machine. >> The data object description of VMWare >> <https://www.vmware.com/support/developer/vc-sdk/visdk41pubs/ApiReference/vim.vm.GuestInfo.html> >> >> should provide some more information about it. >> >> >> >> >> >> >> On Tuesday, 16 February 2016 14:52:47 UTC+1, Matt wrote: >>> >>> >>> >>> Hi >>> >>> Packer currently uses SSH to communicate to the ESXi machine rather than >>> the vSphere API. >>> This page <https://www.packer.io/docs/builders/vmware-iso.html> (par. >>> "Building on a Remote vSphere Hypervisor") states that at some point, the >>> vSphere API may be used. >>> >>> As we would like very much to implement our templating via Packer and >>> our IT dept. can't provide us SSH access at hypervisor level (security >>> reasons), we were wondering if there are active plans for implementing this? >>> >>> >>> >>> Thank you >>> >>> >>> >>> >>> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/2e13e26f-a36c-4aa0-8239-62fe45cd3a56%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/2e13e26f-a36c-4aa0-8239-62fe45cd3a56%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/d3b96315-b512-4e39-bb64-d8420d748342%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
