vSphere is VMware's virtualization operating system.
Questions tagged [vsphere]
667 questions
2
votes
1 answer
Vsphere API Script for getting Information
I am playing with the vSphere API and it worked good over the Web Interface, now I would like to write a Python Script that communicates with the API and give me some answers to my question like how many VM´s do I have in my Environment or which VM…

Daniel Moreira
- 21
- 1
- 2
2
votes
2 answers
Start VM from powered off state using pyvmomi
So, I am trying to make a Python script using pyvmomi to control the state of a virtual machine I'm running on my ESXi server. Basically, I tried using connection.content.searchIndex.FindByIp(ip="the ip of the VM", vmSearch=True) to grab my VM and…

techtoolbox
- 45
- 2
- 6
2
votes
1 answer
Get current CPU usage using PowerCLI
On the vSphere client host summary page, current CPU usage stats are displayed:
CPU Free: 76.38 GHz
Used: 4.02 GHz Capacity: 80.4 GHz
I am trying to retrieve this information using PowerCLI, so far I have discovered this…

LightningWar
- 915
- 1
- 19
- 35
2
votes
0 answers
Coreos ignition with remote config fails because of the network
I'm trying to boot my coreOS ova image in VSphere by using customize ignition data which is allocated in a remote file (in S3 amazon). Unfortunatelly I get always the same error:
A start job is running formation (disks) ignition[380]: Get…

Jorgese
- 551
- 6
- 14
2
votes
1 answer
Retrieve storage policies for each Virtual Machine's VirtualDisk
I'm using pyVmomi to pull a list of all VM's in our VMware vSphere environment.
I'm iterating through the VirtualMachine config.hardware.device and checking if I have an instance of vim.vm.device.VirtualDisk
for device in…

Jonathan
- 178
- 2
- 9
2
votes
1 answer
vagrant-vsphere: how to create a .box file?
I want to use vagrant-vsphere and went through the steps described in https://github.com/nsidc/vagrant-vsphere/blob/master/README.md
Installation went fine. Now I am at this step:
After installing the plugin, you must create a vSphere box. The…

langlauf.io
- 3,009
- 2
- 28
- 45
2
votes
2 answers
Delay of 10mn between resource creation with Terraform Vsphere provider
Is there a way to delay module resource creation with the Terraform Vsphere provider. I want to introduce a 10mn delay due to infrastructure impediments between each VM instance creation. Each one is created by a module occurrence.
At the moment,…

MahediS
- 21
- 1
- 3
2
votes
1 answer
Deploy VM from template with pyvmomi
I’m new to python and pyvmomi
I have task to deploy a VM machine from a template,
I looked at examples under github but couldn’t find a script that do that,
https://github.com/vmware/pyvmomi
https://github.com/vmware/pyvmomi-community-samples
Can…

user9051377
- 21
- 1
- 2
2
votes
4 answers
How to find ip addresses assigned to virtual machines in an esxi server?
I tried to find ip addresses assigned to vms in an esxi server? either from terminal or vSphere Client.

Amir.A.G
- 47
- 1
- 1
- 3
2
votes
1 answer
VMware ESXi6.5u1 client support
I know VMware has provided the support for HTML5 based client to manage the VMware host.
We want to use vSphere client6.0 to manage VMware ESxi 6.5u1.
I have one vSphere client with version 6.0 and two ESXi server with version6.5 and 6.5u1.
I have…

ajay
- 41
- 5
2
votes
1 answer
enable SSH on host via PyVim / PyVmomi API
Is there a way to enable SSH on an ESXi host? I have looked around but have found nothing. I am writing a script that needs to be able to enable and disable SSH on a host.

MJonny
- 21
- 2
- 4
2
votes
1 answer
Get relation between Hosts and Datastores using vSphere Automation REST API
I'm trying to create VM using vSphere Automation SDK REST API and vRealize Orchestrator but the workflow in Orchestrator I'm using needs the host and datastore on which to create the VM (I'm cloning a VM using a template).
My problem is that my…

regis
- 21
- 5
2
votes
1 answer
AngularJS UI Rendering issue in custom plugin of vSphere web client
We are developing user custom for vmware's vSphere web client with the help of vSphere client SDK 6.0.
We have use html-bridge (AngularJS) to develop a UI for plugin and we are facing rendering issue of UI for one specific scenario.
Image 1: This…

Mayur Bhokase
- 377
- 4
- 19
2
votes
2 answers
Detect current user has admin rights or not in vSphere client SDK with Java
I am using vim25 library to established connection with vCenter and I am able to login with following code,
vimport.login(serviceContent.getSessionManager(), username, password, null);
Now, I want to check whether this user has admin privileges or…

Mayur Bhokase
- 377
- 4
- 19
2
votes
0 answers
PyVmomi SNMP with Vmware
I'm looking for a way to programmatically register and then receive notifications when Vm migration happens within a Vmware vCenter . During this search I discovered that the vCenter is bundled with a SNMP server . This would also work for me.…

steve
- 594
- 4
- 10
- 23