16.2. SELinux and virtualization
SELinux prevents guest images from loading if SELinux is enabled and the images are not in the correct directory. SELinux requires that all guest images are stored in
Create a new file (using the
touch command) on the file system.
Verify the file has been relabeled using the following command:
# sudo ls -Z
-rw-------. root root system_u:object_r:virt_image_t:s0
The output shows that the new file has the correct attribute,