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
0
votes
0 answers

how to utilize Vmware.vim in my C# program?

I know this is a super newb question and I am probably going to catch heat for this. but I am new to coding in C#, I have been a systems engineer for a while now, and have great knowledge on using Vsphere CLI and Powershell to do my tasks. however I…
0
votes
0 answers

Is it possible to get VSAN data from ESXi hosts without the ESXi credentials?

I've got a Powershell script that extracts the disk usage per VM directly from the VSAN system by directly accessing the ESXi Hosts in the cluster. It currently: Connects to the ESXi host with its credentials Extracts the VSAN object system on that…
0
votes
0 answers

How can I get vCenter vSAN disk group UUIDs from python with pyVmomi?

I am currently trying to extract a list of VSAN Disk Group UUIDs using python with pyVmomi, however I cannot find the UUIDs anywhere. I connect to vCenter and get the content and clusters. I have looked through both of them and have yet to find the…
0
votes
1 answer

How to get VMs parent folder with vsphere-automation-sdk-python?

The client.vcenter.vm.guest.Identity.get just does not have such option (VM's parent folder name). I have considered a fallback to pyVmomi, but it is pretty slow in general.
Random Guy
  • 69
  • 1
  • 8
0
votes
0 answers

spec.pool error when using pyvmomi clone_vm.py on a vCenter with multiple clusters and datacenters

I have been using the code located at https://github.com/vmware/pyvmomi-community-samples/blob/master/samples/clone_vm.py to clone VMs for over a year. My inputs were based upon the following simplistic vCenter configuration: vcenter …
user2569618
  • 517
  • 3
  • 16
  • 42
0
votes
1 answer

VCenter Maintenance mode REST API is not working

I am trying to use the REST API /api/vcenter/host/maintenance/requests-v1 to move the ESX host to Maintenance mode. POST action was success. But host does not move to maintenance mode. I have a vSphere v8.0 Trial version deployment where I am…
0
votes
1 answer

Unable to create a resource pool using vSphere REST API?

I am trying to build a web application to automate the creation of some resource pools, folder and VMs on my vCenter. I have a datacenter and inside that a cluster of 3 hosts. This is how it looks like : vcs.domain datacenter cluster resource…
0
votes
0 answers

Powershell logging is not diasabling in event viewer even though block and off the logging

I wanted to stop the logging of powershell in event viewer operational logs when powershell scripts executed. I have disabled modular logging and powershell script block logging in Administrative Templates -> Windows Components -> Windows…
0
votes
0 answers

Automatic add or remove targets in prometheus present in a VMware vCenter

I would like to monitor all hosts in a vCenter (or ESXi) where I have already installed windows/node exporter on each host but without maintening any target.yml file. Nowaday, my configuration look like this scrape_configs - job_name: "Linux…
Raphyyy
  • 29
  • 4
0
votes
0 answers

Snapshot count for time interval for each VM in pyvmomi api

Iam trying to get snapshot information from python pyvim api. In powershell there is Get-Snapshot method where we can collect last 7 days created Vms Snapchat count for every virtual machine connected to vcenter. Iam not able to find in pyvmomi…
Kumar
  • 11
  • 2
0
votes
1 answer

unable to attach virtual hardware (storage and network) while creating new VM using pyvmomi

I'm attempting to create a new VM using pyvmomi. I'm using snippets from the pyvmomi community samples. As of now I've been able to come up with the following: """ Example for creating a VM """ import sys from pyVmomi import vim from pyVim.task…
AjB
  • 890
  • 13
  • 34
0
votes
1 answer

Unable to query VMs on vcenter server appliance using pyvmomi

I am getting the following error when trying to use pyvmomi to get a list of VMs from the vcenter server appliance. pyVmomi.VmomiSupport.vim.fault.NoPermission: (vim.fault.NoPermission) { dynamicType = , dynamicProperty =…
AjB
  • 890
  • 13
  • 34
0
votes
2 answers

Vsphere Invoke-StartVMPower return error - Get-VM return VM info

This is a VM I created using Terraform When I run the command Get-VM "VMNAME" it works without a problem and it returns the vm info, but when i run Invoke-GetVmPower -Vm "test_machine_vm_01_output" it return the following…
Danilo Patrucco
  • 110
  • 3
  • 10
0
votes
0 answers

Fetching Maximum number of disks per SCSI controller using Vcenter API

Back-ground: Till Vsphere 6.6 or below, There is a limit of 15 disks / PVSCSI controller on a VM, but with Vsphere 6.7 the limit has been increased to 64 disks/ PVSCSI controller. So i am trying to fetch the threshold dynamically and do some…
vishnubvrit
  • 317
  • 1
  • 3
  • 14
0
votes
1 answer

How can I power off a VM on vCenter using Pulumi

We are trying to create a remote desktop service that allows users to manage and access remote desktops where each remote desktop is a virtual machine on a vCenter. Users should be able to create and destroy them often. I am evaluating Pulumi as a…
bobby
  • 1
  • 1