docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.63k stars 1.96k forks source link

VMwareFusion Driver cannot recover from pause/suspend state #2142

Open FrenchBen opened 8 years ago

FrenchBen commented 8 years ago

docker-machine -version: docker-machine version 0.5.0-rc4 (952539d)

Steps to reproduce:

  1. Create a VM machine: docker-machine create -d vmwarefusion vmfuse
  2. Check the VM is working properly: docker-machine env vmfuse
  3. Suspend/Pause the machine from the VMWareFusion App: vmfuse
  4. Try to start/restart the machine from terminal: docker-machine start vmfuse
  5. Notice the machine will not be started even though docker-machine ls reports it as such.

@frapposelli

dgageot commented 8 years ago

@FrenchBen There's no way with vmrun to find out that a vm is suspended. And when a suspended vm is asked to start, it falls into a strange state. I don't think we can do anything. Any ideas?

frapposelli commented 8 years ago

There is no support for suspend/resume in docker-machine, hence no support for it, theoretically, a VM in a suspended state can be powered on without issues, but it's not tested as part of the driver.

FrenchBen commented 8 years ago

The issue is that a VM in a suspended state will not come back to life via the start/stop issued by docker-machine. Does the driver not allow for this to happen?

dgageot commented 8 years ago

Hi @FrenchBen, it is not supported by the driver.

The driver uses vmrun and vmrun has couple of flaws:

FrenchBen commented 8 years ago

thanks for the breakdown of what's going on - Is there a plan to get the driver/vmrun updated in order to resurrect a VM from suspended mode?