I haven’t tried this yet, but if I had to move a VM from ESXi to oVirt this is how I would
do it…
(actually, this is how I did it with Windows 7 guests…)
Shutdown guest on ESXi (or use GhettoVCB to make a snapshot backup if you don’t want an
outtage)
NFS copy guest from ESXi server to temp storage somewhere
qemu-img convert guest.vmdk -O raw guest.raw
Create an oVirt guest with the appropriate OS type
Add a disk of the same GB to the guest
After oVirt finishes creating the disk, copy the guest.raw file over the disk image oVirt
made
boot guest and install qemu-agent, ovirt-agent, spice-agent (or better yet, do this before
you shutdown on ESXi)
remove VMware tools.
The importing and virt2v procedure seems far to complex and error prone to me.
On Jan 14, 2014, at 2:25 PM, Madhav V Diwan <mdiwan(a)diwanconsulting.com> wrote:
well. its never easy is it...
anyone have an idea as to what I've done wrong now?
Import failed due to the following
2014-01-14 14:39:37,400 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand]
(ajp--127.0.0.1-8702-8) [79a09c5d] START,
DoesImageExistVDSCommand( storagePoolId =
030ed024-e10c-450f-9b1d-1ed40802fd17, ignoreFailoverLimit = false,
storageDomainId = 8eff2927-3bff-4b15-bdd0-8c4e0f40652d, imageGroupId =
0bbe9315-13ba-4e37-b6b2-5366b6b70d2d, imageId =
5e9d09c6-b2ba-419d-9bc5-9711116d3507), log id: 28a4a8eb
2014-01-14 14:39:37,475 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.DoesImageExistVDSCommand]
(ajp--127.0.0.1-8702-8) [79a09c5d] FINISH, DoesImageExistVDSCommand,
return: true, log id: 28a4a8eb
2014-01-14 14:39:37,511 INFO
[org.ovirt.engine.core.bll.ImportVmCommand] (pool-6-thread-48)
[79a09c5d] Running command: ImportVmCommand internal: false. Entities
affected : ID: 0bc08020-eeb5-4707-af85-92de8e89d91f Type: Storage
2014-01-14 14:39:37,525 INFO [org.ovirt.engine.core.bll.ImagesHandler]
(pool-6-thread-48) [79a09c5d] Disk alias retrieved from the client is
null or empty, the suggested default disk alias to be used is dev1_Disk1
2014-01-14 14:39:37,525 WARN
[org.ovirt.engine.core.bll.ImportVmCommand] (pool-6-thread-48)
[79a09c5d] VM e9404bd8-7ecb-45bf-bfce-6d00b02595fd doesnt have active
snapshot in export domain
2014-01-14 14:39:37,529 INFO
[org.ovirt.engine.core.bll.CopyImageGroupCommand] (pool-6-thread-48)
[7dbe036b] Running command: CopyImageGroupCommand internal: true.
Entities affected : ID: 0bc08020-eeb5-4707-af85-92de8e89d91f Type:
Storage
2014-01-14 14:39:37,541 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand]
(pool-6-thread-48) [7dbe036b] START, CopyImageVDSCommand( storagePoolId
= 030ed024-e10c-450f-9b1d-1ed40802fd17, ignoreFailoverLimit = false,
storageDomainId = 8eff2927-3bff-4b15-bdd0-8c4e0f40652d, imageGroupId =
0bbe9315-13ba-4e37-b6b2-5366b6b70d2d, imageId =
5e9d09c6-b2ba-419d-9bc5-9711116d3507, dstImageGroupId =
0bbe9315-13ba-4e37-b6b2-5366b6b70d2d, vmId =
e9404bd8-7ecb-45bf-bfce-6d00b02595fd, dstImageId =
5e9d09c6-b2ba-419d-9bc5-9711116d3507, imageDescription = ,
dstStorageDomainId = 0bc08020-eeb5-4707-af85-92de8e89d91f,
copyVolumeType = LeafVol, volumeFormat = RAW, preallocate =
Preallocated, postZero = false, force = true), log id: 32b8fe16
2014-01-14 14:39:37,542 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand]
(pool-6-thread-48) [7dbe036b] -- executeIrsBrokerCommand: calling
'copyImage' with two new parameters: description and UUID
2014-01-14 14:39:37,542 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand]
(pool-6-thread-48) [7dbe036b] -- copyImage parameters:
sdUUID=8eff2927-3bff-4b15-bdd0-8c4e0f40652d
spUUID=030ed024-e10c-450f-9b1d-1ed40802fd17
vmGUID=e9404bd8-7ecb-45bf-bfce-6d00b02595fd
srcImageGUID=0bbe9315-13ba-4e37-b6b2-5366b6b70d2d
srcVolUUID=5e9d09c6-b2ba-419d-9bc5-9711116d3507
dstImageGUID=0bbe9315-13ba-4e37-b6b2-5366b6b70d2d
dstVolUUID=5e9d09c6-b2ba-419d-9bc5-9711116d3507
descr=
dstSdUUID=0bc08020-eeb5-4707-af85-92de8e89d91f
2014-01-14 14:39:37,549 ERROR
[org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand]
(pool-6-thread-48) [7dbe036b] Command CopyImageVDS execution failed.
Exception: IrsOperationFailedNoFailoverException: IRSGenericException:
IRSErrorException: Image does not exist in domain:
'image=0bbe9315-13ba-4e37-b6b2-5366b6b70d2d,
domain=8eff2927-3bff-4b15-bdd0-8c4e0f40652d'
2014-01-14 14:39:37,550 INFO
[org.ovirt.engine.core.vdsbroker.irsbroker.CopyImageVDSCommand]
(pool-6-thread-48) [7dbe036b] FINISH, CopyImageVDSCommand, return:
00000000-0000-0000-0000-000000000000, log id: 32b8fe16
2014-01-14 14:39:37,550 ERROR
[org.ovirt.engine.core.bll.CopyImageGroupCommand] (pool-6-thread-48)
[7dbe036b] Command org.ovirt.engine.core.bll.CopyImageGroupCommand throw
Vdc Bll exception. With error message VdcBLLException:
org.ovirt.engine.core.vdsbroker.irsbroker.IrsOperationFailedNoFailoverException:
IRSGenericException: IRSErrorException: Image does not exist in domain:
'image=0bbe9315-13ba-4e37-b6b2-5366b6b70d2d,
domain=8eff2927-3bff-4b15-bdd0-8c4e0f40652d' (Failed with error
ImageDoesNotExistInDomainError and code 268)
-
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users