PowerCLI

 View Only
  • 1.  Powercli error while updating tools

    Posted Aug 02, 2018 12:15 PM

    Hi, i am trying to update tools for multiple VMs, here is my code below, i have tried in two different ways but still i am getting error

    for each($vm in $vms){

         get-vm $vm | Update-Tools - Noreboot

    }

    another way

    foreach ($vm in $vms)

    {

         get-vm $vm | Mount-Tools

         get-vm $vm | update-tools -Noreboot

         get-vm $vm | Dismount-Tools

    }

    Please help me on this, what i am missing?

    But i am getting below error

    The Operation of the entity VirtualMachine-vm-12573 with following message:"Error Upgarding vmware Tools"



  • 2.  RE: Powercli error while updating tools

    Posted Aug 02, 2018 12:18 PM

    What does it say in the vmware.log of this VM?
    And which PowerCLI version are you using?



  • 3.  RE: Powercli error while updating tools

    Posted Aug 06, 2018 07:28 AM

    apologies for late response

    my powercli version is 4.0, i have attached the vmwarelog as well.



  • 4.  RE: Powercli error while updating tools

    Posted Aug 06, 2018 07:41 AM

    Looks like you might be having an issue with the CD on that VM.

    If possible remove the CD from the Settings, then add a new CD to the VM.

    Now try the VMware Tools upgrade again.

    You might also try to power off/power on the VM (not the guest OS), before doing the above.

    PS: you are running a very old version of PowerCLI.

    Any particular reason why you can't upgrade?



  • 5.  RE: Powercli error while updating tools

    Posted Aug 06, 2018 09:18 AM

    yes, there is a restriction in my office we cant upgrade however i will try to upgrade, and i will try removing CD drive



  • 6.  RE: Powercli error while updating tools

    Posted Aug 07, 2018 11:25 AM

    I tried removing the drive and adding it again. but still getting same error

    I can mount the tools but i cannot update it. have attached the screenshot of that error



  • 7.  RE: Powercli error while updating tools

    Posted Aug 07, 2018 12:09 PM

    You could try to upgrade the tools from within the guest OS.

    • mount the ISO
    • start the upgrade manually from within the guest OS

    Curious to know if that would work.



  • 8.  RE: Powercli error while updating tools

    Posted Aug 07, 2018 12:29 PM

    Manually mounting the ISO tools and installing the tools via installation wizard is working. But i have to update tools for hundreds of server.

    Manually installing is too much effort. so i am trying through powercli script, but though powercli its not installing.



  • 9.  RE: Powercli error while updating tools

    Posted Aug 07, 2018 12:31 PM

    And is Update-Tools failing on all the VMs on which you tried it?



  • 10.  RE: Powercli error while updating tools

    Posted Aug 07, 2018 01:09 PM

    yes its failing in all vms



  • 11.  RE: Powercli error while updating tools

    Posted Aug 07, 2018 01:14 PM

    Might you be hitting the issue described in KB2007298?

    Can you try the solution proposed in that KB on one the VMs?