Coder Social home page Coder Social logo

lamw / vmware-scripts Goto Github PK

View Code? Open in Web Editor NEW
825.0 160.0 483.0 1.6 MB

Various scripts for VMware based solutions

Home Page: http://www.williamlam.com/

License: BSD 2-Clause "Simplified" License

Shell 9.55% Perl 63.04% PHP 4.29% PowerShell 16.18% Puppet 0.15% Python 5.81% Ruby 0.57% Batchfile 0.41%

vmware-scripts's Introduction

VMware Script Repository

This repository contains a collection of sample scripts across various programming/scripting languages for VMware based solutions.

vmware-scripts's People

Contributors

adarobin avatar alagoutte avatar alanrenouf avatar balonik avatar brbecker avatar btemple avatar community-vsphere-tag avatar dominikzorgnotti avatar dredhorse avatar gentoouser avatar khensler avatar kremerpatrick avatar lamw avatar lapawa avatar lschweiss-wustl avatar lvalerio avatar patrobinson avatar richdowlingflutteruki avatar rschitz avatar rvichery avatar ryancbutler avatar scott1138 avatar scottbri avatar sneddo avatar timops avatar user5910 avatar vbondzio avatar virgilwashere avatar vmnomad avatar vthinkbeyondvm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vmware-scripts's Issues

[Nested ESXi hosts] Set vlan on default network adapter

Hi.

I was just wondering if it is possible to set the vlan id on the default network adapter with your nested ESXi hosts?

For example, $ovfconfig.common.guestinfo.hostname.value = "MyHostName"

Is it possible to add $ovfconfig.common.guestinfo.vlanid.value = 300?

I'd appreciate any help.

- Petter

vRNI Deploy error

Hi,

I am getting error while running the script. how can fix this issue

Import-VApp : 1/31/2018 8:39:04 AM Import-VApp Error while uploading
virtual disks. (InternalServerError: IO error)
At D:\BACKUP\NSX_BACKUP\vRNI-Deploy.ps1:85 char:19

  • $vRNIPlatformVM = Import-VApp -OvfConfiguration $vRNIPlatformOVFConfig
    -Source $ โ€ฆ
+ CategoryInfo : InvalidData: (:) [Import-VApp], ViError
+ FullyQualifiedErrorId : ViCore_VappServiceImpl_ImportVApp_DiskUploadErro
r,VMware.VimAutomation.ViCore.Cmdlets.Commands.ImportVApp

ConfigureVROPS.sh

ERROR: You must invoke this script using $VMWARE_PYTHON_BIN

Had to preface each python script with the above env variable to get it to run.

deploy_3nic_haproxy.ps1 - This cmdlet requires a vCenter Server connection.

I have edited the fields necessary to deploy the OVA in the haproxy script, but I don't see a stanza for connecting to vCenter in it. There is a variable for defining the host that the OVA should be deployed to, but not for connecting to vCenter. As such, the error returned is:

Line |
32 | $ovfconfig = Get-OvfConfiguration $HAProxyOVA
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| 2/12/2022 1:51:51 PM Get-OvfConfiguration This cmdlet requires a vCenter Server connection.

In previous scripts there was a line like this:

$vc = Connect-VIServer $VCSAHostname -User $VCSAUsername -Password $VCSAPassword

Am I simply overlooking something?

make_vcsp_2022.py: vCenter expect an integer/long for the etag

Hi,
I was testing things with Content Libraries and make_vcsp_2022.py when I got an error from vCenter when trying to synchronize.

Task Name: Sync Library Item
Status: A general runtime error occurred. An error occurred: For input string: "9d38a60e5008c8567ff2ea84273a0bf5"
The error I found in /storage/log/vmware/content-library/cls.log
2023-06-03T02:47:37.302+02:00 | ERROR    | 1f01e3a9-9965-4f01-b8ce-f602bff85a34-7d-51-c5 | cls-simple-activity-2     | SimpleActivityWorker           | Exception will not be handled by activity VcspGetFileActivity (handle=24efd964-e765-3fca-9df2-bdd442c2339c, entityId=29b95c02-c870-4029-9f9b-6841a8e1c00e): For input string: "9d38a60e5008c8567ff2ea84273a0bf5"
java.lang.NumberFormatException: For input string: "9d38a60e5008c8567ff2ea84273a0bf5"
        at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) ~[?:1.8.0_362]
        at java.lang.Long.parseLong(Long.java:589) ~[?:1.8.0_362]
        at java.lang.Long.valueOf(Long.java:803) ~[?:1.8.0_362]
        at com.vmware.cl.vcsp.sync.VcspSyncStrategy.isContentOutdated(VcspSyncStrategy.java:44) ~[cls-main-1.0.0.jar:?]
        at com.vmware.cl.vcsp.activities.VcspGetFileActivity.phaseBegin(VcspGetFileActivity.java:117) ~[cls-main-1.0.0.jar:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_362]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_362]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_362]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_362]
        at com.vmware.vcloud.activity.toolkit.simple.executor.SimpleActivityWorker.executePhase(SimpleActivityWorker.java:358) [activity-framework-toolkit-1.0.0.jar:?]
        at com.vmware.vcloud.activity.toolkit.simple.executor.SimpleActivityWorker.executeActivity(SimpleActivityWorker.java:240) [activity-framework-toolkit-1.0.0.jar:?]
        at com.vmware.vcloud.activity.toolkit.simple.executor.SimpleActivityWorker.run(SimpleActivityWorker.java:105) [activity-framework-toolkit-1.0.0.jar:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_362]
        at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125) [guava-30.1-jre.jar:?]
        at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:69) [guava-30.1-jre.jar:?]
        at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78) [guava-30.1-jre.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_362]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_362]
        at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362]

I searched the reason and found that "9d38a60e5008c8567ff2ea84273a0bf5" is the etag property in the items.json, which is a MD5 formatted in HEX and not a Long.

I also found a document for the Content Subscription Endpoint Specification version 1 but nothing for the version 2.
Anyway, in the first version of the spec, the etag is supposed to be "An integer representing the version of the file." and it seems like it's still the case with the version 2.
And the items.json generated by vCenter is also using a stringified integer/long for that field.

Finally, vCenter accepts (or maybe doesn't use) the etag under certain circumstance but, except when adding a new Content Library, I couldn't (didn't try to) understand them.

For information:
My vCenter version: 8.0.1 (Build 21560480)
The content library: https://download3.vmware.com/software/vmw-tools/lib.json (Nested ESXi)

generateVMRemoteConsoleURL.pl: uninitialized value

Hi,

I have trouble using your tool which should generate a console URL for a specified vm:

$ ./generateVMRemoteConsoleURL.pl --server myservername --vmname myvm
Enter username: xxx
Enter password:
Use of uninitialized value $vcInstanceUUID in concatenation (.) or string at ./generateVMRemoteConsoleURL.pl line 92.
Here is the Remote Console URL for myvm
https://myservername:9443/vsphere-client/vmrc/vmrc.jsp?[incomplete Parameters]

Any idea whats going wrong here?

Cheers, Marco

GenerateVMConsoleURL.ps1 The console has been disconnected

I used the power cli script GenerateVMConsoleURL.ps1 to generate the URL. The generated URL, when I open it in a browser, it asks me user/pass for vcenter, I login and then I see black screen with this message: The console has been disconnected. Close this window and re-launch the console to reconnect.

Happens everytime, closing window and re-opening doesn't make a difference. What am I missing?

Its a VCSA vSphere 6.7 environment.

Cannot connect to Vcenter Error: Cannot complete login due to an incorrect user name or password.

Hello after upgrading to Vsphere 6.5 the script stopped working.
I noticed the script running in my customers environment for about 3 years was outdated and got the latest version from the report

Now when I execute as below

vmwarevSphereHealthCheck.pl --server 10.10.10.10 --username ABC\myname --password Mypassword123--type vcenter --datacenter City-West --email yes

the result is

Error: Cannot complete login due to an incorrect user name or password.

I tried it against two different vcenters and got the same error about incorrect password

Is there a catch I didn't get with the input parameters ?

Thanks a million
Olivier

vRealize Operations Manager

Has there been changes since your blog and vRealize Operations Manager 6.2.3? I am trying to follow your steps and have enabled SSH. But I cannot ssh using root. What is the default root password? Or do I need to go into web console and enable?

Also can you please provide me link to Part 3 of the blog?

Part 3 where I will show you how to use the new vRealize Operations Manager Cluster Mgmt API also known as the CaSA API to perform this exact same configuration

vSphereHealthCheck 6.5

I am a longtime user of the original script, which includes healthy or alerts detected in the subject of the email. I use that feature every single day, as I manage a host in 75 different locations. In 6.5, that is not the case. However, in looking at the code, I see where the subject is configured. In my attempt to change it, I ran 6.5 against a host that has a critical problem in an array. It shows the host as healthy and I don't see anything about the individual disks or the array, just the controller.

Is there a way to see disk health in 6.5?

I would keep using the old version which puts the report in the body of the email (which I like) but it does not run on VMware ESXi 6.0.0 build-3620759, but it does runs on version VMware ESXi 6.0.0 build-2494585.

For the moment, I will be using both, but would love to just run 6.5.

Thanks for the time.

make_vcsp_2018 : Adding S3 onprem

Hello,

Would it be possible to add a possibility to have it work with an on-prem S3 solution ? So being able to add the url of our S3 solution ?

Thanks

Incorrect request to server

After finally figuring out how to run the "VMKeystrokes.ps1" script, I get the following error:

PowerCLI C:\> Set-VMKeystrokes -VMName $VM -StringInput "password" -ReturnCarriage $true
Sending keystrokes to ServerName ...

Exception calling "PutUsbScanCodes" with "1" argument(s): "Cannot complete the
operation due to an incorrect request to the server."
At C:\Projects\Automation\VMKeystrokes.ps1:159 char:5
+     $results = $vm.PutUsbScanCodes($spec)
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : VimException

Any idea what might be causing that?

Thanks,
Danni

VMKeystrokes.ps1 - Exception calling PutUsbScanCodes

Reproduction steps:

Powershell> . /VMKeystrokes.ps1
Powershell> Set-VMKeystrokes -VMName $VM -Stringinput "root" -ReturnCarriage $true

Connecting to VCENTER 6.5 (vSphere Client version 6.5.0.5300)

Exception calling "PutUsbScanCodes" with "1" argument(s): "Cannot complete the operation due to an incorrect request
to the server."
At C:\Users\mfreeman\Desktop\VMKeystrokes.ps1:160 char:5

  • $results = $vm.PutUsbScanCodes($spec)
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    • FullyQualifiedErrorId : VimException

VMKeystrokes.ps1 potential issue with VMName parameter

The VMName parameter is used in the function to get the VM with a Get-View cmdlet.
The Get-View Filter parameter has a value that is a RegEx expression.
In the current form, a VMName with value 'VM' also returns 'VM1','VM2'...

The line should be

$vm = Get-View -ViewType VirtualMachine -Filter @{"Name"="^$($VMName)$"}

to get the exact match of the name.

Cross vCenter v-motion error

Hello,

I've got this error:
Wait-Task : 2017-04-11 3:48:37 PM Wait-Task The operation for the entity "DB0106" failed with the following message: "Cannot complete login due to an incorrect user name or password."
At E:\Scripts-Migration\xVC-migrate-vm.ps1:165 char:14

  • $task1 | Wait-Task -Verbose
    
  •          ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Wait-Task], InvalidLogin
    • FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTask

I have verified the login account for both vcenters are correct and I can connect both vCenters without any problem. what could be the cause?

Best Regards.

Re-factored script for Cross VC vMotion via API error when running

When running the script the below error gets logged:

Wait-Task : 2017-02-23 08:37:28 AM Wait-Task The operation for the
entity "ubuntu-iperf_01" failed with the following message: "A specified
parameter was not correct: ServiceLocator.instanceUuid"
At D:\xmove.ps1:151 char:14

  • $task1 | Wait-Task -Verbose
    
  •          ~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Wait-Task], InvalidArgument
    • FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpda
      tes_OperationFailed,VMware.VimAutomation.ViCore.Cmdlets.Commands.WaitTask

A couple of users commented the they fixed the issue by doing the below:

Line 101: $service.instanceUuid = $destVCConn.InstanceUuid.ToUpper()

After adding .ToUpper() the script runs through properly. Could you perhaps update the script if this is the correct fix?

xNew-VM does not accommodate NSX-T Opaque Networks in the destination vCenter

Hello,

We're using Azure VMware Services as a DR destination for Horizon, and using xNew-VM to clone on-prem parent VMs up to the Azure SDDC. xNew-VM (as-written) does not correctly create NICs on new VMs in the AVS SDDC because it does not have code coverage for NSX-T "Opaque" networks. I have added the code below, starting after line 145 in the original script, and it seems to work correctly.

     } elseif ($switchtype -eq "nsx") {
        foreach ($vmNetworkAdapter in $vmNetworkAdapters) {
            # New VM Network to assign vNIC
            $vmnetworkname = ($vmnetworks -split ",")[$count]

            # Target the Opaque Network to which we need to connect
            $opaqueNetwork = Get-View -ViewType OpaqueNetwork | ? {$_.Name -eq $vmnetworkname}
            
            # Device Change spec for Opaque Network
            $dev = New-Object VMware.Vim.VirtualDeviceConfigSpec
            $dev.Operation = "edit"
            $dev.Device = $vmNetworkAdapter
            $dev.device.backing = New-Object VMware.Vim.VirtualEthernetCardOpaqueNetworkBackingInfo
            $dev.device.backing.OpaqueNetworkId = $opaqueNetwork.Summary.OpaqueNetworkId
            $dev.device.backing.OpaqueNetworkType = $opaqueNetwork.Summary.OpaqueNetworkType
            $locationSpec.DeviceChange += $dev
            $count++
        } 

Reference:
https://networkinferno.net/powercli-and-opaque-networks
https://blogs.vmware.com/PowerCLI/2019/02/configuring-vms-opaque-networks.html

Could not establish trust relationship error get-vsanversion

Hey William, when running the Get-VSANVersion function I'm getting the error below. I checked to make sure the PowerCli Config was set to Ignore for InvalidCertificateAction. Is this something you've seen before?

$results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluster_view)

Exception calling "VsanVcClusterQueryVerifyHealthSystemVersions" with "1" argument(s): "Could not establish trust
relationship for the SSL/TLS secure channel with authority 'VC_NAME'."
At line:1 char:1

  • $results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluste ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : SecurityNegotiationException
    

make_vcsp_2018 run only for new or specific images

Hi,

is there any possibility to add an option to make_vcsp_2018.pl to run only for an specific image or new images without item.json?
Would be very helpful to speed up the process of adding new images to large libraries.

Regards Philipp

vmwarevSphereHealthCheck.pl compatibility

We are preparing to upgrade to vSphere 6.7, I see the script notes compatibility up to 6.5 and is itself version 6.5.0. Will this script support version 6.7 or is there an update planned?

Server version unavailable

This script used to work with previous vcenter version now with the upgrade to 6.7 I get the following error

perl vm.pl --server vcenterprdcw.internal.fbd.ie --username fbd\bt_$$doveloso --password Password2020! --type vcenter --datacenter City-West
Server version unavailable at 'https://vcenterprdcw.internal.fbd.ie:443/sdk/vimService.wsdl' at /usr/share/perl/5.30/VMware/VICommon.pm line 705

Any suggestions ?

Any sample which shows the use of TicketedSessionAuthentication

Hi William,

For a Ubuntu12x64 guest, TicketedSessionAuthentication and SSPIAuthentication both are throwing vim.fault.OperationNotSupportedByGuest . I can only successfully login using NamePasswordAuthentication. But the problem is we have disabled the password and it is only ssh-key based login allowed for our VMs. So in that case what shall I do ? An example of any script will be helpful !

I have posted a question here also vmware/pyvmomi-community-samples#123

Uninitialized Variable $sampleRate

Dear William,
first I'd like to thank you for the great work!

But it seems I found a minor issue in the Script:
I pulled the zip today (2015-06-03) and while testing it I noticed the following perl message:
Use of uninitialized value $sampleRate in concatenation (.) or string at ./vmwar althCheck.pl line 4775.
As far as I can see, the cause of this is, that in Line 4751 there are seven variables, but only six values to initialize them.
Obviously the following "if" doesn't match in our environment, so the missing value leaves the variable empty.
One more "N/A" fixed the problem for me.
Thanks again,
Greetings,
Thomas

Line with no vSphere version 5.5.0

I found a line with no vSphere version 5.5.0. I mean, these are lines 817 to 821 of the vmwarevSphereHealthCheck.pl version 6.0.0:

if($aversion eq '4.1.0' || ($aversion eq '5.0.0' || $aversion eq '5.1.0')) {
## UPTIME ##
$vmstateString .= "".($vm->summary->quickStats->uptimeSeconds ? &getUptime($vm->summary->quickStats->uptimeSeconds) : "N/A")."";
}

I wonder why the version number 5.5.0 is not included. And also, some lines don't include the versio number 6.0.0. Those lines are identified running this command:

[user]$ grep 5.1.0 vmwarevSphereHealthCheck.pl -n|grep -v 6.0

Is all of that ok? Thank you.

Multipath not showing properly(VMwareDailyHealthCheck.pl)

Hi William,
While running the script , Pathstate was showing incorrect (Standby) even Path state is in Active on esxi host. Also can you help me How to add iSCSI and HBA in VMwareDailyHealthCheck.pl .

disk naa.60060e80122cdd0050402cdd0000104d ( 15360 MB ) == # of Paths: 2 Policy: VMW_PSP_FIXED

FC 8:0.0 5766308467535147521<->5766308467535147520 vmhba0:C0:T1:L0,fc.50060b0000c27201:50060b0000c27200-fc.50060e80122cdd15:50060e80122cdd15-naa.60060e80122cdd0050402cdd0000104d standby
FC 8:0.1 5766308467535147523<->5766308467535147522 vmhba1:C0:T1:L0,fc.50060b0000c27203:50060b0000c27202-fc.50060e80122cdd05:50060e80122cdd05-naa.60060e80122cdd0050402cdd0000104d standby

Thanks,
Ankoji

guestOpsManagement.pl copyfromguest issue

When I use "guestOpsManagement.pl --server vcenter --username x --password y --operation copyfromguest --vm name --guestusername z --guestpassword zz --filepath /home/user/test.txt"

I get the following messages:
Validating guest credentials in name ...
Successfully validated guest credentials!
Downloading file "/home/user/test.txt" from guest ...
Received download URL: https://IP:443/guestFile?id=97&token=string
Downloading file: "test.txt"

Use of unintialized value $contents in print at ./guestOpsManagment.pl line 668.

The resulting test.txt file is empty.

In looking at the code 668 is using the result of the get($url) contained in $contents. When I use a browser to go the the URL that was provided, I do see the contents so the URL appears correct. Not being a PERL guy (gasp), I'm not sure how to resolve this issue.

Thoughts?
Pete

make_vcsp_2018.py UnboundLocalError: local variable

Hello,

I am running in to an issue when executing against a local mount point, any idea why I might be getting this error?

python3 make_vcsp_2018.py -n vsphere-content-library -p /mnt/vsphere-content-library/contentlib/
Traceback (most recent call last):
File "make_vcsp_2018.py", line 578, in
main()
File "make_vcsp_2018.py", line 573, in main
make_vcsp(lib_name, lib_path, md5_enabled)
File "make_vcsp_2018.py", line 298, in make_vcsp
item_json = _dir2item(p, item_path, md5_enabled, "urn:uuid:%s" % lib_id)
File "make_vcsp_2018.py", line 163, in _dir2item
return _make_item(name, vcsp_type, name, files_items, identifier = uuid.uuid4(), library_id=lib_id, is_vapp_template=is_vapp)
UnboundLocalError: local variable 'is_vapp' referenced before assignment

making ghettoVCBg2.pl work with VMware 6.7

Hi,
I used to backup via VMA 5.5 with your perl script https://github.com/lamw/vghetto-scripts/blob/master/perl/ghettoVCBg2.pl

But since ESX6.7, it doesn't work anymore for multiple reasons:

  • there is no /etc/vma-release file anymore, on which the script relies
  • VIFPLib does not exist anymore, but there's a VILib now

I can do single vmware-cmd commands, vifs and vmkfstools (CentOS7 with vCLI and Perl-SDK)

Any chance to get the script working again ?
thanks a lot!

vmdkManagement.pl fail to share the disk

Dear William,
I using vmdkManagement.pl in share disk to the guest in vcenter 5.1. It works properly.
Recently, I migrate the vm host to vcenter 6.0 and the vmdkManagement.pl fail to share disk to the guest with following error;
Can't call method "key" on an undefined value at /usr/local/sa/vmtools/vmdkManagement.pl line 131

How can I fix this issue.
thank you.

Regards
Ken

Cluster info is not loading up

Hi,

First i want to thank you William for great script to minimize daily tasks but i am facing a small issue.
it is running fine on all vCenters but in one vCenter i have 4 clusters. 3 clusters info loading fully but one cluster info not. also VM tab is not loading anydata. i am using administrator account of vCenter. in out put file DataCenter tab loaded, Clusters tab loaded but in Hosts tab it shows // and then cluster name . no data after that... i moved all ESXi to other vCenter in a task with same cluster name and same ESXi so issue there also repeated. can you all please help to resolve...

Regards,
Subramanyam

TKG+NSXT automation script fails on the VM strokes with error: "Put USB HID scan codes"

After running the script to automate vSphere with Kubernetes external NSXT lab, I got this error:

image

I'm running this against a vCenter Server 6.7.0 Build 11727113 and an ESXi host 6.7.0 13006603 using PowerShell 7.0.0-preview.6 and PCLI 12.1.0.17009493.

image

Doing some research I found something similar on this issue opened before about the script VMKeystrokes.ps1 :

#66

so it is almost the same problem...no solution is provided and it is closed, wonder if you guys can provide some light on this, to continuing testing some cool demos :) .

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.