VMware {code} Community
psyber
Contributor
Contributor

is there anyway to answer a blocking message on the host?

Seems like this should be a common enough question but I can't seem to find any answers related to VIX.

Upon moving or copying a VM when you power it on your asked if you have moved it or copied it.

I'd like a way to detect and answer that via the VIX API. I can see how to do it with vmware-vim-cmd usinng vmsvc/message but I'd like to be able to do this remotely from another machine. I could set the auto answer on the host but in some cases the correct answer is moved and in others it's copied.

Another option might be a VMRunCMDOnHost function that passes stuff to vim-cmd and returns the results. From the looks of things the API seems to be hitting a URL on the target host, so at this point I'd be happy with a URL to hit with the right params rather than sshing into the machine to get it to finish powering up.

domo

0 Kudos
1 Reply
admin
Immortal
Immortal

Sounds like your question is in connection with ESX / VirtualCenter. There is no way to do this with VIX AFAIK, you can use the AnswerVM method of the VI API to do this though.

0 Kudos