Fedora Account System
Red Hat Associate
Red Hat Customer
Description of problem: > SELinux is preventing qemu-kvm (qemu_t) "getattr" to /dev/mapper/Volumes-OldWindowsBackup (fixed_disk_device_t). Version-Release number: 3.3.1-72.fc9 Steps to Reproduce: 1. create a fresh LVM volume and initialize it with some file system 2. add its device file (in /dev/mapper/...) to a QEMU virtual machine as a storage device (type 'Normal Disk Partition') 3. try to start that virtual machine Actual results: SELinux denies access as mentioned above. Virtual machine cannot start.
In order to get SELinux to work with qemu, you need to make sure this disk is labeled correctly. # semanage fcontext -a -t virt_image_t /dev/mapper/Volumes-OldWindowsBackup # restorecon /dev/mapper/Volumes-OldWindowsBackup Should allow you to run in enforcingm mode. Hopefully virtmanager will start doing this automatically.