<html><body><div style="font-family:Calibri, Arial, Helvetica, sans-serif; font-size:12.0pt; line-height:1.3; color:#1F497D"><!-- ##### NINE BODY BEGIN ##### --><div>This is extremely helpful. I only discovered virt-builder while debugging the issue with ipv6 I reported a few days ago. Great little tool!<br><br>Thank you!<br></div><div><br></div><div id="signature-x" style="-webkit-user-select:none; font-family:Calibri, Arial, Helvetica, sans-serif; font-size:12.0pt; color:#1F497D" class = "signature_editor"><br></div><!-- ##### NINE BODY END ##### --></div><div class="quoted_output_body"><div id="quoted_header" class="quoted_header_editor" style="clear:both;"><hr style="border:none; height:1px; color:#E1E1E1; background-color:#E1E1E1;"/><div style="border:none; padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt;font-family:Calibri, Arial, Helvetica, sans-serif"><b>From:</b> "Richard W.M. Jones" <rjones@redhat.com><br><b>Sent:</b> Wednesday, April 3, 2019 12:29 PM<br><b>To:</b> Jonathan Wright<br><b>Cc:</b> libguestfs@redhat.com<br><b>Subject:</b> Re: [Libguestfs] cloud-init in virt-builder images<br></span></div></div><br type='attribution'><div id="quoted_body" class="quoted_body_editor"><p dir="ltr">On Wed, Apr 03, 2019 at 09:34:03AM -0500, Jonathan Wright wrote:
<br>
> I've noticed that none of the images from virt-builder have
<br>
> cloud-init in them by default. The documentation reads to me as if
<br>
> the OS vendor's official cloud images are the ones used as the
<br>
> sources for the generated images but I'm assuming this is wrong.
<br>
<br>
The problem with cloud-init is that it interrupts normal boot if
<br>
you're not booting the images in the cloud. However you can usually
<br>
add cloud-init by doing:
<br>
<br>
virt-builder --install cloud-init os-version
<br>
<br>
> I know for a fact CentOS's cloud images from
<br>
> https://cloud.centos.org/centos/7/images/ and Ubuntu's from
<br>
> https://cloud-images.ubuntu.com/bionic/ have cloud-init installed
<br>
> and enabled already.
<br>
>
<br>
> Where are the images sourced from if not these official images?
<br>
<br>
The ones we supply are built using this script:
<br>
<br>
https://github.com/libguestfs/libguestfs/blob/master/builder/templates/make-template.ml
<br>
<br>
The ones from SUSE are built using their build system. We'd like
<br>
other distros to build there own images for us, but no others do so
<br>
far.
<br>
<br>
> I understand I can install cloud-init with virt-builder but I'm
<br>
> trying to figure out what OS-distributed images are in use so I may
<br>
> determine what else is different from expectations.
<br>
<br>
You can set up your own virt-builder repos, and populate them with
<br>
images from wherever you like, and if you want also disable the
<br>
official virt-builder repo. This will give you complete control over
<br>
what images get built. Have a look at the files in
<br>
/etc/virt-builder/repos.d, and the man page.
<br>
<br>
Rich.
<br>
<br>
--
<br>
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
<br>
Read my programming and virtualization blog: http://rwmj.wordpress.com
<br>
libguestfs lets you edit virtual machines. Supports shell scripting,
<br>
bindings from many languages. http://libguestfs.org
<br>
</p>
</div></div></div></body></html>