VMware Communities
ana_nas
Contributor
Contributor

WS 14: how to shutdown a shared VM using vmrun

How can I start and/or shutdown a shared VM using vmrun or another CLI-tool on a Ubuntu 18.04.01?     

It works with non-shared VMs, but not with shared VMs.

"vmrun -T ws-shared ..." worked in the past and seems to be not working anymore.

Reply
0 Kudos
2 Replies
wenwang_myheave
Enthusiast
Enthusiast

It does not support "ws-shared ..." in vmrun.

Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS]

AUTHENTICATION-FLAGS

--------------------

These must appear before the command and any command parameters.

   -T <hostType> (ws|fusion||player)

   -vp <password for encrypted virtual machine>

   -gu <userName in guest OS>

   -gp <password in guest OS>

Reply
0 Kudos
ana_nas
Contributor
Contributor

Thanks for the answer, but  "vmrun -T ws-shared" would be the required host-type to control shared VMs, which seems to be dropped.

Example that worked previously:

vmrun -T ws-shared -h localhost -u <user> -p <pwd> list

Unable to connect to host. Error: The specified service provider was not found

This doesn't help:

vmrun -T ws list

Total running VMs: 0

even if two shared VMs are running.

Scripts and use-cases that worked before don't work anymore. Any solution?

Reply
0 Kudos