255 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
210
views
PowerCLI Invoke-VMScript throws: Error occured while executing script on guest OS in VM "VMNAME". Could not locate "Powershell" script interpreter
When I try to run this one liner:
Invoke-VMScript -VM "VMNAME" -ScriptText {hostname} -GuestCredential (Get-Credential) -ScriptType Powershell
It prompts me for the credentials of the ...
0
votes
0
answers
51
views
Vsphere 8.0.3 Annotation
Is there a way in Vsphere Version 8 to get the Annotation from a vm with using the rest API?
"https:///api/vcenter/vm/vm-64" doesn't work - no annotation
Is Powercli the only way for this?
0
votes
1
answer
79
views
Where is ceph-gw located?
I recently set up a ceph cluster and try to connect a NVMEoTCP/NVMeof gateway to vSphere. Unfortunately all paths are marked as "STANDBY" and no device is shown to the esx.
To troubleshoot ...
1
vote
1
answer
61
views
Powershell Move-HardDisk cmd issue
I am working on a Powershell script to automate migration of a few hundreds of virtual disks of my vmware infrastructure and came up to an issue:
The parameter "-Confirm" from command Move-...
1
vote
0
answers
56
views
How do I find Unattached disks in Vcenter
I am using and learning about the vCenter APIs and found the Python pyVmomi package to access the system.
I have managed to get some samples working, and can, for example, print the names of all VMs ...
0
votes
1
answer
95
views
Provisioning VMs with Terraform on vSphere
I want to automate the creation of virtual machines with Terraform on vSphere, I have already made the scripts and they're pretty good at what they do.
i want a way to manage the state file, the thing ...
0
votes
0
answers
142
views
How to stop rsyslog from creating weird folders when vCenter logs come in?
I have installed rsyslog on a Fedora 40 server and would like to use this server as a log server in our network.
This was my original rsyslog template configuration (of course I also enabled TCP and ...
1
vote
0
answers
50
views
How to get a list of recently completed tasks from vcenter using govmomi
I want to get a list of recently completed vcenter tasks using govmomi and I'm using the following code.
package main
import (
"context"
"fmt"
"log"
&...
1
vote
1
answer
96
views
retrieve boot time using pyvmomi
Im trying to get bootTime by "runtime.bootTime" but Im receiving error:
An error occurred while fetching data: 'runtime.bootTime'
vm_properties = [
"name",
"...
0
votes
1
answer
204
views
vCenter 7 script to edit/delete VM
I have a cloning task set on vCenter 7.x, it runs every day.
it clones "machine A" with name "machine B"
My problem is that on the next day, it wont clone as there is already a &...
1
vote
1
answer
338
views
Moving Template or OVA to Datastore using vCenter API
As part of an Ansible Installation Process, we need to import some ISO, OVA files or template files up to a datastore so we can use them in the installation process. We have an existing token for the ...
1
vote
0
answers
206
views
Cross vCenter vMotion to linked vCenter
Configuration
We have two vcenters that are linked and we can vMotion no problem using the GUI - but when using PowerCLI we run into issues in getting the system to migrate.
Vcenters
vcsa1
vcsa2
VM ...
0
votes
0
answers
142
views
Powershell start-process - windows warning while program starts - how to skip/accept it
I'm accessing vcenter tru rvtools and it worked like a charm for the previous 3 years. Now I'm receiving a windows warning popup whenever I try to start rvtools via powershell or directly. I already ...
0
votes
1
answer
1k
views
VCenter behind Nginx Proxy Manager comes the error message: HTTP Status 400 – Bad Request
I would like to do the vcenter behind a proxy in the network. we use Nginx proxy manager. I configured the vcenter server in nginx with the advanced configuration
sub_filter "VCENTER-FQDN" &...
0
votes
1
answer
279
views
How to check for vCenter Server updates with the vSphere Python API?
I want to automate the checking of new vCenter Server updates with the vSphere Python API with the intent in mind to then be able to decide with a prompt if I should update or not.
I checked for ...