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