The breaking check is in virDomainDefCheckABIStabilityFlags which is meant to:
  This compares two configurations and looks for any differences                
  which will affect the guest ABI. This is primarily to allow                   
  validation of custom XML config passed in during migration

Well it is correct (it is mostly meant for live migrations where this
would be a much harder blocker), but in this case we want to force it.

Even with --redefine set and/or pressing "f" at the error (which also sets 
redefine) it keeps failing:
  $ virsh snapshot-edit disco-mt-zesty 1550137482
  error: unsupported configuration: Target domain machine type pc-i440fx-disco 
does not match source pc-i440fx-zesty
  Failed. Try again? [y,n,f,?]: 
  y - yes, start editor again
  n - no, throw away my changes
  f - force, try to redefine again
  ? - print this help
  Failed. Try again? [y,n,f,?]: 
  error: unsupported configuration: Target domain machine type pc-i440fx-disco 
does not match source pc-i440fx-zesty


There is no lifecycle that would allow to dumpxml/undefine/modify/define as 
you'd do e.g. with machine definitions - a snapshot can only be deleted and 
then the associated resources we need would be gone.
OTOH this would be just the same as stated by "virsh snapshot-edit"
            virsh snapshot-dumpxml dom name > snapshot.xml
            vi snapshot.xml (or make changes with your other text editor)
            virsh snapshot-create dom snapshot.xml --redefine [--current]
As snapshot-edit is defined as: "equivalent ... except that it does some error 
checking."
But even with the above it fails with the same error.

$ virsh snapshot-create disco-mt-zesty snapshot.xml --redefine
error: unsupported configuration: Target domain machine type pc-i440fx-disco 
does not match source pc-i440fx-zesty

There would be a --force needed or something like it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1802944

Title:
  error: unsupported configuration: Target domain machine type

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1802944/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to