[Libguestfs] Hyper-V v2v

Kevin C kevin at famillecousin.fr
Fri Jan 8 15:39:46 UTC 2016



Le 08/01/2016 16:22, Kevin C a écrit :
>
>
> Le 08/01/2016 09:17, Richard W.M. Jones a écrit :
>> On Thu, Jan 07, 2016 at 12:08:13PM +0100, Kevin C wrote:
>>> Hi list,
>>>
>>> What is the best method to migrate Hyper-V 2012 VM to oVirt/RHEV ? I
>>> made a v2v livecd, but it never load consoles and never launch p2v
>>> service (works well with BIOS VM or hardware, but G2 HyperV VM needs
>>> EFI to boot).
>>>
>>> I must add some packages on my system to build an EL7 (kmod-hfsplus
>>> from elrepo) and some other to boot on EFI :
>>>
>>> #boot EFI
>>> grub2
>>> grub2-efi
>>> grub2-efi-modules
>>> grub2-tools
>>> efibootmgr
>>> shim
>>> hfsplus-tools
>> I don't know - virt-v2v hasn't really been tested at all on Hyper-V,
>> although it's on the to-do list.
>>
>> Rich.
>>
> I can now boot with a livecd generated with Fedora 23. v2v  failed 
> with this error :
>
> guestfsd: main_loop: proc 367 (rm_f) took 0.00 seconds^M
> libguestfs: trace: rm_f = 0
> libguestfs: trace: rm_f "/var/lib/rpm/__db.003"
> guestfsd: main_loop: new request, len 0x44^M
> guestfsd: main_loop: proc 367 (rm_f) took 0.00 secondslibguestfs: 
> trace: rm_f = 0
> libguestfs: trace: is_file "/boot/efi/EFI/redhat/grub.cfg" 
> "followsymlinks:true"
> ^M
> guestfsd: main_loop: new request, len 0x50^M
> guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds^M
> libguestfs: trace: is_file = 0
> libguestfs: trace: is_file "/boot/grub2/grub.cfg" "followsymlinks:true"
> guestfsd: main_loop: new request, len 0x44^M
> guestfsd: main_loop: proc 37 (is_file) took 0.00 secondslibguestfs: 
> trace: is_file = 0
> libguestfs: trace: is_file "/boot/grub/menu.lst" "followsymlinks:true"
> ^M
> guestfsd: main_loop: new request, len 0x44^M
> guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds^M
> libguestfs: trace: is_file = 0
> libguestfs: trace: is_file "/boot/grub/grub.conf" "followsymlinks:true"
> guestfsd: main_loop: new request, len 0x44^M
> guestfsd: main_loop: proc 37 (is_file) took 0.00 seconds^M
> libguestfs: trace: is_file = 0
> virt-v2v: error: no grub1/grub-legacy or grub2 configuration file was 
> found
>
> ---
>
> Kevin C
>
>
Here is the file :

/boot/efi/EFI/centos/grub.cfg

---

Kevin C

>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs at redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs





More information about the Libguestfs mailing list