Questions tagged [vsphere]

vSphere is VMware's virtualization operating system.

667 questions
2
votes
3 answers

Where are virtual switches kept in vSphere? (through pyVmomi)

I have a number of virtual portgroups on a virtual switch. When I execute datacenters = si.RetrieveContent().rootFolder.childEntity for datacenter in datacenters: hosts = datacenter.hostFolder.childEntity for host in hosts: networks…
Magitrek
  • 545
  • 5
  • 19
2
votes
2 answers

using dot net api how to find out cpu & memory utilization in vmware environment?

We have our vmware environment, and from that we are able to find out allocated memory & CPU through dot net API and we also want to find out its CPU and memory utilization (Max, Min, Avg). But, we are not able to find any methods or properties in…
Rajesh
  • 23
  • 4
2
votes
1 answer

How to configure VMs to automatically start when the host is on

I'm using VMware esxi 5.1. I have several virtual machines and need to power on them automatically when the host machine is powered on. I tried to go to the configuration tab from vSphere client and checked "allow virtual machines to start and stop…
user2944769
  • 51
  • 2
  • 2
  • 7
2
votes
3 answers

Getting all VirtualMachines using API (rbvmomi)

I would like to see some info for all the virtualmachines in my vcenter, right now I have: require 'rbvmomi' vim1 = RbVmomi::VIM.connect host: 'vcenter.foo.tld', ssl: true, insecure: true, user: 'keith', password: 'NSABACKDOOR' dc1 =…
FelixHJ
  • 1,071
  • 3
  • 12
  • 26
2
votes
2 answers

How to determine vCenter Server from a HostSystem object?

I am querying ESX hosts, some of which are managed by a vCenter server, and some are not. I want to find out the name of the vCenter server that manages this host, if it there is one. I'm using the Python psphere module, but all I want is the types…
Jerry Penner
  • 1,339
  • 1
  • 12
  • 13
2
votes
1 answer

Deploying VI JAVA in Virgo throwing java.lang.NoClassDefFoundError

For vSphere Web Client plugin, I created a java Service , I try to create a datastore in the ESX host using VI JAVA. I included import com.vmware.vim25.*; import com.vmware.vim25.mo.*; files in service implementation and included external JARS…
asvignesh
  • 787
  • 2
  • 6
  • 32
2
votes
1 answer

vsphere api to change ip address of VirtualMachine

I'm new to the vsphere api and I'm trying to change the network settings of a virtual machine from dynamic ip to static ip but I can't find the setting. Here's the code I have so far, it connects to vsphere, finds the virtual machine, and changes…
Rossini
  • 5,960
  • 4
  • 29
  • 32
1
vote
0 answers

ExtendVirtualDisk_Task, vSphere web services SDK

I want to extend the size of a virtual disk file automatically, but I'm running into an Exception. My system is running vCenter 4 and vSphere 4. I don't know if the following code is correct. Any solution? public bool ExpandDiskSize(string vmname,…
Pascal Bayer
  • 2,615
  • 8
  • 33
  • 51
1
vote
1 answer

How to connect to VMware APIrest using Python

`Need to connect to vmware apirest, My code is in python, but i have an error. Ingrese el nombre de host del vCenter: [myIP] Ingrese el nombre de usuario para conectarse a MyIP: [user] user Ingrese la contraseña para el usuario…
1
vote
0 answers

Unable to enemurate all disks error in terraform while creating vm vsphere

I tried to create a new VM "TEST" in vsphere using terraform, while specifying the disk I got this error in terraform "Error: error powering on virtual machine: powerOn task for vm "/Datacenter/vm/Test" failed: Unable to enumerate all disks." (Line…
A.Ikram
  • 77
  • 10
1
vote
0 answers

How to configure vApp properties in Terraform where ovf:userConfigurable="false"

The vapp properties which are set as ovf:userConfigurable="false" are unable to be configured when deploying to vSphere through Terraform. Ovftool has an option -X EnableHiddenProperties which allows such properties to be edited, when deploying…
1
vote
0 answers

Get Encryption Key Status from vCenter API

I want to get the status of encryption key from vcenter in golang to check whether the key is available on vCenter Server, and if any virtual machines or ESXi hosts, or third-party applications are using it. I have tried searching on internet and…
1
vote
0 answers

Error 404 Not Found while unit testing govmomi vapi rest client using simulator

I'm working with vSphere govmomi client to interact with vCenter. I'm having problem in unit testing the govmomi vapi/rest client. The sample code for creating rest client is: var insecure bool = true type RestClient struct { url *url.URL …
temptech
  • 11
  • 2
1
vote
0 answers

Is there a way to upload a .ovf to the vSphere content library with powercli?

I am writing a script in powershell/powercli that lets you upload files to the vShpere content library from a chosen folder/file location. The script works fine with .iso, .mf, .vmdk, .nvram, but when it gets to a .ovf file it throws this…
wvk0138
  • 11
  • 2
1
vote
0 answers

List all tasks of a VM using govc cli

I am trying to find a way to display all the tasks of a specific VM using govc cli. I am using this command: govc tasks vm-name but it only lists the recent tasks and not the tasks occurred in the past. Is there any way to do so?
nick
  • 77
  • 3
  • 13