multipass icon indicating copy to clipboard operation
multipass copied to clipboard

VM backends grew too much logic

Open Saviq opened this issue 7 years ago • 0 comments

Too much logic has grown into our platform backends, resulting in behaviours that should be common across all platforms requiring virtually duplicate code in each of them.

We should refactor it in a way that HV backends are just interfaces to the hypervisor in question, with little to no logic at all.

This could maybe be approached with base VM classes or the daemon taking over the logic. For features unsupported on a given platform, CanonicalLtd/multipass#477 / CanonicalLtd/multipass#478 are relevant.

  • [x] start() Addressed in #2611
  • [ ] stop()/shutdown()
  • [ ] suspend()
  • [ ] on_shutdown()?
  • [ ] dtor

Saviq avatar Dec 19 '18 14:12 Saviq