vmware / powerclicore

PowerCLI Core Dockerfile
Apache License 2.0
97 stars 48 forks source link

errors after Get-Snapshot #4

Closed ace02000 closed 7 years ago

ace02000 commented 7 years ago

Hi at all, this powercli core is awesome but now I got some problems with my docker container (latest) on MacOS. After ignoring the invalid certificate and connecting to the vcenter I want to get a list of all snapshots (Get-VM | Get-Snapshot). I only get the following errors :(

Get-Snapshot : 01/30/2017 09:40:52 Get-Snapshot An error occurred while sending the request. At line:1 char:10 + Get-VM | Get-Snapshot + ~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-Snapshot], ViError + FullyQualifiedErrorId : Client20_VMServiceImpl_GetSnapshot_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.GetSnapshot

alanrenouf commented 7 years ago

do you get the same error if you use the ubuntu built docker container?

ace02000 commented 7 years ago

How do I get this container?

alanrenouf commented 7 years ago

docker run -it vmware/powerclicore:ubuntu14.04

ace02000 commented 7 years ago

works better, thank you! :)

alanrenouf commented 7 years ago

This has now been fixed in the latest push on photon as well so you dont need to use the ubuntu image anymore