Questions tagged [vcenter]

VMware vCenter Server is a datacenter management server to manage VMware ESXi host system

VMware vCenter Server is a centralised management application to orchestrate vSphere. It can be used to monitor, operate, manage resource and performance evaluation of vSphere components.

267 questions
2
votes
0 answers

Creating a connection and query with vmwarephp

I'm looking at using this PHP library to connect to vcenter hosts and retrieve some data about vms located there: https://github.com/vadimcomanescu/vmwarephp This looks like something that could be very useful to me. However, I’m having trouble…
Geoff Maddock
  • 1,700
  • 3
  • 26
  • 47
2
votes
3 answers

Is there a way to "mock" a vcenter server?

This question might sound a bit odd but here it goes: I'm writing a bunch of applications that connects to VMware vcenter api , now as i mainly code on my laptop i was wondering if there's some way to "mock" a vcenter server so i can connect to it…
1
vote
0 answers

plaintext credentials are showing in window event logs when connected to vcenter using powershell

@powershell @vcenter I have connected to vcenter with encrypted password as below. But still my plaintext password is getting logged in event logs. How can I make my credentials hide in log. $SecurePassword = ConvertTo-SecureString…
Kumar
  • 11
  • 2
1
vote
1 answer

Ansible fails in windows servers when using vmware_tools connection and a username not logged in before

I'm trying to create a directory in a Windows machine and after that copy a file inside the directory. The modules used are win_file and win_copy. This is the code: - name: "win_winrm | main.yml | Create temporary dir 'tmp_ansible' on C:Sistemas…
Casti
  • 11
  • 2
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
1 answer

Azure: az cli ConnectedVMware vm guest-enable ...returns: "ERRORL 'str' object is not callable"

When using the azure portal, I can select a VM that is already 'Enabled' in Azure as a resource then perform the 'Enable Guest Management' action on it. But when attempting to use the Az cli to perform the same change, I get error as shown…
1
vote
2 answers

Delete VMDK file with powershell/powercli command?

I'm a little bit stuck because I would like to delete some VMDK file from vSphere with a PowerShell or PowerCLI command. I know how to do that from the vSphere vCenter GUI but I didn't find how to do that with a command. Do you think that there is a…
TomTom30
  • 35
  • 5
1
vote
1 answer

Utilizing Ansible looping thru fact_diff results

I am building a vCenter cluster using Ansible, as part of that I need to be able to find a new drive and add it as a datastore. The basic process I am following is: get the ESXi facts ( community.vmware.vmware_host_disk_info add the drive(s. Could…
MikeM
  • 93
  • 1
  • 1
  • 4
1
vote
0 answers

how to copy a vmware template to a given vcenter using pyVmomi module

I am familiar with cloning a VM from template and copying the template within the same vcenter, but when i try to copy it to a specified vcenter i am unable to achieve this.. I am not sure whether this is possible or not using pyVmomi module I am…
AKSHAY KADAM
  • 129
  • 8
1
vote
0 answers

Openshift RHCOS 4.9-RHEL8.4 FirewallD

I am building an OCP 4.9 deployment in my lab with RHCOS 4.9 for the control plane and RHEL 8.4 for the worker nodes on VCenter 6.7. I am using RHEL 8.4 as the bastion host with Apache, HAProxy and the OCP install files, Bootstrap etc. Question #1 -…
1
vote
0 answers

list empty port groups in vcenter powercli scripts

Get Unused PortGroups in a Cluster or island get a list of the vPorts used by the Vms and another list from the vPorts of the Cluster. Then i do something just like a procv in Excel and compare both lists, keeping the difference in another list, the…
bince
  • 11
  • 1
1
vote
1 answer

How do I get events associated with Datastores and Datastore Clusters using PowerCLI?

This is a followup to this question I posted but running into an issue with enumerating events on some objects now. When I run the following code (or try any of the solutions in my prior question) to get the events from a datastore or datastore…
codewario
  • 19,553
  • 20
  • 90
  • 159
1
vote
3 answers

How do I get the tasks associated with vCenter objects using PowerCLI?

We are using vSphere 6.7 in our environment. I am writing a script to look for certain tasks associated with specific target resources in our vCenter environment. However, Get-Task only returns recent tasks that show up in the Recent Tasks view in…
codewario
  • 19,553
  • 20
  • 90
  • 159
1
vote
1 answer

Terraform: Error: timeout waiting for an available IP address

I am new to Terraform and I am tying to create a VM using terraform. Below is my code. I want to clone a VM and don't want to give an IP. The VM gets created in vSphere but terraform kept on waiting for IP. Is there any way I can stop terraform to…
1
vote
1 answer

VCenter 7.0 - Error downloading plug-in. Make sure that the URL is reachable and the registered thumbprint is correct. Initiator:

I have been getting this error lately. Download plug-in Status: Error downloading plug-in. Make sure that the URL is reachable and the registered thumbprint is…
Abdul Khan
  • 11
  • 1
  • 1
  • 3
1 2
3
17 18