On Wed, Nov 04, 2020 at 08:36:12AM +0000, Femi Adegoke wrote:> > Is this how I would get to the kernel cmd line of the virt-p2v iso? > > Add edd=off to the first(!) kernel line inside the VM in /boot/grub/grub.confThe easiest thing is just to interrupt grub at boot (hit "Esc"), then edit the kernel command line there. This is a one-off change that you have to do each time you boot P2V. If you are making virt-p2v disks/ISOs then how to change this permanently depends on what method you're using. It may be better to look at the source code of the virt-p2v-make* scripts in the virt-p2v git repository. https://github.com/libguestfs/virt-p2v Does adding edd=off actually help? Does virt-p2v hang at boot? I wasn't clear on exactly what was happening. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
virt-p2v hangs & displays the edd message right after I select which kernel to boot into. At that point I have to power cycle the pc. Yesterday (before I sent you email), it hung a few times but after the 5th power cycle it went through. ________________________________ From: Richard W.M. Jones <rjones at redhat.com> Sent: Wednesday, November 4, 2020 12:57 AM To: Femi Adegoke <femi at awedio.com> Cc: ptoscano at redhat.com <ptoscano at redhat.com>; libguestfs at redhat.com <libguestfs at redhat.com> Subject: Re: virt-p2v NVMe disks On Wed, Nov 04, 2020 at 08:36:12AM +0000, Femi Adegoke wrote:> > Is this how I would get to the kernel cmd line of the virt-p2v iso? > > Add edd=off to the first(!) kernel line inside the VM in /boot/grub/grub.confThe easiest thing is just to interrupt grub at boot (hit "Esc"), then edit the kernel command line there. This is a one-off change that you have to do each time you boot P2V. If you are making virt-p2v disks/ISOs then how to change this permanently depends on what method you're using. It may be better to look at the source code of the virt-p2v-make* scripts in the virt-p2v git repository. https://github.com/libguestfs/virt-p2v Does adding edd=off actually help? Does virt-p2v hang at boot? I wasn't clear on exactly what was happening. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20201104/36856113/attachment.htm>
On Wed, Nov 04, 2020 at 09:04:44AM +0000, Femi Adegoke wrote:> virt-p2v hangs & displays the edd message right after I select which kernel to > boot into. > At that point I have to power cycle the pc. > Yesterday (before I sent you email), it hung a few times but after the 5th > power cycle it went through.EDD is an ancient BIOS standard that's not relevant today. However the fact it prints "ok" means it should have got past EDD detection (so I expect edd=off will make no difference) and the kernel is getting stuck somewhere else. If you look at where EDD is queried (query_edd ()): https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/x86/boot/main.c#n173 it's just before changing video mode and going into protected mode, so most likely it's one of those things which is breaking. Also the EDD message is the last message printed through BIOS calls which is why it can appear to hang there even though the boot is continuing and perhaps stopping much later - you're just losing the later messages. You might want to try enabling more debug messages or (the ideal way) adding a serial console to enable you to see all kernel messages. What hardware is this? Something very old or unusual? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org