Re: [Libguestfs] [rhev-tech] virt-v2v failure during selinux re-lable
Reaching out to libguestfs@redhat.com. Thanks Shahar, I didn't know that email alias existed. Also, I made the XML, full logs, and sosreport from the VM in question available here [1] [1] -http://people.redhat.com/~jcall/tmp.cKGPeNjfi8/ Thank you, John Call Red Hat - Solutions Architect jcall@redhat.com (714) 267-8802 On Thu, Dec 29, 2016 at 2:40 AM, Shahar Havivi <shavivi@redhat.com> wrote:
try to ask libguestfs@redhat.com if you don't get answer here.
On Wed, Dec 28, 2016 at 11:04 PM, John Call <jcall@redhat.com> wrote:
Hi everybody,
I've had great success migrating ~40 VMs from a KVM environment into RHV. However, recently my virt-v2v process broke on a few VMs. Has anybody seen this before? Is there a way to simply bypass the relabel process? This is being documented in case #01764770 (VM XML and complete logs there)
Command ran (as root) # virt-v2v --colours --network ovirtmgmt -i libvirtxml -o rhev -oa sparse -os /var/lib/exports/export tlrampy1.eams.dir.ca.gov.xml
<snip...>
commandrvf: setfiles -F -e /sysroot/dev -e /sysroot/proc -e /sysroot/selinux -e /sysroot/sys -r /sysroot -q /sysroot/etc/selinux/targeted/contexts/files/file_contexts /sysroot/ /sysroot/etc/selinux/targeted/contexts/files/file_contexts: Invalid argument guestfsd: error: /sysroot/etc/selinux/targeted/contexts/files/file_contexts: Invalid argument: Success guestfsd: main_loop: proc 467 (selinux_relabel) took 0.02 seconds libguestfs: trace: v2v: selinux_relabel = -1 (error) virt-v2v: error: libguestfs error: selinux_relabel: /sysroot/etc/selinux/targeted/contexts/files/file_contexts: Invalid argument: Success
Thank you,
John Call Red Hat - Solutions Architect jcall@redhat.com (714) 267-8802
On Thu, Dec 29, 2016 at 09:25:30AM -0700, John Call wrote:
Reaching out to libguestfs@redhat.com. Thanks Shahar, I didn't know that email alias existed. Also, I made the XML, full logs, and sosreport from the VM in question available here [1]
The bug is likely to be this one: https://bugzilla.redhat.com/show_bug.cgi?id=1374232 Assuming the root cause is the same thing, there is a workaround in the bug, see comment 7. It requires a small edit inside the guest before starting the conversion. We're going to fix this properly in RHEL 7.4 HTH, 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
participants (2)
-
John Call -
Richard W.M. Jones