[Users] issue with conversion of ESXi 5 centos VM to fedora19 ovirt host

Matthew Booth mbooth at redhat.com
Fri Jan 10 15:50:48 UTC 2014


On 10/01/14 15:38, Madhav V Diwan wrote:
> 
> 
> 
> 
> 
> 
> -----Original Message-----
> From: Richard W.M. Jones <rjones at redhat.com>
> To: Madhav V Diwan <mdiwan at diwanconsulting.com>, mbooth at redhat.com
> Cc: users at ovirt.org
> Subject: Re: [Users] issue with conversion of ESXi 5 centos VM to
> fedora19 ovirt host
> Date: Fri, 10 Jan 2014 15:32:28 +0000
> 
> On Thu, Jan 09, 2014 at 09:49:25PM -0500, Madhav V Diwan wrote:
>>
>> Hello everybody! I seem to be having a problem similar to 
>>
>> the posting from 
>>
>> " importing VM from ESXI "
>> posted by 
>> emitor at gmail.com
>> on    25.09.2013 21:10 UTC
>> " I'm not being able to import a VM from ESXI:"  
>>
>>
>> In my case i have a bit more of a trace on the permission issue  but not
>> much more
>>
>>> virt-v2v: Transferring storage volume razDC_razDC: 107374182400 bytes
>>> libguestfs: trace: set_verbose true
>>> libguestfs: trace: set_verbose = 0
>>> libguestfs: create: flags = 0, handle = 0x4725420, program = perl
>>> libguestfs: trace: set_attach_method "appliance"
>>> libguestfs: trace: set_backend "appliance"
>>> libguestfs: trace: set_backend = 0
>>> libguestfs: trace: set_attach_method = 0
>>> libguestfs: trace: add_drive "/tmp/a7SyYhkkeX/8eff2927-3bff-4b15-bdd0-8c4e0f40652d/v2v.z_Lv0fTf/81388ffb-6aed-4ae4-bed8-6b1999e78907/2cc85d68-d343-4961-9a28-58e4c695d78f" "format:raw" "iface:ide" "name:sda"
>>> libguestfs: trace: add_drive = -1 (error)
>>> /tmp/a7SyYhkkeX/8eff2927-3bff-4b15-bdd0-8c4e0f40652d/v2v.z_Lv0fTf/81388ffb-6aed-4ae4-bed8-6b1999e78907/2cc85d68-d343-4961-9a28-58e4c695d78f: Permission denied at /usr/lib64/perl5/vendor_perl/Sys/Guestfs.pm line 670.
>>> libguestfs: trace: close
>>> libguestfs: closing guestfs handle 0x4725420 (state 0)
>>
>>  
>> Has this issue been solved ? if so how  as i do not see the resolution
>> on the archives.  Else  would you all help me resolve it please?
>>
>>  It is very annoying to have a hundred gig disk copied over to your NFS
>> export and then deleted because qemu or libguestfs has a permissions
>> issue in opening it.
>>
>>
>>
>>  this is an issue with Ovirt Version 3.3.2-1.fc19 
>>
>> virt-v2v version is 
>>
>> virt-v2v --version
>> 0.9.0
>>
>> and libguestfs version and qemu version are :
>>
>> libguestfs-1.22.7-4.fc19.x86_64
>>
>> QEMU emulator version 1.4.2
> 
> Are you running virt-v2v as root?  If so my guess is that it's this
> libvirt bug:
> 
>   https://bugzilla.redhat.com/show_bug.cgi?id=1045069
>   https://bugzilla.redhat.com/show_bug.cgi?id=1045039
> 
> The easiest thing is to disable libvirt by doing:
> 
>   sudo bash
>   export LIBGUESTFS_BACKEND=direct
>   virt-v2v [..etc..]
> 
> Rich.
> 
> *********
> 
> yes unfortunately i am running as root.. hate doing that but
> 
>  what account SHOULD i use? myself? VDSM? 
> 
> sudo -u who
> 
> interesting idea.. Ill try it now on a smaller vm.

You MUST run virt-v2v as root for conversions to oVirt. It needs to both
mount an nfs volume and setuid.

Matt
-- 
Matthew Booth, RHCA, RHCSS
Red Hat Engineering, Virtualisation Team

GPG ID:  D33C3490
GPG FPR: 3733 612D 2D05 5458 8A8A 1600 3441 EA19 D33C 3490



More information about the Users mailing list