Disabling SELinux File Labeling¶
You might need to disable the SELinux file labeling in order to use existing virtual disks previously assigned to a different virtual machine.
-
Open your CLI and execute
sudo nano /etc/libvirt/qemu.conf. -
Uncomment the line
#remember_owner = 1by removing the leading hash sign (#) and set theremember_ownerparameter value to0.Your configuration should look like this:
# Whether libvirt should remember and restore the original # ownership over files it is relabeling. Defaults to 1, set # to 0 to disable the feature. remember_owner = 0 -
For the changes to take effect, execute the following command:
sudo systemctl restart libvirtd