Description of problem: virt-manager tries to play nice with selinux, relabeling iso images so they can be used by qemu. But it fails when the image is located on a read-only nfs share. The usual last-resort workaround for selinux issues - switching to permissive mode doesn't work, because virt-manager tries to relabel the files in permissive mode too. Making a local copy of the iso file is not always an option. Version-Release number of selected component (if applicable): virt-manager-0.7.0-4.fc11.x86_64 How reproducible: always Steps to Reproduce: 1. mount read-only nfs with iso image in it 2. try to install from this image Actual results: Unable to complete install '<type 'exceptions.ValueError'> Unable to fix install volume SELinux labelling: [Errno 1] Operation not permitted Please run 'chcon system_u:object_r:virt_content_t:s0 /mnt/pathtoiso/file.iso' manually and retry installation Traceback (most recent call last): File "/usr/share/virt-manager/virtManager/create.py", line 1495, in do_install dom = guest.start_install(False, meter = meter) File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 541, in start_install return self._do_install(consolecb, meter, removeOld, wait) File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 628, in _do_install self._create_devices(meter) File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 601, in _create_devices disk.setup(progresscb) File "/usr/lib/python2.6/site-packages/virtinst/VirtualDisk.py", line 608, in setup self.setup_security_context() File "/usr/lib/python2.6/site-packages/virtinst/VirtualDisk.py", line 711, in setup_security_context ("Please run 'chcon %s %s' manually and retry installation" % (wantLabel, self.path))) ValueError: Unable to fix install volume SELinux labelling: [Errno 1] Operation not permitted Please run 'chcon system_u:object_r:virt_content_t:s0 /mnt/pathtoiso/file.iso' manually and retry installation ' Expected results: working virtual machine Additional info: Would be nice if the relabeling was optional (selectable under advanced options of 5th installation step) with - default value on in enforcing mode - default off in permissive
Should be fixed in latest python-virtinst. *** This bug has been marked as a duplicate of bug 496340 ***