/esxifree_guest

Ansible modules that get the info from, or create (or clone), ESXi virtual machines. They use direct SOAP calls and Paramiko SSH, to allow usage on the free hypervisor.

Primary LanguagePythonBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Ansible Collection - dseeley.esxifree_guest

These modules can be used to get the info from, and create new ESXi virtual machines, including cloning from templates or other virtual machines.

It does so using direct SOAP calls and Paramiko SSH to the host - without using the vSphere API - meaning it can be used on the free hypervisor.

Configuration

Your ESXi host needs some config:

  • Enable SSH
    • Inside the web UI, navigate to “Manage”, then the “Services” tab. Find the entry called: “TSM-SSH”, and enable it.
  • Enable “Guest IP Hack”
    • esxcli system settings advanced set -o /Net/GuestIPHack -i 1

Requirements

  • python 3
  • paramiko

Execution

This can be run as an Ansible module (see inline documentation), or from the console:

python3 ./esxifree_guest.py console