Is there any way to change default storage location to other locations with selinux context in KVM on fedora…when i am trying to change the selinux context of new storage location directory with virt_image_t… but it doesn’t changing…
commands is used… -
semanage fcontext -a -t virt_image_t "/path(/.*)?" restorecon -Rv /path
still it doesn’t changes the context of a new directory…
Yeah first i tried in Ntfs it gives error… so i created ext4 fs and tried with in ext4 also but the same problem coming in ext4 what i got previous error in ntfs…
yeah its selinux issue only because now i checked in permissive mode it creates vm storage in ntfs partition without any error…
but what will happen after installation completed in vm if i set to enforce mode…!!
but my issue is i mentioned in my question that it doesn’t changing context to virt_image_t of any directory not only ntfs mount point…
yeah its selinux issue only because now i checked in permissive mode it creates vm storage in ntfs partition without any error…
but what will happen after installation completed in vm if i set to enforce mode…!!
but my issue is i mentioned in my question that it doesn’t changing context to virt_image_t of any directory not only ntfs mount point…
sudo chcon system_u:object_r:virt_image_t:s0 /Data1/VM_Storage/
chcon: failed to change context of '/Data1/VM_Storage/' to ‘system_u:object_r:virt_image_t:s0’: Operation not supported