Quantcast
Channel: VMware Communities : Discussion List - vSphere SDK for Perl
Browsing all 1577 articles
Browse latest View live

Add disk to particular storage policy

Is it possible to add a disk to a particular storage policy through the API/SDK? This is a new feature that has been made available in version vCD 10.8, but I haven't been able to figure out how to do...

View Article


HowTo create and start task from client?

Hi, I want to start a task from a client to attach and detach a scsi lun from esxi host. I found this method:HostStorageSystem.AttachScsiLun How can I use this method from the client?There is a method...

View Article


Image may be NSFW.
Clik here to view.

Customization of Virtual Machine at time of creation(cloning) using VSphere...

  Hi,I'm working on Virtual Machine provisioning using VSphere SDK 6.0. I have succeeded in provisioning the virtual machine from template using the following methodManagedObjectReference cloneTask =...

View Article

I want to add a FC LUN to vm and share the same FC LUN to other vm's under...

There are 4 vms under the same ESXi (vm1, vm2, vm3 and vm4). All 4 vm's are created with one "SCSI Controller 0" by default with LsiLogicController Parallel.  I want to add a FC(Fiber Channel) LUN to...

View Article

Unable to install VMware-vSphere-Perl-SDK-5.0.0 on Debian

Hi  - I am attempting to install the latest VMware Perl SDK (VMware-vSphere-Perl-SDK-5.0.0-422456.x86_64.gz) on a Debian GNU/Linux 'lenny' release. root:/usr/local/nagios/vmware-vsphere-cli-distrib#...

View Article


Due to large datastore size(10TB) in case of particular box, the API...

I am invoking Vmware perl API CreateVmfsDatastore and creating a datastore of 10 TB. But due to large datastore size(10TB) in case of particular box, the API CreateVmfsDatastore gives timeout, even...

View Article

IO Limit Disks Bug?

Hello, I've a script that limits disks io of all VMs. With upgrade to 5.5 Ux, that doesn'nt work anymore. my $io_alloc = StorageIOAllocationInfo->new (shares => $sharesInfo, limit=>...

View Article

impossible to connect vcenter using perl sdk

Hi, I try to reach our vcenter environnment using perl sdk but even after installed a lot of library (LWP, SSL, NET::SSL, etc) it still replies the same issue...

View Article


Vmware perl SDK API to be used to check the host status after RebootHost_Task...

I am using RebootHost_Task API, pinging the ESX server to check if it is up(using Net::Ping module) and then using ExitMaintenanceMode_Task to exit the maintenance mode for the ESX server. I sometimes...

View Article


Change VM's serial number

Hi guys, I have to deploy an automated VMware infrastructure. To made this, Y use SDK library with perl to attack my ESXis servers and create VMs. I need to use the serial number of VMs to identify...

View Article

Image may be NSFW.
Clik here to view.

How to retrieve the network information (NIC) for each VM (perl vim)

Hi,I have this simple code to retrieve the name of all VirtualMachines in my infrastructure (filtered for datacenter) [...other code...] use VMware::VILib;    Opts::add_options(%opts);...

View Article

Locking VMs to specific hosts to prevent migration.

Obviously the forums don't like chrome, had most of this typed then it locked up. Couldn't even do a copy/paste. New at using perl SDK and deal with VMWare. I'm trying to lock down a subset of VMs to...

View Article

Could not connect vcenter ipv6 with perl sdk

I am trying to connect a vcenter which is hosted on ipv6 network through perl sdk but the connect.pl script could not make a connection to the vcenter.I have also tried using the hostname of the...

View Article


Install VMware Tools with VMware Sphere SDK

Can we install VMware tools with VMware Sphere SDK?In vSphere API/SDK Documentation writes follows:  VirtualMachine includes three methods for automating installation and upgrade of VMware...

View Article

remove ghost datastores (contrib script)

using commvault/snapprotect we have very nice backups but more often than not there remain inaccessible nas datastores behind and I got tired of removing them from the esxi cli. So I found the...

View Article


Possible precedence issue with control flow operator at...

this is just a warning, but it is quite irritating. How can we get rid if it?It appears to be in this piece of code: sub get_session_loaded {    my $self = shift;    my $user_agent =...

View Article

createrole.pl

on the forum I found the createrole.pl script (https://developercenter.vmware.com/forums?id=3088#245019) but it does not work: perl createRole.pl --server esxxxx --username root --password xxxxx...

View Article


Globalization - creating non-english language VM

Hi,I am trying to create a VM with French language words.vSphere Client allowing and creating fine, but I am getting below error with Perl API call.Failed to Create virtual machine "fenêtres" due to...

View Article

How can I build my own ViPerlToolKit from the "Perl SDK for vsphere" we can...

Hi there, Did you have any experience on how to build the VIPerlToolKit from the resource here please? What I want to do is to let people get the new APIs in SDK 6.0 by run "ppm install viperltoolkit",...

View Article

SetentityPermissions error: a specified parameter was not correct: entity

With this code: my $host_view = Vim::find_entity_view( view_type => 'HostSystem' ); $permission = Permission->new(       principal => "$localuser",      group    => 'false',      roleId...

View Article
Browsing all 1577 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>