You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Piers <pi...@rowan.id.au> on 2014/08/26 23:41:58 UTC

cloud-install-sys-tmplt ~questions / suggestion

Hi there,

I am new to Cloudstack and have been setting up a testing / retesting 
the software.

One of the things that takes a long time (and adds to the bandwidth 
costs for everyone) is running cloud-install-sys-tmplt  and 
re-downloading the initial templates.

I guess a work around would be to save the file to a local web server 
and change the URL in cloud-install-sys-tmplt -u

Another option might be to scan the /secondary directory and do an md5 
hash on any images that are there (of a certain size) - if they match 
then to keep the existing file and update the image database with the id 
/ path.

If there is an easier way then please let me know as I haven't come 
across it in the docs (yet).

Just an idea whilst I wait for the progress bar to complete......

Cheers

P

Re: cloud-install-sys-tmplt ~questions / suggestion

Posted by Piers Rowan <pi...@recruitonline.com.au>.
On 27/08/14 08:06, Geoff Higginbottom wrote:
> Hi Piers,
>
> We do a lot of clean build testing including re-deploying Secondary Storage so we just host all the templates internally then update the DB using Ansible during the initial deployment of CloudStack, also via Ansible etc
>
>


Cheers Geoff,

At this stage we are just using one server for testing but as things 
grow Ansible might be worth looking into more deeply.

Cheers

P

Re: cloud-install-sys-tmplt ~questions / suggestion

Posted by Geoff Higginbottom <ge...@shapeblue.com>.
Hi Piers,

We do a lot of clean build testing including re-deploying Secondary Storage so we just host all the templates internally then update the DB using Ansible during the initial deployment of CloudStack, also via Ansible etc

Regards

Geoff Higginbottom
CTO / Cloud Architect

D: +44 20 3603 0542<tel:+442036030542> | S: +44 20 3603 0540<tel:+442036030540> | M: +447968161581<tel:+447968161581>

geoff.higginbottom@shapeblue.com<ma...@shapeblue.com> | www.shapeblue.com<htp://www.shapeblue.com/> | Twitter:@cloudstackguru<https://twitter.com/#!/cloudstackguru>

ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS<x-apple-data-detectors://5>


On 26 Aug 2014, at 22:42, "Piers" <pi...@rowan.id.au>> wrote:

Hi there,

I am new to Cloudstack and have been setting up a testing / retesting the software.

One of the things that takes a long time (and adds to the bandwidth costs for everyone) is running cloud-install-sys-tmplt  and re-downloading the initial templates.

I guess a work around would be to save the file to a local web server and change the URL in cloud-install-sys-tmplt -u

Another option might be to scan the /secondary directory and do an md5 hash on any images that are there (of a certain size) - if they match then to keep the existing file and update the image database with the id / path.

If there is an easier way then please let me know as I haven't come across it in the docs (yet).

Just an idea whilst I wait for the progress bar to complete......

Cheers

P
Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge - rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: cloud-install-sys-tmplt ~questions / suggestion

Posted by Piers Rowan <pi...@recruitonline.com.au>.
On 27/08/14 07:45, Erik Weber wrote:
> You can pass the file from your filesystem with the -f parameter (instead
> of -u), that way you don't really have to host it on a webserver.
>

Excellent thanks!

Perhaps a change like this in the docs might help some like me:

<h4>Alternately The System VMs Can Be Deployed From File</h4><div class="highlight-bash">

<div class="highlight"><pre>
cd /tmp/
wget 
http://cloudstack.apt-get.eu/systemvm/4.4/systemvm64template-4.4.0-6-kvm.qcow2.bz2

/usr/share/cloudstack-common/scripts/storage/secondary/cloud-install-sys-tmplt 
<span class="se">\</span>
-m /secondary <span class="se">\</span>
-f /tmp/systemvm64template-4.4.0-6-kvm.qcow2.bz2<span class="se">\</span>
-h kvm -F
</pre>
</div>
</div>

Cheers

Piers


Re: cloud-install-sys-tmplt ~questions / suggestion

Posted by Erik Weber <te...@gmail.com>.
You can pass the file from your filesystem with the -f parameter (instead
of -u), that way you don't really have to host it on a webserver.

-- 
Erik

On Tue, Aug 26, 2014 at 11:41 PM, Piers <pi...@rowan.id.au> wrote:

> Hi there,
>
> I am new to Cloudstack and have been setting up a testing / retesting the
> software.
>
> One of the things that takes a long time (and adds to the bandwidth costs
> for everyone) is running cloud-install-sys-tmplt  and re-downloading the
> initial templates.
>
> I guess a work around would be to save the file to a local web server and
> change the URL in cloud-install-sys-tmplt -u
>
> Another option might be to scan the /secondary directory and do an md5
> hash on any images that are there (of a certain size) - if they match then
> to keep the existing file and update the image database with the id / path.
>
> If there is an easier way then please let me know as I haven't come across
> it in the docs (yet).
>
> Just an idea whilst I wait for the progress bar to complete......
>
> Cheers
>
> P
>