vSphere is VMware's virtualization operating system.
Questions tagged [vsphere]
667 questions
-1
votes
1 answer
Get Virtual machine tags with curl commande
For my script I would like to get the tags of a VM. I'm able to get the details of a virtual machine with this curl command :
curl -k -s --request GET \
--url https://XXXXX/rest/vcenter/vm/vm-31623 \
--header 'Content-Type:…

TomTom30
- 35
- 5
-1
votes
1 answer
How to configure vm tags thru vsphere rest api
I am writing this to give u examples on how to create a VM tag using vsphere api.I found it hard to get the workflow .Hopefully this will make someone's life easy .
Used api explorer or developer center : https:///ui/app/devcenter/api-explorer

Robin Mathews
- 27
- 2
-1
votes
1 answer
Terraform vsphere provisioner: adding more than 1 network
I have the following Terraform config
data "vsphere_network" "net1" {
name = "somenetwork"
datacenter_id = data.vsphere_datacenter.dc.id
}
data "vsphere_network" "net2" {
name = "somothernetwork"
datacenter_id =…
-1
votes
1 answer
How to Get CPU usage for each VM on ESXI host
I want to get CPU usage (cumulative) for each VM hosted on a VMware ESXI host.
I tried using Power CLI command 'Get-VMHost' but it only gives the overall CPU usage by ESXI host.

Jawad Ali Qamar
- 13
- 4
-1
votes
2 answers
Getting data from vSphere client
We would like to gather data from vSphere, metrics like number of servers, their names, traffic information (this to be defined later). What would be the best place to start and what steps do we need to accomplish this? Any brainstorming…

Rafael
- 1,099
- 5
- 23
- 47
-1
votes
1 answer
Creating a windows directory on a vsphere_virtual_machine using terraform
Using terraform I'm trying to create vsphere_virtual_machine resource. As part of it, I'm trying to find out how to mount virtual disks to a specific folder on a created virtual machine. For example :
Terraform
disk {
label = "disk0"
size =…

manu endla
- 301
- 4
- 19
-1
votes
1 answer
can I see the owner/creator of a vcenter vm with pyvmomi
The closest info I can find in the vSphere UI is the user of the "Clone completed" event in the events list in monitoring. Can i access this list with pyvmomi? Or any better alternative would be appreciated.

davka
- 13,974
- 11
- 61
- 86
-1
votes
1 answer
Unable to extend C drive through command line due to healthy partition
I am trying to extend C drive through powershell script. There is 5GB of unallocated space available but I have 2 Healthy Partition Sections between my c dive and the unallocated memory. Thus it is not allowing either manual or command line to…

Redbase
- 9
- 2
-1
votes
1 answer
VMware Photon - Clair cannot scan Photon container vulnerability on vSphere
The problem:
Clair cannot scan a Docker image built from Photon OS on VMware vSphere platform. In turn, this prevents properly completing a vulnerability scan on vSphere, which prevents any subsequent container deployment.**
Background:
I am…

Mr. Vanderstelt
- 126
- 1
- 8
-1
votes
1 answer
PSC and VC in Vmware
I am new to VSphere, when you want to install Vcenter, there are two options for deployment, embedded and external!
1. I don't even know what we are trying to deploy? is it anything more than PSC?
2. if that so is the PSC is our agent who is about…

Lord Arthas
- 11
- 5
-1
votes
1 answer
Vsphere/Vmware and Consul cluster auto join
I have already implemented Consul cluster in AWS with AutoJoin and EC2 tagging.
https://www.consul.io/docs/agent/cloud-auto-join.html
Now I am trying to do them same on a VMware/Vsphere environment. I have done everything as the tutorial describes,…

kereza
- 29
- 3
-1
votes
1 answer
k8s unable to mount vsphere vsan disk to pod
i have a problem with persistent volumes and vmware vsan
i'm using kubernetes v1.9.5 on CentOS 7 deployed with kubespray (cloudprovider: vsphere).
the pods are not able to mount to vsan devices:
Events:
Type Reason Age From …

schlussbilanz
- 19
- 2
-1
votes
1 answer
Connection timeout when loging into vcenter through vsphere client
I am newbie to VMware. When I am longing into the VCenter I am getting "Connection time out" in first 3 attempts, after 3 attempts I am able to Login to VCenter.
I did some troubleshoot and in vcenter changed the Client to server time extended…

ashok
- 11
- 6
-1
votes
1 answer
Automating infrastructure with packer & terraform on vsphere
With packer I can script up the creation of a template linux box and upload to my vsphere cloud instance as a vmware box. I'd like it to be uploaded or converted to a vsphere template so then I can run terraform on this template to automate the…

jiopaley
- 126
- 1
- 7
-1
votes
1 answer
Create VM snapshots using power CLI with no memory quiesce
I need to have a script to run in vcenter power CLI for creating VM snapshots.
Below is the requirement.I am new to scripting.Can someone please help me to do this.
server names should be taken from a text/csv file.
snapshot should be created with…

Satheesh
- 1
- 1