cloudfoundry-attic / cfdev

A fast and easy local Cloud Foundry experience on native hypervisors, powered by LinuxKit with VPNKit
Apache License 2.0
227 stars 64 forks source link

`cf dev start/stop` calls `bosh start/stop-vm` #122

Closed siennathesane closed 4 years ago

siennathesane commented 4 years ago

It would be a very nice feature to have cf dev be able to start and stop the virtual machine without having to deploy the entire stack. I do quite like that cf dev start is idempotent, but I also would like to be able to start and stop the virtual machine for a reboot without having to take a 15-20 minute time penalty while it deploys the stack from scratch.

In my head, I could see this functionality:

That would be super helpful for folks who run it on laptops who will have to start and stop it for both battery and usage reasons (walking from point a to b, etc.)

cf-gitbot commented 4 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/170604521

The labels on this github issue will be updated when the story is started.

aemengo commented 4 years ago

Hi there, thanks for the feedback on the product.

While this has come up before and we certainly sympathize with the desire to avoid the 15-20 minute time penalty, there are simply too many architectural obstacles in the way of delivering start/stop or suspend/resume functionality. The reason is, ultimately, that the CF Dev VM leverages and behaves just like a Docker Desktop solution, which also doesn't have the ability. Please keep in mind that the time delay isn't from setting up the VM itself, but from provisioning all the containers inside - and this would take the same amount time whether bosh stop-vm was called or not.

https://github.com/cloudfoundry-incubator/cfdev/issues/54#issuecomment-461918656