Bug 1174280 - RFE: Allow v2v conversion of Oracle Linux 5.8 VMware VM
Summary: RFE: Allow v2v conversion of Oracle Linux 5.8 VMware VM
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard: V2V
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-15 14:43 UTC by Sokratis
Modified: 2015-09-18 12:26 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-12-17 15:51:58 UTC
Embargoed:


Attachments (Terms of Use)
0001-v2v-Treat-oraclelinux-as-if-it-was-plain-RHEL-RHBZ-1.patch (1.51 KB, patch)
2014-12-15 14:53 UTC, Richard W.M. Jones
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1172955 0 unspecified CLOSED Migration of Oracle Linux 5.8 VMware VM to oVirt fails 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1175599 0 unspecified CLOSED Import of a v2v-ed VM from Export Domain Fails 2021-02-22 00:41:40 UTC

Internal Links: 1172955 1175599

Description Sokratis 2014-12-15 14:43:56 UTC
Description of problem:

virt-v2v fails to convert an Oracle 5.8 VMware vm

Version-Release number of selected component (if applicable):


libguestfs-1.28.1-1.17.el7.x86_64
virt-v2v-1.28.1-1.17.el7.x86_64

The following error is thrown:

[ 257.0] Converting Oracle Linux Server release 5.8 to run on KVM
virt-v2v: error: virt-v2v is unable to convert this guest type 
(linux/oraclelinux)



Isn't Oracle Linux supported by the new virt-v2v?

Comment 1 Richard W.M. Jones 2014-12-15 14:53:39 UTC
Created attachment 969059 [details]
0001-v2v-Treat-oraclelinux-as-if-it-was-plain-RHEL-RHBZ-1.patch

The attached patch is only compile-tested.  It should make the error
message go away, and depending on how close OEL is to RHEL, it may
even make the conversion work.

Comment 2 Sokratis 2014-12-15 15:02:50 UTC
How can I integrate that in my CentOS 7 machine where virt-v2v is installed?

Comment 3 Richard W.M. Jones 2014-12-15 15:30:46 UTC
Download the libguestfs source RPM from the repo, and rebuild it
with the patch.  There are various online tutorials for this.  These
ones seem fairly sensible:

http://bradthemad.org/tech/notes/patching_rpms.php
http://www.owlriver.com/tips/patching_srpms/

As an extra tip, to save a lot of time by avoiding running the test
suite when rebuilding the package, put this into your ~/.rpmmacros file:

%libguestfs_runtests   0

Comment 4 Sokratis 2014-12-17 15:32:03 UTC
The conversion using the patch works and the VM is copied in the oVirt Export Domain.

However during the conversion I got the following warning:

it-sybmon-01 (6083acd1-78b7-49be-97e5-288bc885a0b3)

virt-v2v: warning: cannot write files to the NFS server as 36:36, even                                                       
though we appear to be running as root. This probably means the NFS client                                                   
or idmapd is not configured properly.                                                                                        
                                                                                                                             
You will have to chown the files that virt-v2v creates after the run,                                                        
otherwise RHEV-M will not be able to import the VM.   

I did a chown vdsm.kvm on the export domain recursively but when I tried to import the VM on a data domain it failed. When I tried again I got the following error:

cannot import vm. the storage domain already contains the target disk(s).

Comment 5 Richard W.M. Jones 2014-12-17 15:51:58 UTC
(In reply to Sokratis from comment #4)
> cannot import vm. the storage domain already contains the target disk(s).

oVirt errors are often unhelpful.

http://libguestfs.org/virt-v2v.1.html#debugging-rhev-m-import-failures

Anyway you need to take this issue up with the oVirt folk.

Thanks for testing the patch, it is now included upstream (in
libguestfs >= 1.29.19), and so I am closing this bug.

Comment 6 Nicolas Ecarnot 2015-09-18 06:57:45 UTC
Hi,

As I'm facing this issue when trying to P2V some OracleLinux servers, and as I'm using the livecd-p2v-201412160442.iso liveCD, I have no obvious way to rebuild the RPM.
This liveCD is shipped with libguestfs 1.28.1 and does not contain this patch.
Is it planned to release a newer version of the liveCD shipped with a recent version of libguestfs?

Regards.

Comment 7 Richard W.M. Jones 2015-09-18 07:50:05 UTC
I'd recommend a newer version of the p2v ISO, eg:
http://oirase.annexia.org/virt-p2v/RHEL-7.2-preview/

The patch is for virt-v2v (not p2v) and there are no plans
to include it in RHEL since it would require us to test conversions
of OEL too, which would be a very big task.  However feel free to
apply it to your virt-v2v sources and see if it works.

Comment 8 Nicolas Ecarnot 2015-09-18 08:40:46 UTC
Richard,

Not being sure of having understood your answer, I just downloaded and tried with the iso you just mentionned and the same error message is appearing (virt-v2v: error: virt-v2v is unable to convert this guest type
(linux/oraclelinux)). This iso is still shipped with libguestfs 1.28.1

About your patch, is it to be applied on the conversion server, or on the liveCD?

If it is on the conversion server, it seems more easy to try to apply it.

Comment 9 Richard W.M. Jones 2015-09-18 09:19:11 UTC
(In reply to Nicolas Ecarnot from comment #8)
> Richard,
> 
> Not being sure of having understood your answer, I just downloaded and tried
> with the iso you just mentionned and the same error message is appearing
> (virt-v2v: error: virt-v2v is unable to convert this guest type
> (linux/oraclelinux)). This iso is still shipped with libguestfs 1.28.1

The new ISO is nothing to do with this bug.  I just thought you'd
like to use an ISO which is more up to date and where we have fixed
many other bugs.

> About your patch, is it to be applied on the conversion server, or on the
> liveCD?
>
> If it is on the conversion server, it seems more easy to try to apply it.

The patch should be applied to virt-v2v, ie. the conversion server.
See comment 3.


Note You need to log in before you can comment on or make changes to this bug.