Is it possible to control the network state of a running VM from the commandline?

I would like to

  • disconnect the network
  • change the type either to bridged or nat
  • reconnect the network

I tried running

vmrun.exe -T ws writeVariable path-to-vm.vmx runtimeConfig
  ethernet0.connectionType nat

on a bridged VM but this doesn't change the current state (readVariable will report nat but the VM is still bridged and says so in the Workstation GUI).

link|improve this question

feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.