Changing Boot Order of Virtual Machine using Vmware Perl SDK: Getting...
Hi All, I am using below perl logic to change the Bios Boot order. my $vm_view = Vim::find_entity_view(view_type => 'VirtualMachine', filter =>...
View Articletesting a session
Hi, I would like to load a session, and test if it's still active or not.if so, the script use it and keep going, if not, the script connect to vcenter as usual, and save session file for re-using it...
View ArticleIops stats
Hello, I try to get Iops stats for datastore.$perf = $ressourceManager->QueryDatastorePerformanceSummary( datastore => $datastore );print Dumper($perf);All I can get is:$VAR1 = [ bless(...
View ArticleVICredStore Problems
OK, I've officially hit a wall here. Whenever I try to use the VMware::VICredStore I get an error: Use of inherited AUTOLOAD for non-method VICredStore::init() is deprecated at shutdownvms.pl line...
View ArticleVM's power(on/off/running) status?
how to find the VM's status(ON or OFF or RUNNING) status through perl script??
View ArticleAdding Metadata to vDC
I have an application that creates a vDC and then create a series of vApp's within the new vDC. I need to store some information (key value pairs) for future reference.I see how to get the meta data...
View ArticleError: Can't call method "macAddress" on unblessed reference
Hello. I am learning vSphere perl SDK and trying to udnerdstand how to use various furcntion before I start writting real-life scripts. I want to print the MAC address of all the VMs that are running...
View ArticleHow to get currently-connected server?
This may be a really simple question, but I can't find where in the documentation it might be mentioned. How can I get the name of the server to which I'm connected? In many cases, this would be just...
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 ArticleHow to clone from Template without specifying a host?
Hello! I've been using the vSphere SDK for Perl to do automation. I have used until now, something like this to clone from templates:my @args = ("/root/vmware-vsphere-cli-distrib/apps/vm/vmclone.pl...
View ArticleFinding the extents of a datastore?
I am trying to extract the name of the extents that each datastore has. When I use the Vsphere GUI Client, I can access it through clicking on a datastore and going to the configuration tab, so I know...
View ArticleTrying to create a VMFS datastore
I can not figure out what I am doing wrong, a very unhelpful error "Undefined subroutine &VmfsDatastoreCreateSpec::type called at /usr/share/perl/5.14/VMware/VICommon.pm line 1501" is thrown when I...
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 ArticlevShere SDK for Perl version 5.1
HiWe installed vSphere SDK for Perl version 5.1 to use perl modules(like VIRuntime, VILib etc..).This SDK registers all these perl modules to perl version 5.8.But in our systems we already have perl...
View ArticleExpected time to deply VM from template.
Dear All, We would like to know if the below is expected behavior. 1. We have created Linux template, having a scratch drive ( storage) attached to the machine, around 150GB2. We used the template to...
View ArticleHow to avoid permission issue when deploying VM from template if user other...
Dear All, The script attached work fine when the user is having root access to deploy VM from template, we got this script from this fantastic forum. Since my user is having only permission to deploy...
View ArticleNetwork configuration of VM after deploy from template
Hi All, We have deployed the VM from template thanks to this discussion forum, Now we need to configure the new VM with all the network related configuration to bring the host live. Do we have any Perl...
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 Articlevdiskcreate.pl reports Can't call method "key" on an undefined value at...
Dear All, I want to add disk to VM, hence using the sample script provided. while executing it reports error can someone please help me what going wrong. ./vdiskcreate.pl --datacenter <data...
View ArticleList VMs in DRS Group
In vSphere you can right click a Cluster, click "Edit Settings > DRS Groups Manager > (select a group), Edit" and see a list of virtual machines that are in the cluster. I am looking to get this...
View Article