govmomi: `no such VM` finding by UUID
$ govc vm.info db
Name: db
Path: /DC ONE/vm/packer-templates/db
UUID: 420a16a5-dd7b-8507-b853-159c679ee137
Guest name: CentOS 4/5/6 (64-bit)
Memory: 1024MB
CPU: 1 vCPU(s)
Power state: poweredOff
Boot time: <nil>
IP address:
Host: DC.example.com
$ govc vm.info -vm.uuid=420a16a5-dd7b-8507-b853-159c679ee137
govc: no such VM
2018/01/28 19:30:06.831219 [ERR] (cli) unexpected exit from subprocess (1)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (8 by maintainers)
I don’t think we should change the
vm.uuid
flag to workaround the 5.5 limitation, since thegovc find
workaround works with all versions. We can add some doc before the next govc release at least.Sounds like a dup of #848 , which is specific to 5.5 and template VMs. It includes a workaround: