On Mon, Mar 19, 2018 at 02:21:24PM +0000, Зиновик Игорь Анатольевич wrote: > > -----Original Message----- > > From: Richard W.M. Jones [mailto:rjo...@redhat.com] > > Sent: Monday, March 19, 2018 3:27 PM > > To: Зиновик Игорь Анатольевич <zinovi...@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 09:31:33AM +0000, Зиновик Игорь Анатольевич > > wrote: > > > > Multiple same specifications for /.*. > > ... > > > > > setfiles: > > > > > /sysroot/etc/selinux/targeted/contexts/files/file_contexts: > > > > > Multiple > > > > same specifications for /.*. > > > > My idea for reproducing this was: > > > > (1) Download your file_contexts file. > > > > (2) virt-builder fedora-27 \ > > --upload > > file_contexts:/etc/selinux/targeted/contexts/files/file_contexts \ > > --selinux-relabel > > > > > > However I wasn't able to reproduce it (with > > policycoreutils-2.7-15.fc29.x86_64). > > Also I don't see multiple ‘/.*’ > > lines in the file_contexts file. > > > > So I don't know. > > > > But it's still my opinion that it is a bug in policycoreutils. > > Thanks for investigation, Richard. Is it somehow possible to disable > `setfiles' invocation > during virt-v2v conversion run? E.g. via environment variable?
You can do --no-selinux-relabel, but that disables relabelling completely, which may mean that your VM won't boot. Have you tried making edits to the file_contexts file to work out exactly which part setfiles is complaining about? That may give some clues about a better workaround. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v _______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs