<div dir="ltr"><br><br><br>On Tue, Jun 17, 2014 at 5:17 PM, Karanbir Singh &lt;<a href="mailto:mail-lists@karan.org">mail-lists@karan.org</a>&gt; wrote:<br>&gt;<br>&gt; On 06/16/2014 09:11 PM, Colin Walters wrote:<br>&gt; &gt; On Sun, Jun 15, 2014, at 05:27 AM, Scott Dowdle wrote:<br>
&gt; &gt;&gt;<br>&gt; &gt;&gt; The easiest way to make your own would be to boot the network install<br>&gt; &gt;&gt; boot.iso and create your own VM in your preferred virt platform. I used<br>&gt; &gt;&gt; KVM and it worked fine.  Once the install is done, customize as you see<br>
&gt; &gt;&gt; fit (like add an /etc/yum.repos.d/centos-alpha.repo for example).  Shut<br>&gt; &gt;&gt; the machine down and clone the disk image all you want.<br>&gt; &gt;<br>&gt; &gt; The issue you get with that approach is having ssh keys, passwords etc.<br>
&gt; &gt; stored in the image.<br>&gt; &gt;<br>&gt; &gt; If you&#39;re in a situation where you need to do this, at least look at:<br>&gt; &gt; <a href="http://libguestfs.org/virt-sysprep.1.html">http://libguestfs.org/virt-sysprep.1.html</a><br>
&gt; &gt;<br>&gt; &gt; The correct thing to do though is to generate images cleanly via<br>&gt; &gt; something like Imagefactory (which does anaconda-in-a-vm).<br>&gt;<br>&gt; from the project side, yea - however on the user side the dep chain in<br>
&gt; libguestfs is quite large, most people will not want to install that on<br>&gt; a production setup.<br>&gt;<br>&gt; And regardless of what tool we use on the project side - the image<br>&gt; delivered to the consumer end is still going to have metadata issues -<br>
&gt; there needs to be a simpler way to get root pass, network config and<br>&gt; maybe a bootstrap script injected in.<br>&gt;<br>&gt; a min-cloud-service to compliment<br>&gt; <a href="https://github.com/cgwalters/min-cloud-agent">https://github.com/cgwalters/min-cloud-agent</a> would/could be an<br>
&gt; interesting win. is there something like that out there already ?<br>&gt;<br><br>I&#39;m not exactly sure what your use case is but FWIW a wrote a simple EC2 metadata server as part of dwarf: <a href="https://github.com/juergh/dwarf/blob/master/dwarf/compute/ec2metadata.py">https://github.com/juergh/dwarf/blob/master/dwarf/compute/ec2metadata.py</a>. That could be pulled out and made a standealone service. While working on this I noticed that the avahi daemon interferes with the instance&#39;s metadata requests. I&#39;m completely ignorant when it comes to avahi but wouldn&#39;t it be nice if it could be taught to fulfill the instance&#39;s requests?<br>
<br>Also, if the instance has the NoCloud datasource enabled (which it should) you can use a simple ISO9660 image to provide metadata to cloud-init: <a href="http://cloudinit.readthedocs.org/en/latest/topics/datasources.html#no-cloud">http://cloudinit.readthedocs.org/en/latest/topics/datasources.html#no-cloud</a><br>
<br>...Juerg<br><br><br><br> <br>&gt;<br>&gt; this is an ongoing issue in the centos-virt-list as well<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Karanbir Singh<br>&gt; +44-207-0999389 | <a href="http://www.karan.org/">http://www.karan.org/</a> | <a href="http://twitter.com/kbsingh">twitter.com/kbsingh</a><br>
&gt; GnuPG Key : <a href="http://www.karan.org/publickey.asc">http://www.karan.org/publickey.asc</a><br>&gt; _______________________________________________<br>&gt; CentOS-devel mailing list<br>&gt; <a href="mailto:CentOS-devel@centos.org">CentOS-devel@centos.org</a><br>
&gt; <a href="http://lists.centos.org/mailman/listinfo/centos-devel">http://lists.centos.org/mailman/listinfo/centos-devel</a><br><br></div>