Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for running ovftool directly on ESXi #187

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dizzyd
Copy link

@dizzyd dizzyd commented Oct 11, 2022

This PR adds support for invoking ovftool directly on the ESXi host and also enabling ESXi-local hosting of OVA/OVFs. This enables users to keep local copies of images, avoid massive network copies and generally speed up the process of setting up new VMs.

@djdanielsson
Copy link

djdanielsson commented Feb 19, 2023

This seems like a really useful option, +1

Since we have SSH enabled on ESXi, it's possible to install ovftool directly on the ESXi host and avoid large network copies
by hosting the OVA/OVFs locally.

To use this functionality, perform the following steps:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to Do that man , there are only win and linux files meanwhile esxi is not linux , tho you do it with host client ? i dont found any console or sth to some cmds , am a beginner..

@josenk
Copy link
Owner

josenk commented Jul 18, 2023

Installing ovftool on the ESXi host doesn't seem to be a supported solution from vmware website...

@djdanielsson
Copy link

djdanielsson commented Feb 29, 2024

no it isn't supported, but really using this at all is unsupported so why not give this as an option at least? But I agree it would be nice to have clear instructions on how to do this if this is going to be an option.

@djdanielsson
Copy link

@dizzyd can you write up or link to instructions on how to install the ovftool on ESXi itself?

@dizzyd
Copy link
Author

dizzyd commented Apr 12, 2024

ESXi is just a 64-bit Linux; you can download the ovftool for Linux 64-bit and unpack on the ESXi box (typically via SSH). @djdanielsson and @oussexist

@mitch40
Copy link

mitch40 commented Nov 19, 2024

@dizzyd Whoo nice work, i'm trying to test this feature!

  • I've unziped ovftool on my esxi (and symlinked ovftool in /bin),
  • I've git clone the original repo and you PR
  • I've compilled the project
  • I've seen your example (examples/08 ovftool on ESXi)
  • I've removed .terraform* from my lab project

But… where am i supposed to drop the binary file?

Thank you !

@dizzyd
Copy link
Author

dizzyd commented Nov 19, 2024

But… where am i supposed to drop the binary file?

I'm not sure what binary you're referring to? If you've already installed ovftool on ESXi, the rest of this patch should just be part of a normal terraform plugin, IIRC. It's been 2+ years since I made this patch, so hard to say -- I guess it wasn't interesting to the maintainers... :)

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

Successfully merging this pull request may close these issues.

5 participants