vSphere is VMware's virtualization operating system.
Questions tagged [vsphere]
667 questions
4
votes
1 answer
Migrating existing infrastructure & scaling with Terraform
We are planning to automate creation & deletion of VMs in our DCs which power our cloud service. The service is such that every new customer gets dedicated VMs (at least 3) - so the number of VMs keep growing. We already have about 2000 VMs running…

Rohit Atri
- 231
- 1
- 10
4
votes
1 answer
Authenticate with SSPI to vSphere using C# API
I am using the C# library for connecting to vSphere (VimClient). I use this method to log in:
VimClient client = new VimClient();
client.Connect("https://vSphereMachine/sdk");
client.Login("userName", "password");
The user I'm logging in as is the…

Michael Hedgpeth
- 7,732
- 10
- 47
- 66
3
votes
1 answer
Kubernetes Multi-Attach error for volume "pvc "Volume is already exclusively attached to one node and can't be attached to another"
Kubernetes version:
V1.22.2
Cloud Provider Vsphere version 6.7
Architecture:
3 Masters
15 Workers
What happened:
One of the pods for some "unknown" reason went down, and when we try to lift him up, it couldn't attach the existing PVC.
This only…

Ruben Gonçalves
- 41
- 1
- 3
3
votes
5 answers
How to add a disk to VM when cloning from a template?
I've found pyvmomi examples on how to add a disk to an already existing VM, but I would like to customize the VM template and then clone. Setting the CPUs and memory are pretty straight forward, but the adding of one or more disks to an existing…

user2569618
- 517
- 3
- 16
- 42
3
votes
1 answer
VM creation using terraform in vsphere gives An error occurred while customizing VM
provider "vsphere" {
vsphere_server = "myserver"
user = "myuser"
password = "mypass"
allow_unverified_ssl = true
version = "v1.21.0"
}
data "vsphere_datacenter" "dc" {
name = "pcloud-datacenter"
}
data…

Darshan
- 94
- 1
- 8
3
votes
1 answer
ESXI: Get machine name from the virtual machine itself?
I looked and looked but probably overlooked . I have a vsphere cloud with over 300 virtual machines. Each machine name as it appears in the vsphere client is actually the hostname of each machine (I have done this manually). Those machines sometimes…

Zander Steriadi
- 31
- 1
- 2
3
votes
0 answers
VMWARE_GUEST : Create VM from template : Failed to create a virtual machine : Unable to access the virtual machine configuration
I'm trying to use ansible to automate VM deployment in my infrastructure.
So, I used the module "vmware_guest" https://docs.ansible.com/ansible/latest/modules/vmware_guest_module.html
I used exactly the same playbook than in the exemple, this is my…

Wrest
- 113
- 1
- 11
3
votes
1 answer
how to use ubuntu official .ova image
I downloaded the ubuntu image from https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64.ova, and deployed it to vmware vsphere. But I do not know the login credentials after the bootup.
So could someone tell me…

Heissenberger
- 294
- 1
- 7
3
votes
1 answer
how to change vm DNS name and ip addresses in vpshere client
I've created a VM in vsphere client. There is an IP allocated for this VM. How do I add the IP address and DNS name to it via vsphere client.
Today is the first day I'm using vsphere (!)

NewLands
- 73
- 2
- 10
3
votes
0 answers
Terraform vsphere network interface bond0 configuration
I have a Terraform config that I want to use to create VMs from a Vsphere template (Redhat 7) but I need to be able to specify the network interface to apply the customizations (static IP, Subnet, Gateway, DNS).
provider "vsphere" {
user …

brau
- 93
- 1
- 8
3
votes
1 answer
Unable to reach Windows server: "Please wait for the Local Session Manager"
When connecting to our Windows Server 2008 R2 desktop via MS Rdp tool (latest version), occasionally the connection is closing after displaying "Please wait for the Local Session Manager". The result is that I am unable to get into Windows…

Jonathan_S
- 61
- 1
- 1
- 6
3
votes
2 answers
How to resize VM disk with RbVmomi in Ruby
I'm working on a project where I'm cloning a VM with RbVmomi and after the clone is finished I want to ReConfig the VM.
The cloning is working great, but I have some problems when I want to change the disk size of the VM. I can change the numbers…

Thorstein Løkensgard
- 92
- 11
3
votes
1 answer
Need python interface for moving a machine to another folder
I am trying to find a code support in python for moving a machine between Datacenter's folders without success, I saw in pysphere that you can define the folder just in the clone stage and not after machine already cloned.
This seems as a solution…

JavaSa
- 5,813
- 16
- 71
- 121
3
votes
2 answers
Find disk attached to vm using govc
I was looking to find the details of the Virtual Machine using govc.
I was able to fetch the details of the instance using govc vm.info, but the result had details of CPU, Memory, IP Address and other not about disk storage, which I can see on…

Sumit Murari
- 1,597
- 3
- 28
- 43
3
votes
1 answer
Is it possible to remotely run scripts in a guest OS using VCLI?
Using VMware OVF Tool 4.0, I'm deploying/powering on some VMs and would like to execute some scripts inside them. However, I was unable to assign injection properties to a VM, I.e: DNS, Gateway, etc. See OVF Tool documentation page 22 for more…

Gabriel Y.
- 85
- 6