On 29 Aug 2024, at 17:19, Oliver Weinmann <oliver.weinmann@me.com> wrote:Hi Mohammed,
Many thanks for looking into this so quickly. A colleague has tested your new container, but it would not offer any suggestions for the VM name or path.
He looked in your code and figured that you use govc.
So he used it to figure out the correct path to the VM:
GOVMOMI:(to get the VM-PATH)Download govmomi Binaries or directly install in linux using this executed by root:curl -L -o - "https://github.com/vmware/govmomi/releases/latest/download/govc_$(uname -s)_$(uname -m).tar.gz" | tar -C /usr/local/bin -xvzf - govclogout and loginAfterwards set variables accordingly to your credentials and execute this to find the VM-Path for your vm (replace password and <testvm*> accordingly. * is Wildcard)export GOVC_USERNAME="<username>@<domain>"export GOVC_PASSWORD="**********"export GOVC_URL=https://vcenter.local/sdkexport GOVC_INSECURE=trueexport VMPATH="$(govc find . -type m -name <vmname*>)"##Output: /Datacenter Germany/vm/Projects Cluster/Linux/testvm.local##Output: /<Datacenter>/vm/<Cluster>/<Folder>/<VM>Feel free to add this to your Readme if you want. It is a life saver. :)
We will do some more tests tomorrow and migrate a couple of VMs.
Cheers,
Oliver
Am 26.08.2024 um 18:16 schrieb Mohammed Naser:Hi Oliver,
I just pushed up a PR that I tested which lists all VMs if it doesn’t find any VMs:
https://github.com/vexxhost/migratekit/pull/10
I’ve merged it and this pushed up a new image that has gotten promoted, so I suggest pulling the latest image (aka `docker pull …`) and trying again. It’ll help you find the right path. 😊
Thanks,
Mohammed