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
1
vote
1 answer

How to get current logged in user session of vSphere web client with vim25.

We are using vSphere web client SDK 6.0 (HTML bridge) and trying to retrieve session with com.vmware.vise.usersession.UserSessionService.getUserSession(). for code sample you can refer vsphere-wssdk example from…
Mayur Bhokase
  • 377
  • 4
  • 19
1
vote
2 answers

Connecting Mulitple VCenter Servers and collect information with Powercli

I have a list of VCenter servers. They are on different locations and of different customers. I have created a text file with all the vcenter servers and credentials like below..I have more than 20 Vcenter Servers. I need to collect information of…
Subhantech
  • 67
  • 1
  • 8
1
vote
1 answer

Sed with space in python

I was trying perform replace using sed in VMkernel. I used the following command, sed s/myname/sample name/g txt.txt I got an error saying sed: unmatched '/'. I replaced space with \. It worked. When I tried the same using python, def…
Kajal
  • 709
  • 8
  • 27
1
vote
1 answer

Unable to create a vmware session ID

I have a VCenter Server version 5.5. I am trying to generate a session ID to authenticate to ReST API requests using the following command: curl -kv -X POST -H 'Accept: application/json' --basic -u me@abc.co.in:myPass!…
codec
  • 7,978
  • 26
  • 71
  • 127
1
vote
0 answers

How to restart vsphere web client service in java?

For some reason, I want to restart vSphere web client service with the help of java/install4j. Can we restart this service from Java irrespective of whether vCenter is installed on Windows or Linux (VCSA) machine?
Mayur Bhokase
  • 377
  • 4
  • 19
1
vote
0 answers

Create multiple VMs in parallel using powershell runspace

I have a problem with creating multiple VMWARE VM's from template in single VIServer. In following code when put anything bigger than 1 in throttle script only executes one vm and don't create any other (in parallel), it seems to have problem with…
Rafal
  • 217
  • 1
  • 3
  • 9
1
vote
0 answers

How to add more than two devices with PowerCLI

I am trying to setup hardware passthrough on a ESXi 6.0 server with the following PowerCLI script: Connect-VIServer $server -User $user -Password $pwd $AllVirtualMachines = Get-VM -Location "Dev Machines" foreach ($VirtualMachine in…
1
vote
1 answer

open vm tools fails to customize guest

I am trying to deploy a cent-os 7 VM on a vcenetr from pyvmomi python library and then before powering on the VM I am trying to setup static IP and DNS for the VM. VM creation goes fine , but guest customization fails, givimg following…
1
vote
2 answers

Copying file from Vcentre datastore to VM

I use salt-stack and pyvmomi module to communicate with vcenter and create the VM. On this newly created VM I want to copy files(around 1 GB) from vcenter Datastore. InitiateFileTransferToGuest can be used to upload the file to VM but how can we…
1
vote
0 answers

Add an additional "hybrid" vCenter to a Datacenter

vFriends. I have a very specific question to make: I have a Datacenter with 4 clusters, formed by 14 big hosts and almost 500 VMs. So many VMs showed the need to collect info from them. I have a tool that collects the info through several powershell…
David Lago
  • 307
  • 1
  • 3
  • 11
1
vote
1 answer

ViJava: Why is BootOrder null?

I'm attempting to set the BootOrder of a Virtual Machine. I want to get the current BootOrder and modify it: final VirtualMachineBootOptionsBootableDevice[] bootOrder = vm.getConfig().getBootOptions().getBootOrder(); bootOrder is null. When…
AutoV
  • 25
  • 6
1
vote
3 answers

Difference between vCenter and vSphere

What is the difference between vCenter and vSphere? And which one should I use if I want to access a list of VMs and templates? Will they have different IP addresses?
1
vote
2 answers

Job does not create VM

I want to create VM with a job. cls if (-not (Get-PSSnapin VMware.VimAutomation.Core -ErrorAction SilentlyContinue)) { Add-PSSnapin VMware.VimAutomation.Core | Out-Null } #import VM settings $VMs = Import-CSV…
vencrena
  • 65
  • 1
  • 10
1
vote
1 answer

How to automate Azure Site Recovery failover?

I have started exploring Azure Site Recovery with VMware as a disaster recovery solution for our customers. The main doubt I have is on how to automate failovers. I.e. how can I tell Azure to check if an on-prem VM is offline and automatically…
1
vote
3 answers

How to assign IP address to VM created on VCenter using Ansible?

Problem Statement: Clone VM from template. Assign an IP address to the VM created. I am using Ansible to do this work. Following is the script which is cloning the VM from the specified template: --- - hosts: localhost connection: local …
Shasha99
  • 1,746
  • 2
  • 16
  • 30