What is causing "toolsNotInstalled"?
I'm using Perl VMware::VIRuntime module to create VMs. VM can be created, but upon "power on", toolsStatus shows "toolsNotInstalled". I'm stuck, not knowing what caused this problem. Advice is...
View ArticleDid I find an API bug? : Adding multiple disks soap error
I am able to add the disks linearly like below: my $vmSpec = VirtualMachineConfigSpec->new(deviceChange => [$devSpecs[0]]); $vmView->ReconfigVM(spec => $vmSpec); my $vmSpec =...
View ArticleSDK needs admin/root privilledges to perform VM creation/deploy
Dear All, We need to know, Does vSphere SDK requires admin/root permission to perform VM deployment from template or create VM etc.? We see some permission denied issue when we perform such operation...
View ArticleDatacenter Informations
i need a perl API script for getting these following informations about datacenter .Number of ESXi ServersNumber of Physical CPUsNumber of CoresAmount of Physical RamNumber of VMs Combined Datastore...
View ArticleGetting a count of all VMs (with some filtering)
I'm trying to get a total count of VMs, excluding some vShield Edge devices and any VMs in a certain Resource Pool (System vDC). I'm starting with this: use strict;use warnings;use...
View ArticleFind Number of core in VM or Host
Hi Friends, Please help to find the number of core present in the datacenter or host or vm using the perl api script . Thanks in Advance . (No. Of CPU in vm= No. of core in vm) is it...
View ArticlevimService(Vim::load_session):The session is not authenticated
Hi All, I was trying to create a sample vSphere plugin using Perl SDK. I was able to successfully print the “Hello” statement in vSphere client after registering the plugin. Now I am trying to parse...
View ArticleConfiguring IP address, Domain etc to a VM after deploying from template
Dear All, We have a deployed the VM from template, But needs to bring the VM to network by assigning IP, bringing VM to domain etc, How we can achieve this with vSphere SDK perl. if any pointer please...
View ArticleHow to add vmdisk to VM using vsphere SDK
Dear All, We want add a disk to a newly deployed VM from template. From this forum we found vmdkManagement.pl script which seems to the one we want. But this script does not takes the size of the disk...
View Articlehow to get host and vm performance data?
Hi,Is it there any method to get host and vm performance data ,like cpu ,mem and io utilization ? I am guessing data in vCenter server database ,But I don't know how to translate it .I want get these...
View ArticleFailed to create DataStore
Hello I want to create datastore by using the SDK CreateVmfsDatastore, But when I run it I got the soap error :<SOAP-ENV:Envelope xmlns:ns0="urn:vim25"...
View ArticleLinked clone gives "Cannot complete customization"
Dear All, This is very urgent and need immediate assistance. I tried to do Linked clone from snapshot but while customization step it report error and bailout with message as SOAP...
View Articlehow to define disk size with clone vm
Any one know how to define disk size when clone one vm ? following code doesn't work : my $disk = VirtualDisk->new (capacityInKB => $size); my $devspec =...
View ArticleDeploy OVF with perl sdk
Hi, I'am trying to deploy an OVF on Vcenter via perl sdk : Here is my snippet : # Get OvfManagerprint "Get OVF Manager\n";my $OVFView=Vim::get_view(mo_ref =>...
View ArticleAssign IP address to VM
Hi All, I am new to this community. What I am trying to do is :1. Clone our one of the existing VM using vmclone.pl2. I am mounting an ISO image to it using vmISOManagement.pl...
View ArticleHow to migrate host virtual adapters (vmk0/vmk1) to dvs port groups
Hi, I am kind of novice into vpshere SDK for perl. I have a requirement to automate migration of virtual adapters (vmk0/vmk1) to dvs port groups (using vsphere sdk for perl). Can somebody guide me to...
View Articleusing vdiskcreate.pl add more than 15 HDD to virtual machine
Hello all I am using vmware perl SDK vdiskcreate.pl script to add HDD to virtual machine. Its working fine till 15 disk but as soon as i try to add 16 disk using the script i am getting error as...
View Articlehow to determine VM is ready to use after cloning
Dear All, Can you please let me know, how do I know my VM is ready to use. We are creating linked clone of VM and customization which takes some time a to make VM ready to use. But Clone_VM complete...
View Articlevdiskcreate.pl cannot create more than 7 disks.
I tried using the vdiskcreate.pl (with the changes suggested in other discussions) and was able to create and add disks to the Virtual machine.However,I could do so only for 7 disks, after that I keep...
View ArticleHow to remove a DRS rule?
Hi, I tried to use the following code to remove a DRS rule but it did not work. my $ruleinfo = ClusterRuleInfo->new(name => "testrule"); my $rules_spec =...
View Article