[Libguestfs] virt-v2v 1.38 fails to convert .vmx VM: setfiles ... Multiple same specifications for /.*.

Richard W.M. Jones rjones at redhat.com
Tue Mar 6 08:49:25 UTC 2018


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?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list