On Sat, Mar 30, 2019 at 05:19:55PM +0300, Hetz Ben Hamo wrote:
I did, and I'm enclosing gzipped copy of the file. Line 4197 clearly shows it got the correct parameter: Initializing the target -o libvirt -os NAS-10G
Ah I see. This is a limitation:
https://github.com/libguestfs/libguestfs/blob/f79129b8dc92470e3a5597daf53c84...
I see. This situation is great if someone wants to move 1 VM from Hyper-V (for example) to a laptop or to a workstation where he/she is using virt-manager.
Actually not one that I recall from before (the vast majority of people using virt-p2v are either creating a file or writing to RHV/OpenStack/etc).
I got 2 more questions:
1. Is it possible to add to the virt-p2v-make-disk program a parameter to add kernel parameters? (right now I have to create the image and edit manually the grub.conf file in the image in order to edit them) - this could help in situations where someone cannot setup PXE.
The real issue here is what file in the image to edit and how. You could try editing virt-p2v-make-disk (or a local copy of it) and add something to the long virt-builder command right near the end of the file. I would suggest adding an --edit option such as: --edit '/etc/grub/grub.conf: s/linux (.*)/linux $1 your_parameter=foo/' \
2. Is there a way to create the image as a bootable ISO? Hyper-V for example, doesn't like standard "hard disk" images. I see that kiwi has this functionality, but it's only for SuSE.
I actually tried at one point to create a bootable ISO from a virt-builder image, but totally failed to make anything work ... You could try the kickstart approach (ie. virt-p2v-make-kickstart) but then you're in a world of other painful tools such as livecd-creator. 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