I created a kvm-qemu guest machine using "virsh define <filename>" passing a file created using "virsh domxml-from-native <filename>" which all worked ok
Then I wanted to work with the VM
(a) Edit the VM definition using Virt-Manager and using "Virsh edit" both of which worked ... EXCEPT a restart of libvirt-bin .. or a reboot .... would restore the VM definition to its' pre-edit state !!!!
(b) eventually I tired of that VM and deleted it. Oh oh ... as soon as libvirt restart (via "sudo service libvirt-bin restart" or a reboot) .. the VM was reinstated !!! WTF !
(c) Eventually I went all out and (i) used Virsh to destroy and undefine the VM (ii) stop libvirt (iii) deleted the log files from /var/log/libivrt/qemu (iv) deleted the apparmor files from /etc/apparmor.d/libvirt (v) scanned the entire disk for the VM's uuid - none found (vi) verified that libvirt has actually removed the vm definition from /etc/libvirt/qemu - which it had
Then I restarted libvirt .. and .....
The VM is still there !! I cannot remove it no matter what I do (worth noting that the xml files, apparmor files and logs are all gone - but virt-managerand "virsh list --all" continue to show the VM)
HELP !! How can I get rid of this wart on my machine ?
Please don't ask for more sacrifices ... .tried that already ... didn't work ! :)
Then I wanted to work with the VM
(a) Edit the VM definition using Virt-Manager and using "Virsh edit" both of which worked ... EXCEPT a restart of libvirt-bin .. or a reboot .... would restore the VM definition to its' pre-edit state !!!!
(b) eventually I tired of that VM and deleted it. Oh oh ... as soon as libvirt restart (via "sudo service libvirt-bin restart" or a reboot) .. the VM was reinstated !!! WTF !
(c) Eventually I went all out and (i) used Virsh to destroy and undefine the VM (ii) stop libvirt (iii) deleted the log files from /var/log/libivrt/qemu (iv) deleted the apparmor files from /etc/apparmor.d/libvirt (v) scanned the entire disk for the VM's uuid - none found (vi) verified that libvirt has actually removed the vm definition from /etc/libvirt/qemu - which it had
Then I restarted libvirt .. and .....
The VM is still there !! I cannot remove it no matter what I do (worth noting that the xml files, apparmor files and logs are all gone - but virt-managerand "virsh list --all" continue to show the VM)
HELP !! How can I get rid of this wart on my machine ?
Please don't ask for more sacrifices ... .tried that already ... didn't work ! :)