<div dir="ltr"><div>Hi Georgios,<br><br>1. I haven't seen that problem in my environment using pre-build cloud images. But I haven't build an image from scratch myself except using the magic "build-openstack-debian-image" command in debian.<br>
</div><div>   But this is certainly not the expected behavior. A well-built cloud image should create the exact number of NICs according to nova/libvirt's request.<br></div><div><br></div><div>2. Resizing the root filesystem is done using file system specific tools like resize2fs and xfs_growfs. You can check the source code of cloud-init at: <a href="http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/config/cc_resizefs.py">http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/config/cc_resizefs.py</a><br>
<br></div><div>Are you building the image for studying or for production use?<br></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><i><br>YY Inc. is hiring openstack and python developers. Interested? Check <a href="http://www.nsbeta.info/jobs" target="_blank">http://www.nsbeta.info/jobs</a></i><br>
</div><div><br>--<br>Thanks,<br></div>Yuanle<br></div></div>
<br><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 5:16 AM, Georgios Dimitrakakis <span dir="ltr"><<a href="mailto:giorgis@acmac.uoc.gr" target="_blank">giorgis@acmac.uoc.gr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Two silly questions regarding the images created by cloud-init:<br>
<br>
1) Is the following an expected behavior?<br>
   Step1: Taking a snapshot of a working instance<br>
   Step2: Launching a new instance from the snapshot<br>
   Step3: The new instance is booting but the network fails since it already has eth0 and a new eth1 is allocated to the new instance.<br>
<br>
What do I have to do in order for this to work without any trouble?<br>
<br>
<br>
2) Do you know where I can find some info regarding the way to make the / partition dynamic based on the flavor??<br>
I have built an instance on which the / partition is 20GB . Is there a way to make it change according to the flavor? Obviously this should apply to bigger / partitions. What I am trying to do is to have an image which I can boot with either 20GB or bigger / partition.<br>

<br>
Best,<br>
<br>
<br>
G.<div class=""><div class="h5"><br>
<br>
<br>
<br>
On Sun, 02 Mar 2014 11:42:33 +0200, Georgios Dimitrakakis wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Dear Antonio,<br>
<br>
thank you very much for the useful info!<br>
<br>
I will give it a shot!!!<br>
<br>
Best,<br>
<br>
G.<br>
<br>
On Sat, 1 Mar 2014 12:17:14 +0100, Antonio Messina wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On Fri, Feb 28, 2014 at 8:36 PM, Georgios Dimitrakakis<br>
<<a href="mailto:giorgis@acmac.uoc.gr" target="_blank">giorgis@acmac.uoc.gr</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thx for your suggestion!<br>
<br>
I am trying since yesterday to achieve this but unfortunately the installer<br>
always start in a text-based mode and cannot change the partition scheme<br>
from there :-(<br>
</blockquote>
<br>
Hi Georgios,<br>
<br>
I don't know if this can be helpful for you or other people here, but<br>
I usually create my centos/ubuntu images with virt-inst from kickstart<br>
or preseed using a script.<br>
<br>
Script and related kickstart is available at<br>
<a href="https://github.com/gc3-uzh-ch/openstack-tools" target="_blank">https://github.com/gc3-uzh-ch/<u></u>openstack-tools</a><br>
they are mainly for internal use, so you may need to modify the<br>
kickstart (we always provides images with the 'gc3-user' user so we<br>
need to modify the configuration of cloud-init.<br>
<br>
We partition our disks with one single partition. The script doesn't<br>
yet take into account the extra swap partition though, we don't have<br>
swap in our flavors.<br>
<br>
.a.<br>
</blockquote></blockquote>
<br>
<br></div></div><div class=""><div class="h5">
______________________________<u></u>_________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack</a><br>
</div></div></blockquote></div><br></div></div>