Add existing VMDK to VM
I'm needing to script the process of cloning a VMDK from a VM and attaching the clone back to the VM using the vMA (vCLI). The clone via vmkfstools works fine. However, I'm having trouble adding the...
View ArticleHow to figure out if a VM is being backed up
Hello,I have written a script to unregister VMs after the backup software is done backing up the VMMy script keeps running every so often, gets the list of VMs and then un-registers them.However, I...
View ArticleHow to change the network where the virtual machine is connected to, in...
HiCan anybody answer that how to change a VM's network with Perl? I would like to periodically change the network where the VM's nic is connected.Thanks
View ArticleNot able to see in VM in the network list on the esxi server
I am using the vmcreate.pl script to create a VM and I am able to do that.However when I run " esxcli network vm list " on the esxi server I am not able to see the new VM in the list .
View ArticleVMware-vSphere-Perl-SDK-5.5.0-1384587 broken with perl 5.20
as the topic said, the vmware SDK is broken with perl 5.20.2. Possible precedence issue with control flow operator at /usr/share/perl/5.20/VMware/VICommon.pm line 2147. is there a fix available?
View ArticleDeploying template fails with an error
I am trying to deploy a vm template using the perl script attached.The error I am getting is as below: The request refers to an unexpected or unknown type. I think it is failing because of incorrect...
View ArticleMultiple errors occuring while executing the same VMware perl script.
I am using strawberry perl version 5.20.1My ESXi server version is 5.0.0My vCenter server version is 5.1.0 When executing a perl script I am getting errors as below. PS C:\> perl...
View ArticleHow to add virtual adapter (vmk0, vmk1..) per esx host onto vsphere...
Dear All, I was looking for a method to automate 'how to add virtual adapter per esx host onto dvs? Does anybody has any idea? Has any one already automated it. Please give me pointers to start...
View ArticledocumentElement Error with hostServiceManagement.pl
Hi Everyone, We are using hostServiceManagement.pl in the following ways: ~/bin/hostServiceManagement.pl --server $address --username $user --password $password --operation start --service TSM-SSH >...
View ArticleCloneVM results in "spec.location.folder"
Hi,I have created my own variant of the SDK sample script "vmprovision.pl" to clone a vm template. My Perl script usually works but when cloning across datacenters I am getting the error message: "A...
View ArticleVim::Login does not time out - took too long
Hi all, I have a script that is connecting to a few vCenter servers and reading some information. This had a problem today morning. It figured out that one vCenter is not accepting the login although...
View ArticleHow to retrieve condensed performance metrics from a whole cluster of ESXi...
Hi, I am new to the VMware Perl SDK API, but not quite that uninitiated to Perl. I have written a a few custom Perl Plug-ins for my Nagios and Munin servers, but not yet for monitoring of and...
View ArticleinMaintenanceMode not set while going to maintenance
Hi all, a rarely accident today brings me here again. Today morning a customer tried to create a vm via a website that is talking to our own perlscripts. The objective cluster was the one that we were...
View ArticleChanging VM IP address with CustomizeVM_Task failing with...
Hello, I'm trying to customize a Linux (RHEL 6.4) VM's network configuration (IP address, dns, gateway, hostname) using the VMware Perl SDK. It works fine with VMware tools installed, but when using...
View ArticleUnable to collect specific disk performance metrics using SDK for Perl
I would like to collect the following disk metrics from my VMs: disk.numberReadAveraged.Averagedisk.numberWriteAveraged.Average I have been trying to modify the perl script "viperformance.pl" to query...
View ArticlePerl SDK Fault string: Cannot complete customization
Hi, I am trying to deploy windows server 2012r2 guests using sdk 5.5 Update2. I keep getting the error Fault string: Cannot complete customization. The vpxd logs show Error occured while creating...
View ArticleInterface Names of VM?
Hi All, How to get the interface names (ex:- eth0,eth1,vnic1,vnic2) of virtual machine using perl sdk. Can you please help to get this informations or refer any link.
View Articlevmcreate.pl fails with Host IP address
vmcreate.pl fails when i give an IP address instead of an FQDN .Is there any way i fix this ?
View Article