-----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, March 6, 2018 11:49 AM To: Зиновик Игорь Анатольевич <ZinovikIA@nspk.ru> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] virt-v2v 1.38 fails to convert .vmx VM: setfiles ... Multiple same specifications for /.*.
On Tue, Mar 06, 2018 at 08:40:51AM +0000, Зиновик Игорь Анатольевич wrote:
What happens if you run these commands (which should be safe to run because they only operate on a throw-away overlay):
qemu-img create -f qcow2 throwaway.qcow2 /mnt/knp1-vm-otp02/knp1-vm- otp02.vmdk
I missed out the -b flag:
qemu-img create -f qcow2 throwaway.qcow2 -b /mnt/knp1-vm-otp02/knp1- vm-otp02.vmdk
anyway ...
setfiles: /sysroot/etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /.*. /sysroot/etc/selinux/targeted/contexts/files/file_contexts: Invalid argument guestfsd: error: Can't stat exclude path "/sysroot/selinux", No such file or directory - ignoring. setfiles: /sysroot/etc/selinux/targeted/contexts/files/file_contexts: Multiple same specifications for /.*. /sysroot/etc/selinux/targeted/contexts/files/file_contexts: Invalid argument libguestfs: trace: selinux_relabel = -1 (error)
I have policycoreutils-2.7-14.fc29.x86_64 but I wasn't able to reproduce this using:
virt-builder rhel-7.4 virt-customize -a rhel-7.4.img --selinux-relabel
Can you send me the /etc/selinux/targeted/contexts/files/file_contexts file from within the guest?
See attached file. Настоящее сообщение, направленное по электронной почте, и любые вложения - это корреспонденция, содержащая информацию, доступ к которой ограничен в соответствии с законодательством Российской Федерации и которая предназначена только для использования уполномоченными АО «НСПК» получателями сообщения (уполномоченными лицами). Если Вы не являетесь уполномоченным лицом или Вам не известно, являетесь ли Вы таким уполномоченным получателем сообщения от АО «НСПК», то уведомляем, что любое раскрытие, распространение или копирование этого сообщения влечет за собой установленную законом ответственность. Если Вы не являетесь уполномоченным получателем сообщения, просим Вас незамедлительно информировать об этом отправителя и удалить полученное сообщение из системы. This e-mail message together with any attachments hereto contains confidential information and is intended for recipients authorized by NSPK only. Any disclosure, distribution or copying of this message entails liability established by law. If you are not an authorized recipient, please immediately inform the sender and delete this message from your information system.