lago icon indicating copy to clipboard operation
lago copied to clipboard

RFE: Move to persistent libvirt domains

Open mykaul opened this issue 7 years ago • 1 comments

Today we use transient domains - every time we run, we create a domain, then destroy it. I'm pretty sure a small change can make the domain persistent. The advantage is that they can run outside the Lago framework, and hopefully the execution is a bit faster. To do so we need:

  1. Convert the creation to definition of domains. Should be a fairly straightforward change, as definition is from the same XML.
  2. Add code that checks if we need to either define a domain if it's not defined (via the method defined in 1), or edit it if there's a new definition of it (edit could be delete + define).
  3. Start a defined domain - create today does definition+start.
  4. Add a 'delete domain' ('undefine' in libvirt) verb to Lago.

See https://wiki.libvirt.org/page/VM_lifecycle#Transient_guest_domains_vs_Persistent_guest_domains

mykaul avatar Mar 20 '17 09:03 mykaul

This change will help us to improve snapshots: https://github.com/lago-project/lago/issues/716

gbenhaim avatar May 06 '18 16:05 gbenhaim