[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-08 Thread Mathieu Simon
Hi Vijay

> Although if I add this converted disk as second disk..I could see the data 
> there.
Yes, that is pretty much expected.

> But not booting as single disk..as windows 2016 OS data is kept and have to 
> deliver to one of my client. Bit of stuck here.
Maybe I wasn't clear: You first need to check whether your Hyper-V VM
in question is a Gen 2 UEFI-based VM or a legacy BIOS-based
Gen 1 VM. (It's quite likely Gen 2 since this has been the default
since Hyper-V on Server 2012 R2)
This defines the way on how the destination VM on the oVirt side needs
to be configured.

Once that is identified, try the according machine type on the oVirt
side there that converted disk is attached to:
- Hyper-V Gen 1 => oVirt 440FX + SeaBIOS (default in oVirt as of writing)
- Hyper-V Gen 2 => oVirt Q35 + OVMF

As written previously: There are still plenty of limitations in the
UEFI guest support and they sometimes
need workarounds until hopefully oVirt 4.4 closes most of these gaps.

Regards
Mathieu
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/7DA7M3WGBYOILA7NZFO7VNO4EHXNMEIT/


[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-07 Thread Vijay Sachdeva
Hi.

Although if I add this converted disk as second disk..I could see the data
there.

But not booting as single disk..as windows 2016 OS data is kept and have to
deliver to one of my client. Bit of stuck here.

Thanks

On Sun, 8 Dec 2019 at 11:46 AM, Mathieu Simon 
wrote:

> Hi Vijay
>
> Based on your initial post about using virt-v2v I don't know how
> intelligent virt-v2v is in knowing and converting the VM machine type.
>
> However the boot issue could be related to Hyper-V defaulting to "Gen 2"
> VMs which are all UEFI based. Hence your current VMs
> should have a FAT32 partition with an EFI loader. oVirt by default
> emulates 440FX Chipset and a legacy SeaBIOS.
> Only so-called Gen 1 VMs were emulating a legacy BIOS on the Hyper-V side.
>
> You should be able to check VM generation on Hyper-V using this PowerShell
> command:
> Get-VM | Format-List Name,Generation
>
> If it is a Gen 2 VM, starting with oVirt 4.3 you could try booting a
> converted disk on a VM with Q35 and OVMF (UEFI).
> Keep in mind that 4.3 still has some rough edges in that area. For example
> all settings written to the UEFI NVRAM get lost when turning off
> and on the VM in oVirt. This affects the bootloader entries in OVMF that
> an OS installer eventually created during setup.
> Thus the OVMF only ever looks for an EFI loader bootloader in the path
> boot/efi/bootx64.efi in that FAT32 partition.
>
> However if that path is not present, OVMF should open the "BIOS settings"
> and you should be able to "boot from file" and then
> select the .efi file if the given operating system and make an attempt at
> booting the guest OS.
>
> The current workaround that seems to work now is to copy the OS's .efi
> loader to the default location OVMF is looking for a  bootloader
> as described here: https://bugzilla.redhat.com/show_bug.cgi?id=1727987
>
> Regards,
> Mathieu
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/ESOPHINAYC3FYKYL7OV7WBOBINALI7IJ/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/3EXBIL6OMYCO2CIDMO6QAX4E6TL4TSC3/


[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-07 Thread Mathieu Simon
Hi Vijay

Based on your initial post about using virt-v2v I don't know how
intelligent virt-v2v is in knowing and converting the VM machine type.

However the boot issue could be related to Hyper-V defaulting to "Gen 2"
VMs which are all UEFI based. Hence your current VMs
should have a FAT32 partition with an EFI loader. oVirt by default emulates
440FX Chipset and a legacy SeaBIOS.
Only so-called Gen 1 VMs were emulating a legacy BIOS on the Hyper-V side.

You should be able to check VM generation on Hyper-V using this PowerShell
command:
Get-VM | Format-List Name,Generation

If it is a Gen 2 VM, starting with oVirt 4.3 you could try booting a
converted disk on a VM with Q35 and OVMF (UEFI).
Keep in mind that 4.3 still has some rough edges in that area. For example
all settings written to the UEFI NVRAM get lost when turning off
and on the VM in oVirt. This affects the bootloader entries in OVMF that an
OS installer eventually created during setup.
Thus the OVMF only ever looks for an EFI loader bootloader in the path
boot/efi/bootx64.efi in that FAT32 partition.

However if that path is not present, OVMF should open the "BIOS settings"
and you should be able to "boot from file" and then
select the .efi file if the given operating system and make an attempt at
booting the guest OS.

The current workaround that seems to work now is to copy the OS's .efi
loader to the default location OVMF is looking for a  bootloader
as described here: https://bugzilla.redhat.com/show_bug.cgi?id=1727987

Regards,
Mathieu
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/ESOPHINAYC3FYKYL7OV7WBOBINALI7IJ/


[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-07 Thread Vijay Sachdeva
Anyone ?

On Sun, 8 Dec 2019 at 2:00 AM, Vijay Sachdeva 
wrote:

> What step I did was:
>
>
>
>1. Used qemu-img to convert the vhdx to raw img
>2. Created a blank disk and copied my converted disk to same location.
>3. Renamed the converted drive with the name of blank disk.
>4. Created a VM and attached my converted disk to VM.
>
>
>
> Error: No bootable disk found
>
>
>
>
>
> But when I attack this disk to another running VM, there I can see the
> data. But noting booting as bootable.
>
>
>
> Vijay Sachdeva
>
>
>
>
>
>
>
> *From: *Vijay Sachdeva 
>
>
> *Date: *Sunday, 8 December 2019 at 1:48 AM
> *To: *Strahil , users 
> *Subject: *Re: [ovirt-users] Hyper-V to KVM | v2v
>
>
>
> One question, once disk is converted to KVM format.
>
>
>
> What is the way to use that drive and run a VM from it within Ovirt
> environment.
>
>
>
> Vijay Sachdeva
>
>
>
>
>
> *From: *Strahil 
> *Date: *Friday, 6 December 2019 at 8:57 PM
> *To: *users , Vijay 
> *Subject: *Re: [ovirt-users] Hyper-V to KVM | v2v
>
>
>
> Have you tried to power up and fully shutdown the VM ?
>
> Best Regards,
> Strahil Nikolov
>
> On Dec 6, 2019 15:52, Vijay Sachdeva  wrote:
>
> Hello,
>
>
>
> I am trying to convert a Hyper-V guest VM to run on KVM using virt-v2v
> utility.
>
>
>
> Getting below error:
>
>
>
> [image: cid:image001.png@01D5AC6A.8B510030]
>
>
>
> Any suggestions how to solve this.
>
>
>
> Thanks
>
>
>
> Vijay Sachdeva
>
>
>
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/NM5NZG5M3WUSM7U2EMGP5FL5BQBQ3CBA/


[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-07 Thread Vijay Sachdeva
What step I did was:

 
Used qemu-img to convert the vhdx to raw img
Created a blank disk and copied my converted disk to same location.
Renamed the converted drive with the name of blank disk.
Created a VM and attached my converted disk to VM.
 

Error: No bootable disk found

 

 

But when I attack this disk to another running VM, there I can see the data. 
But noting booting as bootable.

 

Vijay Sachdeva

 

 

 

From: Vijay Sachdeva 
Date: Sunday, 8 December 2019 at 1:48 AM
To: Strahil , users 
Subject: Re: [ovirt-users] Hyper-V to KVM | v2v

 

One question, once disk is converted to KVM format. 

 

What is the way to use that drive and run a VM from it within Ovirt environment.

 

Vijay Sachdeva

 

 

From: Strahil 
Date: Friday, 6 December 2019 at 8:57 PM
To: users , Vijay 
Subject: Re: [ovirt-users] Hyper-V to KVM | v2v

 

Have you tried to power up and fully shutdown the VM ?

Best Regards,
Strahil Nikolov

On Dec 6, 2019 15:52, Vijay Sachdeva  wrote:

Hello,

 

I am trying to convert a Hyper-V guest VM to run on KVM using virt-v2v utility. 

 

Getting below error:

 

 

Any suggestions how to solve this.

 

Thanks

 

Vijay Sachdeva

 

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/IDLFUMYKB6DYD3PBMTPKBSWV3KILYZG5/


[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-07 Thread Vijay Sachdeva
One question, once disk is converted to KVM format. 

 

What is the way to use that drive and run a VM from it within Ovirt environment.

 

Vijay Sachdeva

 

 

From: Strahil 
Date: Friday, 6 December 2019 at 8:57 PM
To: users , Vijay 
Subject: Re: [ovirt-users] Hyper-V to KVM | v2v

 

Have you tried to power up and fully shutdown the VM ?

Best Regards,
Strahil Nikolov

On Dec 6, 2019 15:52, Vijay Sachdeva  wrote:

Hello,

 

I am trying to convert a Hyper-V guest VM to run on KVM using virt-v2v utility. 

 

Getting below error:

 

 

Any suggestions how to solve this.

 

Thanks

 

Vijay Sachdeva

 

___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/F4QLEI7I3KIE2FOZKSMRFJKQKFZHJMHX/


[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-06 Thread Strahil
Have you tried to power up and fully shutdown the VM ?

Best Regards,
Strahil NikolovOn Dec 6, 2019 15:52, Vijay Sachdeva 
 wrote:
>
> Hello,
>
>  
>
> I am trying to convert a Hyper-V guest VM to run on KVM using virt-v2v 
> utility.
>
>  
>
> Getting below error:
>
>  
>
>  
>
> Any suggestions how to solve this.
>
>  
>
> Thanks
>
>  
>
> Vijay Sachdeva
>
>  ___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/RKCQBZNMP23FOFMISUW3AALJQM222HSR/


[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-06 Thread Staniforth, Paul
Hello Vijay,
as the error suggests Windows 8 onward defaults to not 
doing a full shutdown but fast boot, this is why in Windows troubleshooting 
it's suggested to do a reboot as this does a full shutdown then boot.
You should probably disable fast-boot on the Windows guest.


http://libguestfs.org/virt-v2v.1.html#windows-8-fast-startup-is-incompatible-with-virt-v2v

virt-v2v - 
libguestfs
NAME; SYNOPSIS; DESCRIPTION. Input and Output; Other virt-v2v topics; EXAMPLES. 
Convert from VMware vCenter server to local libvirt; Convert from VMware to 
RHV/oVirt
libguestfs.org
https://www.howtogeek.com/243901/the-pros-and-cons-of-windows-10s-fast-startup-mode/


Regards,
Paul S.

From: Vijay Sachdeva 
Sent: 06 December 2019 13:52
To: users 
Subject: [ovirt-users] Hyper-V to KVM | v2v


Hello,



I am trying to convert a Hyper-V guest VM to run on KVM using virt-v2v utility.



Getting below error:



[cid:image001.png@01D5AC6A.8B510030]



Any suggestions how to solve this.



Thanks



Vijay Sachdeva



To view the terms under which this email is distributed, please go to:-
http://leedsbeckett.ac.uk/disclaimer/email/
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/O6R4HNDE67KGD53MQKOVAHNDSAVJ5F4D/


[ovirt-users] Re: Hyper-V to KVM | v2v

2019-12-06 Thread Dominik Holler
On Fri, Dec 6, 2019 at 2:59 PM Vijay Sachdeva 
wrote:

> Hello,
>
>
>
> I am trying to convert a Hyper-V guest VM to run on KVM using virt-v2v
> utility.
>
>
>
> Getting below error:
>
>
>
>
>
> Any suggestions how to solve this.
>
>
Would full Windows shutdown, e.g. by "shutdown /s /f /t 0" solve this
problem?



>
>
> Thanks
>
>
>
> Vijay Sachdeva
>
>
> ___
> Users mailing list -- users@ovirt.org
> To unsubscribe send an email to users-le...@ovirt.org
> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/SUPMVKHQJJVXZLEN7DRJDD2VAAHCKRI3/
>
___
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/QO2PULAAZGRTA3O4PG6GGETFQ43S6SYR/