Rodrique Heron wrote: > I am using koan to deploy a Xen guest, "Virt Path" for the system is > set to the volume where I want the virtualdisk created. > > koan was able to created the disk but the installation failed, because > koan is trying to set SELinux context of the LV, it created. > > How can I resolved this? > > > My system has SELINUX=permissive
Can you please post the full output of the command as well as the versions of koan and the OS you are using? --virt-path is set exactly too "VMVOL" and that is the name of your volume group? > > > ## Error output > > koan --server=w-inf-cob-01.inferencetest.net > <http://w-inf-cob-01.inferencetest.net> --virt --system=spacewalk-01 > > <SNIP> > > Logical volume "spacewalk-01-disk0" created > /usr/bin/chcon -t virt_image_t /dev/mapper/VMVOL-spacewalk--01--disk0 > /usr/bin/chcon: failed to change context of > /dev/mapper/VMVOL-spacewalk--01--disk0 to > system_u:object_r:virt_image_t:s0: Invalid argument > /usr/sbin/semanage fcontext -a -t virt_image_t > /dev/mapper/VMVOL-spacewalk--01--disk0 > libsepol.context_from_record: type virt_image_t is not defined > libsepol.context_from_record: could not create context structure > libsemanage.validate_handler: invalid context > system_u:object_r:virt_image_t:s0 specified for > /dev/mapper/VMVOL-spacewalk--01--disk0 [all files] > libsemanage.dbase_llist_iterate: could not iterate over records > /usr/sbin/semanage: Could not add file context for > /dev/mapper/VMVOL-spacewalk--01--disk0 > SELinux security context setting to LVM partition failed > > Thanks > ------------------------------------------------------------------------ > > _______________________________________________ > cobbler mailing list > [email protected] > https://fedorahosted.org/mailman/listinfo/cobbler > _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
