[Libguestfs] [PATCH v4 1/2] v2v: bootloaders: search grub config for all distributions

Richard W.M. Jones rjones at redhat.com
Thu Nov 3 14:13:55 UTC 2016


On Wed, Nov 02, 2016 at 09:50:20PM +0300, Pavel Butsykin wrote:
> On 02.11.2016 18:01, Richard W.M. Jones wrote:
> >From: Pavel Butsykin <pbutsykin at virtuozzo.com>
> >
> >This patch improves the search of grub config on EFI partition. This
> >means that the config will be found not only for rhel but also for
> >many other distributions.  Tests were performed on the following
> >distributions: centos, fedora, ubuntu, suse. In all cases, the config
> >path was /boot/efi/EFI/*distname*/grub.cfg
> >
> >The main purpose of the patch is to improve support for converting of
> >vm with UEFI for most distributions. Unfortunately this patch does not
> >solve the problem for all distributions, for example Debian does not
> >store grub config on the EFI partition, therefore for such
> >distributions another solution is necessary.
> >
> >Signed-off-by: Pavel Butsykin <pbutsykin at virtuozzo.com>
> >Signed-off-by: Richard W.M. Jones <rjones at redhat.com>
> >---
> 
> Thank you for the help!
> 
> I found an interesting post on your blog(
> https://rwmj.wordpress.com/tag/virt-efivars/ )
> about editing NVRAM. I think it's a good idea to make the
> possibility of NVRAM settings. It will improve conversion for EFI
> vm's and solve the problem for some distributions which don't
> support fallback
> (for example it's ubuntu and debian). Are there any plans to add this
> functionality to libguestfs?

If we got suitable patches then yes.  There are a couple of problems
though.  Firstly there's no simple implementation.  Secondly it might
not help virt-v2v even if implemented, since you cannot necessarily
pull the EFI vars from the source hypervisor (eg if it's VMware I'm
not aware of any method).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs from scratch
http://libguestfs.org/virt-builder.1.html




More information about the Libguestfs mailing list