VMware Cloud Community
bottledair
Enthusiast
Enthusiast

update-tools fail

I am trying to use the update-tools cmd let and recieving the "The operation is not supported on the object". I have tried mutliple ways without success

1st attempt. Update-Tools -Guest (Get-VMGuest -VM (get-vm -name "vmname"))

2nd $vm = get-vm "vmname"

update-tools -vm $vm

What am I overlooking

T

Reply
0 Kudos
11 Replies
halr9000
Commander
Commander

I've had it work in some cases, and fail with the same error in others. I agree that this is a concern.

PS > get-vm foo | get-vmguest | Update-Tools

PS > Get-Task

Name State % Complete Start Time Finish Time

-


-


-


-


-


UpgradeTools_Task Success 100 09:56:20 AM 09:57:49 AM






Author of the upcoming book: Managing VMware Infrastructure with PowerShell

Co-Host, PowerScripting Podcast (http://powerscripting.net)

My signature used to be pretty, but then the forum software broked it. vExpert. Microsoft MVP (Windows PowerShell). Author, Podcaster, Speaker. I'm @halr9000
Reply
0 Kudos
LucD
Leadership
Leadership

Does this initiate an upgrade ?

Get-VM <VMname> | Update-Tools


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
bottledair
Enthusiast
Enthusiast

I would say it initiates but, errors out.

get-stat returns

Name State % Complete Start Time Finish Time

-


-


-


-


-


UpgradeTools_Task Error 0 10:42:38 AM 10:42:38 AM

Reply
0 Kudos
admin
Immortal
Immortal

What version of ESX are you running it against?

Reply
0 Kudos
bottledair
Enthusiast
Enthusiast

This is running on 3.50 build 82663

Reply
0 Kudos
admin
Immortal
Immortal

Could you try this:

get-vm vmname | get-view | % { $_.UpgradeTools_task("") | get-viobjectbyviview | wait-task }

and see if you get the same failure? This is just to see if the failure is in the toolkit or on the ESX side.

Thanks.

Reply
0 Kudos
bottledair
Enthusiast
Enthusiast

Not sure what to say but, it is now running without issue. If the issue appears again I will run the command requested.

Thanks

Reply
0 Kudos
nikol
VMware Employee
VMware Employee

Hi!

Can you please provide some additional info concerning your case:

- which is the guest OS windows?

- are you runnig the latest VI Toolkit (1.0, Update 1)?

- which version of VMTools/ESX are you trying to update to 3.50 build 82663?

Thanks in advance

Reply
0 Kudos
rterra
Contributor
Contributor

Hi Folks,

For the life of me, I cannot get Update-Tools to work. I've tried every combination here, and I still get the same error. I don't konw if I'm over looking something simple or what. Here is what I am seeing:

PS C:\MyScripts&gt; Get-VM vdbsweb | Update-Tools

Update-Tools : 3/9/2009 7:41:15 AM Update-Tools E38D85E6-3F78-4129-A3FC-EFA27F2ED1C4 Operation "Update VMware

Tools" failed for VM "vdbsweb" for the following reason: The operation for the entity vm-3429 failed with the following

message: "The operation is not supported on the object."

At line:1 char:30

+ Get-VM vdbsweb | Update-Tools &lt;&lt;&lt;&lt;

+ CategoryInfo : InvalidArgument: (vm-3429:String) , VimException

+ FullyQualifiedErrorId : Client20_TaskServiceImpl_CheckServerSideTaskUpdates_OperationFailed,VMware.VimAutomation

.VimAutomation.Commands.UpdateVmTools

Current versions of everything are:

ESX 3.5.0 Build 142961

VItoolkit - 1.5 Build 142961

PowerShell v2 CTP3

Any guidance would be greatly appreciated!!

Thanks,

- Bob

Reply
0 Kudos
aw443
Contributor
Contributor

Any information on this? I'm seeing the same error, and have the same set up as rterra above.

Any thoughts out there?

Reply
0 Kudos
IMSADMIN
Contributor
Contributor

this may happen if interaction is required...

Cheers, Rafael

Reply
0 Kudos