[Openstack] Image Network+SWAP

Georgios Dimitrakakis giorgis at acmac.uoc.gr
Wed Mar 5 07:57:47 UTC 2014


 I was expecting that this is not normal.

 Any ideas in what do I have to do to make it work? Are they related 
 with the "virt-sysprep" command which is failing on my image??


 Best,

 G.

 On Wed, 5 Mar 2014 13:14:40 +0800, sylecn wrote:
> Hi Georgios,
>
> 1. I havent seen that problem in my environment using pre-build cloud
> images. But I havent build an image from scratch myself except using
> the magic "build-openstack-debian-image" command in debian.
>
>    But this is certainly not the expected behavior. A well-built
> cloud image should create the exact number of NICs according to
> nova/libvirts request.
>
> 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:
> 
> http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/config/cc_resizefs.py
> [6]
>
> Are you building the image for studying or for production use?
>
> YY Inc. is hiring openstack and python developers. Interested? Check
> http://www.nsbeta.info/jobs [7]
>
> --
> Thanks,
> Yuanle
>
> On Wed, Mar 5, 2014 at 5:16 AM, Georgios Dimitrakakis  wrote:
>
>> Two silly questions regarding the images created by cloud-init:
>>
>> 1) Is the following an expected behavior?
>>    Step1: Taking a snapshot of a working instance
>>    Step2: Launching a new instance from the snapshot
>>    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.
>>
>> What do I have to do in order for this to work without any trouble?
>>
>> 2) Do you know where I can find some info regarding the way to make
>> the / partition dynamic based on the flavor??
>> 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.
>>
>> Best,
>>
>> G.
>>
>> On Sun, 02 Mar 2014 11:42:33 +0200, Georgios Dimitrakakis wrote:
>>
>>> Dear Antonio,
>>>
>>> thank you very much for the useful info!
>>>
>>> I will give it a shot!!!
>>>
>>> Best,
>>>
>>> G.
>>>
>>> On Sat, 1 Mar 2014 12:17:14 +0100, Antonio Messina wrote:
>>>
>>>> On Fri, Feb 28, 2014 at 8:36 PM, Georgios Dimitrakakis
>>>> wrote:
>>>>
>>>>> Thx for your suggestion!
>>>>>
>>>>> I am trying since yesterday to achieve this but unfortunately
>>>>> the installer
>>>>> always start in a text-based mode and cannot change the
>>>>> partition scheme
>>>>> from there :-(
>>>>
>>>> Hi Georgios,
>>>>
>>>> I dont know if this can be helpful for you or other people
>>>> here, but
>>>> I usually create my centos/ubuntu images with virt-inst from
>>>> kickstart
>>>> or preseed using a script.
>>>>
>>>> Script and related kickstart is available at
>>>> https://github.com/gc3-uzh-ch/openstack-tools [2]
>>>> they are mainly for internal use, so you may need to modify the
>>>> kickstart (we always provides images with the gc3-user user so
>>>> we
>>>> need to modify the configuration of cloud-init.
>>>>
>>>> We partition our disks with one single partition. The script
>>>> doesnt
>>>> yet take into account the extra swap partition though, we dont
>>>> have
>>>> swap in our flavors.
>>>>
>>>> .a.
>>
>> _______________________________________________
>> Mailing list:
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack [3]
>> Post to     : openstack at lists.openstack.org [4]
>> Unsubscribe :
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack [5]
>
>
>
> Links:
> ------
> [1] mailto:giorgis at acmac.uoc.gr
> [2] https://github.com/gc3-uzh-ch/openstack-tools
> [3] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> [4] mailto:openstack at lists.openstack.org
> [5] http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
> [6]
> 
> http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/config/cc_resizefs.py
> [7] http://www.nsbeta.info/jobs
> [8] mailto:giorgis at acmac.uoc.gr





More information about the Openstack mailing list