vmware / vmware/pyvmomi

Running Customize task on ESXi fails

Open
#312 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

I'm currently trying to add Clone support for a single ESXi.
As the Clone task is not supported on ESXi, I'm deploying a OVF to the ESXi.
After that I would run a customization to change IP/Hostname/DNS using Customize(spec=customspec)
When I try to use the same vim.vm.ConfigSpec ,which works for normal deploy on a vCenter server, with a ESXi VM, it fails:

pyVmomi.VmomiSupport.NotSupported: (vmodl.fault.NotSupported) {
   dynamicType = <unset>,
   dynamicProperty = (vmodl.DynamicProperty) [],
   msg = 'The operation is not supported on the object.',
   faultCause = <unset>,
   faultMessage = (vmodl.LocalizableMessage) []
}

Is there a way around it?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ESXi deployment flow described in the issue, using an OVF, Customize(spec=customspec), and the vim.vm.ConfigSpec that works through vCenter. Investigate where the NotSupported fault is raised and whether the operation is supported for an ESXi VM. Done requires a confirmed cause and a documented, tested workaround or a clearly scoped project change.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.