On Thu, Apr 2, 2009 at 1:34 PM, Michael DeHaan <[email protected]> wrote:
> 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? Yes, VMVOL is the name of my VG. koan-1.4.0-2.el5 CentOS release 5.2 [r...@w-inf-nixutil-01 xen]# koan --server=w-inf-cob-01.inferencetest.net--virt --system=spacewalk-01 - reading URL: http://10.69.14.23/cblr/svc/op/ks/system/spacewalk-01 install_tree: http://10.69.14.23:80/cblr/links/centos-5.2-xen-x86_64 libvirtd (pid 2615) is running... downloading initrd initrd.img to /var/lib/xen/initrd.img url= http://w-inf-cob-01.inferencetest.net/cobbler/images/centos-5.2-xen-x86_64/initrd.img - reading URL: http://w-inf-cob-01.inferencetest.net/cobbler/images/centos-5.2-xen-x86_64/initrd.img downloading kernel vmlinuz to /var/lib/xen/vmlinuz url= http://w-inf-cob-01.inferencetest.net/cobbler/images/centos-5.2-xen-x86_64/vmlinuz - reading URL: http://w-inf-cob-01.inferencetest.net/cobbler/images/centos-5.2-xen-x86_64/vmlinuz vgs -o vg_name File descriptor 3 left open File descriptor 4 left open VG DATASTO SRVOL VMVOL vgs --noheadings -o vg_free --units g VMVOL File descriptor 3 left open File descriptor 4 left open (53.38) lvs -o lv_name VMVOL File descriptor 3 left open File descriptor 4 left open LV cobbler-01-disk0 cobbler-01-disk1 cobbler-01-disk2 cobbler-nfs linux-iso-nfs lvcreate -L 20G -n spacewalk-01-disk0 VMVOL File descriptor 3 left open File descriptor 4 left open 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 > > > > > > > > > ## 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 >
_______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
