Skip to content

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.

  1. Open your CLI and execute sudo nano /etc/libvirt/qemu.conf.

  2. Uncomment the line #remember_owner = 1 by removing the leading hash sign (#) and set the remember_owner parameter value to 0.

    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
    
  3. For the changes to take effect, execute the following command:

    sudo systemctl restart libvirtd