dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.54k stars 457 forks source link

Force removal of domains with snapshots or checkpoints #899

Closed cbosdo closed 2 years ago

cbosdo commented 2 years ago

Libvirt needs special flags to actually delete a virtual machine if that one has a snapshot or a checkpoint.

Use these flags when removing the domain resource to avoid any error if the VM has snapshots or checkpoints even added manually by the user.

dmacvicar commented 2 years ago

Thanks for the PR @cbosdo