VMware Cloud Community
bernovy
Contributor
Contributor

How to install an OS from iso, then export it to ovf? (all by CLI)

Hey guys,

I would like to automate the installation of various linux distros on ESXi and then export it to ovf/ova. Basically I'd like to do the following by CLI/scripts:

  1. Create a new VM with custom parameters & hardware requirements

  2. Import linuxDistro.iso and load it into the CD/DVD emulator

  3. Start the VM, install the OS

  4. (optional) Configure in the os: LAN settings, users, permissions etc

  5. Export the VM as an OVF package or OVA file to a specific location on my LAN or SAN

  6. (optional) Deploy the OVF/OVA on a VMware Server v2

What are the commands for the above steps? Is it even possible to do a full installation, configuration and export to ovf by CLI?

Any help would be very appreciated. Thanks!

0 Kudos
1 Reply
bnidave
Contributor
Contributor

I have the same issue, were you able to find a solution for this?

0 Kudos