<div dir="ltr">Hi Shahar,<br><div><br>I ran the virt-v2v as root as it needs to do stuff in /run/user/0. It certainly writes all the files as the correct user/group (i.e., vdsm/kvm) on the export domain. Is there any way to do the import from the command line?<br><br></div><div>Thanks,<br><br></div><div>Cam<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 30, 2016 at 7:17 AM, Shahar Havivi <span dir="ltr"><<a href="mailto:shavivi@redhat.com" target="_blank">shavivi@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Check for permissions,<br>
All the directory hierarchy and the images as well as the ovf needs to reached<br>
by the vdsm user, its best to change the owner to vdsm:kvm (e.g. 36:36).<br>
<br>
Shahar.<br>
<div><div class="h5"><br>
<br>
On 29.08.16 16:05, Cam Mac wrote:<br>
> Hi,<br>
><br>
> I've use ovftool to create an .ova of a VMWare guest (in this case W2012),<br>
> and then have converted it with virt-v2v, outputting to the oVirt export<br>
> domain (virt-v2v -i ova /space/w2012-test.ova -o ovirt -os<br>
> ovirt-engine:/mnt/export-vm -of qcow2). This appears to work, though it<br>
> reports a warning:<br>
><br>
> [ 0.0] Opening the source -i ova /space/w2012-test.ova<br>
> [ 5.3] Creating an overlay to protect the source from being modified<br>
> [ 5.9] Initializing the target -o rhev -os ovirt-engine:/mnt/export-vm<br>
> [ 6.1] Opening the overlay<br>
> [ 11.5] Inspecting the overlay<br>
> [ 12.6] Checking for sufficient free disk space in the guest<br>
> [ 12.6] Estimating space required on target for each disk<br>
> [ 12.6] Converting Windows Server 2012 Standard Evaluation to run on KVM<br>
> virt-v2v: warning: Neither rhev-apt.exe nor vmdp.exe can be found. Unable<br>
> to install one of them.<br>
> virt-v2v: warning: there is no QXL driver for this version of Windows (6.2<br>
> x86_64). virt-v2v looks for this driver in /usr/share/virtio-win<br>
><br>
> The guest will be configured to use a basic VGA display driver.<br>
> virt-v2v: This guest has virtio drivers installed.<br>
> [ 13.5] Mapping filesystem data to avoid copying unused and blank areas<br>
> [ 16.6] Closing the overlay<br>
> [ 16.6] Checking if the guest needs BIOS or UEFI to boot<br>
> [ 16.6] Assigning disks to buses<br>
> [ 16.6] Copying disk 1/1 to<br>
> /space/scratch/v2v.F5dkB2/<wbr>ff68b458-3fe9-4ecf-95b7-<wbr>cfdcc42dd291/images/b8a180eb-<wbr>e075-44bf-a6f0-263e2792f5d7/<wbr>a49bed7d-9ac3-48f1-8b00-<wbr>2abb1e4c183f<br>
> (qcow2)<br>
> (100.00/100%)<br>
> [ 200.3] Creating output metadata<br>
> [ 200.3] Finishing off<br>
><br>
> I can then see the exported VM available for import in the oVirt GUI. When<br>
> I import it however, it just says it fails to import, and having a look at<br>
> the engine log I can't see what is wrong specifically:<br>
><br>
> 2016-08-29 15:43:06,620 INFO<br>
> [org.ovirt.engine.core.<wbr>vdsbroker.irsbroker.<wbr>DoesImageExistVDSCommand]<br>
> (default task-372) [4cdcbb5c] FINISH, DoesImageExistVDSCommand, return:<br>
> true, log id: 188b0975<br>
> 2016-08-29 15:43:06,715 WARN<br>
> [org.ovirt.engine.core.bll.<wbr>exportimport.ImportVmCommand] (default task-372)<br>
> [] VM '980e3d5d-934a-4426-850d-<wbr>23ba5df77b01' doesn't have active snapshot<br>
> in export domain<br>
> 2016-08-29 15:43:06,788 INFO<br>
> [org.ovirt.engine.core.bll.<wbr>exportimport.ImportVmCommand]<br>
> (org.ovirt.thread.pool-8-<wbr>thread-17) [4cdcbb5c] Running command:<br>
> ImportVmCommand internal: false. Entities affected : ID:<br>
> 9d1fe12c-5c5f-49ad-a875-<wbr>a735acba2530 Type: StorageAction group<br>
> IMPORT_EXPORT_VM with role type ADMIN, ID:<br>
> ff68b458-3fe9-4ecf-95b7-<wbr>cfdcc42dd291 Type: StorageAction group<br>
> IMPORT_EXPORT_VM with role type ADMIN<br>
> 2016-08-29 15:43:06,797 INFO<br>
> [org.ovirt.engine.core.utils.<wbr>transaction.<wbr>TransactionSupport]<br>
> (org.ovirt.thread.pool-8-<wbr>thread-17) [4cdcbb5c] transaction rolled back<br>
> 2016-08-29 15:43:06,798 ERROR<br>
> [org.ovirt.engine.core.bll.<wbr>exportimport.ImportVmCommand]<br>
> (org.ovirt.thread.pool-8-<wbr>thread-17) [4cdcbb5c] Command<br>
> 'org.ovirt.engine.core.bll.<wbr>exportimport.ImportVmCommand' failed: null<br>
> 2016-08-29 15:43:06,798 ERROR<br>
> [org.ovirt.engine.core.bll.<wbr>exportimport.ImportVmCommand]<br>
> (org.ovirt.thread.pool-8-<wbr>thread-17) [4cdcbb5c] Exception:<br>
> java.lang.reflect.<wbr>UndeclaredThrowableException<br>
><br>
><br>
> Any ideas?<br>
><br>
> Thanks,<br>
><br>
> Cam<br>
<br>
</div></div>> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br>
</blockquote></div><br></div>