Questions tagged [pyvmomi]

pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter.

pyVmomi is the Python SDK for the VMware vSphere API that allows you to manage ESX, ESXi, and vCenter.

https://github.com/vmware/pyvmomi

183 questions
1
vote
1 answer

what is the page for entering pyvmomi sample requests

I would like to request a pyvmomi sample which would demonstrate how to to a VM snapshot. What is the Web page that I could use to enter such a request?
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
0
votes
0 answers

vmware Deploying OVA through python api

Running into some challenges with deploying an OVA. Been beating my head against the wall for a couple days and need to call in some help. The goal is to deploy an OVA to a vcenter. Keep in mind this is a lab environment so there are self signed…
Jared
  • 135
  • 1
  • 13
0
votes
0 answers

Setting encryption policy using pyvmomi sdk fails with "session does not have does not have privilege Cryptographer.Encrypt on entity (vm)"

I am trying out this community sample to set encryption policy to my VM. I've created a new user(A) added to a new group(Ag). Have assigned all below privileges to a New Role (Ar): cryptographic operations, dvPort group, Distributed…
0
votes
0 answers

How can I get vCenter vSAN disk group UUIDs from python with pyVmomi?

I am currently trying to extract a list of VSAN Disk Group UUIDs using python with pyVmomi, however I cannot find the UUIDs anywhere. I connect to vCenter and get the content and clusters. I have looked through both of them and have yet to find the…
0
votes
0 answers

spec.pool error when using pyvmomi clone_vm.py on a vCenter with multiple clusters and datacenters

I have been using the code located at https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/clone_vm.py to clone VMs for over a year. My inputs were based upon the following simplistic vCenter configuration: vcenter …
user2569618
  • 517
  • 3
  • 16
  • 42
0
votes
0 answers

Is there a way to see the Licenses installed on every host in the environment

I've tried multiple ways of getting the license information for a host. we'd like to automate this so that once a year we can just run the script and write the information to a database for audit purposes. I'm just not sure how as I loop through the…
BostonMacOSX
  • 1,369
  • 2
  • 17
  • 38
0
votes
0 answers

Snapshot count for time interval for each VM in pyvmomi api

Iam trying to get snapshot information from python pyvim api. In powershell there is Get-Snapshot method where we can collect last 7 days created Vms Snapchat count for every virtual machine connected to vcenter. Iam not able to find in pyvmomi…
Kumar
  • 11
  • 2
0
votes
1 answer

unable to attach virtual hardware (storage and network) while creating new VM using pyvmomi

I'm attempting to create a new VM using pyvmomi. I'm using snippets from the pyvmomi community samples. As of now I've been able to come up with the following: """ Example for creating a VM """ import sys from pyVmomi import vim from pyVim.task…
AjB
  • 890
  • 13
  • 34
0
votes
1 answer

Unable to query VMs on vcenter server appliance using pyvmomi

I am getting the following error when trying to use pyvmomi to get a list of VMs from the vcenter server appliance. pyVmomi.VmomiSupport.vim.fault.NoPermission: (vim.fault.NoPermission) { dynamicType = , dynamicProperty =…
AjB
  • 890
  • 13
  • 34
0
votes
0 answers

Error on Ansible VMWARE VMOTION module - need to move VMs using ansible from primary vcenter to DR site for Emergency Move

I am attempting to migrate VMs from one vcenter to another in the environment using ansible. Both of the vcenters are running vSphere Client version 7.0.3.01100. ansible-helper is a RHEL 8 system with Python 3 and the required pyvmomi and…
bfowler
  • 49
  • 1
  • 9
0
votes
0 answers

Fetching Maximum number of disks per SCSI controller using Vcenter API

Back-ground: Till Vsphere 6.6 or below, There is a limit of 15 disks / PVSCSI controller on a VM, but with Vsphere 6.7 the limit has been increased to 64 disks/ PVSCSI controller. So i am trying to fetch the threshold dynamically and do some…
vishnubvrit
  • 317
  • 1
  • 3
  • 14
0
votes
0 answers

Using pyvmomi to register esxi to vcenter

All, Does anyone have a sample python script using pyvmomi to register an esxi host to vcenter? I’m having a heck of a time figuring out what object to use and piecing it all together.
ScottO
  • 27
  • 1
0
votes
0 answers

pyvmomi : get the list of vms on a esx host

I want to transfer all virtual machines using pyvmomi from one host to another, I can't get a list of virtual machines on one of the esxi hosts? I just found methods to get a list of all the machines. please help me
Niksys
  • 1
0
votes
1 answer

How to fetch vCenter version using API?

I want to fetch the vCenter version for my project using API, tried with the pyvmomi python library. But I could not the vCenter version, eventhough I'm able to get ESXi and VM related information. Version info in the vCenter UI
Bindu
  • 3
  • 3
0
votes
0 answers

Create VM using PyVmomi fails

I am working with python to try and create a VM using pyvmomi, but I am constantly getting a fail when running the example with the proper arguments set. This is the code I'm using pyvmomi community samples create vm And this is the command I'm…
Danilo Patrucco
  • 110
  • 3
  • 10