<div dir="ltr"><div>Hi,</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
>    1.  Is it possible to add to the virt-p2v-make-disk program a parameter<br>
>    to add kernel parameters? (right now I have to create the image and edit<br>
>    manually the grub.conf file in the image in order to edit them) - this<br>
>    could help in situations where someone cannot setup PXE.<br>
<br>
The real issue here is what file in the image to edit and how.<br>
<br>
You could try editing virt-p2v-make-disk (or a local copy of it) and<br>
add something to the long virt-builder command right near the end of<br>
the file.  I would suggest adding an --edit option such as:<br>
<br>
  --edit '/etc/grub/grub.conf: s/linux (.*)/linux $1 your_parameter=foo/' \<br>
<br></blockquote><div>At the end I simply used guestmount to mount the image, and edited manually the /boot/grub2/grub.cfg and added the parameters.</div><div><br></div><div>BTW: I couldn't find a way to tell it to map the NIC to a bridge in the virt-manager, which parameter should it be?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
>    2. Is there a way to create the image as a bootable ISO? Hyper-V for<br>
>    example, doesn't like standard "hard disk" images. I see that kiwi has this<br>
>    functionality, but it's only for SuSE.<br>
<br>
I actually tried at one point to create a bootable ISO from a<br>
virt-builder image, but totally failed to make anything work ...<br>
You could try the kickstart approach (ie. virt-p2v-make-kickstart) but<br>
then you're in a world of other painful tools such as livecd-creator.<br></blockquote><div><br></div><div>I found a workaround for this - qemu-img convert to VHDX, then - no need for ISO ;)</div><div><br></div><div> Thanks for your help. I hope within the next few hours to record a video and upload to youtube about using virt-p2v.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Rich.<br>
<br>
-- <br>
Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones" rel="noreferrer" target="_blank">http://people.redhat.com/~rjones</a><br>
Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com" rel="noreferrer" target="_blank">http://rwmj.wordpress.com</a><br>
libguestfs lets you edit virtual machines.  Supports shell scripting,<br>
bindings from many languages.  <a href="http://libguestfs.org" rel="noreferrer" target="_blank">http://libguestfs.org</a><br>
</blockquote></div></div>