vCloud

 View Only

Installing newer vmTools than vcloud/vsphere has to offer via powercli vcloud

  • 1.  Installing newer vmTools than vcloud/vsphere has to offer via powercli vcloud

    Posted Aug 10, 2024 02:24 PM

    (Really small SMB IT Partner)

    Using a vcloud from a belgian provider, and trying to automate the HW and VMTools upgrades. As the vCD of the supplier has soo many esxi's, they do not run on the same vsphere versions, resulting in different, and mostly older vmTools. Now using:

    $vm.ExtensionData.InstallVMwareTools_Task()
    As that results in somewhat older vmtools, and forgoing the whole upgrade idea, we now use chocolate install the latest supported version via our RMM
    choco install vmware-tools --version=$vmToolsVersionToInstall -y -f
    That needs us to select all devices that are a VM in the RMM, corollate which show old vmtools in vcd and, and, and.... you see its time consuming.
    I could do it automated putting that code in the Guest Customisation Script, and enable Guest Customisation I thought. But that does not run when starting the vm, only on first ever boot and when forcing customisation.
    OK, then there must be a parameter for start-civm to force with customisation right?
    start-civm -id xx -forcecustomisation? Nope....
    How do you guys start a script on vcloud vm's using powercli? 
    Yes I know of invoke-vmscript but thats when you have access to the vcenter/vsphere, I don't, I am a vcloud customer
    No I cannot force the supplier to update the hosts :)


    ------------------------------
    Regards,

    Jurgen
    Big Geek at ez Networking
    ------------------------------