-
Bug
-
Resolution: Not a Bug
-
Normal
-
None
-
rhel-9.5
-
None
-
Moderate
-
rhel-sst-virtualization
-
ssg_virtualization
-
None
-
False
-
-
None
-
None
-
None
-
None
-
-
x86_64
-
None
What were you trying to do that didn't work?
The undefine domain come back again after rebooting the host or restarting the libvirtd
Please provide the package NVR for which bug is seen:
host:
qemu-kvm-9.0.0-1.el9.x86_64
edk2-ovmf-20240214-2.el9.noarch
libvirt-10.0.0-7.el9.x86_64
5.14.0-443.el9.x86_64
How reproducible:
100%
Steps to reproduce
- import a Q35 + OVMF domain
# wget http://dell-per740-36.lab.eng.pek2.redhat.com/libvirt-CI-resources/RHEL-9.5-x86_64-latest-ovmf.qcow2 -O /home/images/RHEL95.qcow2
# virt-install --machine=q35 --noreboot --name=rhel95 --cpu host-passthrough --memory=8192 --vcpus=4 --graphics type=vnc,port=5995,listen=0.0.0.0 --boot=uefi --network bridge=switch,model=virtio,mac=52:54:00:00:95:95 --import --noautoconsole --disk path=/home/images/RHEL95.qcow2,bus=virtio,cache=none,format=qcow2,io=threads,size=20 --osinfo detect=on,require=off
# virsh list --all Id Name State ------------------------- - rhel95 shut off
- backup the domain xml
# cp /etc/libvirt/qemu/rhel95.xml /etc/libvirt/qemu/backup.xml
- undefine the domain
# virsh undefine rhel95 --nvram Domain 'rhel95' has been undefined
# virsh list --all Id Name State --------------------
- restart the libvirtd deamon or reboot the host
# systemctl restart libvirtd
- check if the domain come back
# virsh list --all Id Name State ------------------------- - rhel95 shut off
Expected results
the domain should be un-defined permanently
Actual results
The un-define domain comes back