Topics

curl vs wget to download stemcells


Quintessence Anx
 

I am experiencing something a bit unexpected when I try to download the AWS
stemcells with wget and curl.

I'm trying to download the latest version, so for curl I enter:

curl -L -J -O
https://bosh.io/d/stemcells/bosh-aws-xen-ubuntu-trusty-go_agent

For wget I enter:

wget --content-disposition --no-check-certificate
https://bosh.io/d/stemcells/bosh-aws-xen-ubuntu-trusty-go_agent

For curl I get a file named:
bosh-aws-xen-ubuntu-trusty-go_agent

For wget I get a file named:
light-bosh-stemcell-2950-aws-xen-ubuntu-trusty-go_agent.tgz

In both cases the file is about 6.2KB, so it looks like I am actually
getting the *light* stemcell both times, even though that's not the URL I'm
using.

Is this behavior expected? How would I use curl/wget to download the full
stemcell since there's no separate URL?

Thanks!


Wayne E. Seguin
 

What you want is the *hvm* ones if you are going for the full size stemcell
vs a reference to a pre-existing AMI

curl -sOL
https://bosh.io/d/stemcells/bosh-aws-xen-hvm-ubuntu-trusty-go_agent

Notice the -hvm- in the file name.


All that said, did I see somewhere that the full stemcells are being
depreciated in preference for the light stemcells on AWS? eg. Does that
mean that only light will be available/generated from some point forward?


On Thu, Apr 30, 2015 at 4:48 PM, Quintessence Anx <qanx(a)starkandwayne.com>
wrote:

I am experiencing something a bit unexpected when I try to download the
AWS stemcells with wget and curl.

I'm trying to download the latest version, so for curl I enter:

curl -L -J -O
https://bosh.io/d/stemcells/bosh-aws-xen-ubuntu-trusty-go_agent

For wget I enter:

wget --content-disposition --no-check-certificate
https://bosh.io/d/stemcells/bosh-aws-xen-ubuntu-trusty-go_agent

For curl I get a file named:
bosh-aws-xen-ubuntu-trusty-go_agent

For wget I get a file named:
light-bosh-stemcell-2950-aws-xen-ubuntu-trusty-go_agent.tgz

In both cases the file is about 6.2KB, so it looks like I am actually
getting the *light* stemcell both times, even though that's not the URL I'm
using.

Is this behavior expected? How would I use curl/wget to download the full
stemcell since there's no separate URL?

Thanks!

_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh


Long Nguyen
 

Hey Quinn. 6.2kb seem like right size for light stem cell. If you want
full stemcell it's around 400mb and there is different url for that.

Long

On 30 Apr 2015 16:53, "Quintessence Anx" <qanx(a)starkandwayne.com> wrote:

I am experiencing something a bit unexpected when I try to download the
AWS stemcells with wget and curl.

I'm trying to download the latest version, so for curl I enter:

curl -L -J -O
https://bosh.io/d/stemcells/bosh-aws-xen-ubuntu-trusty-go_agent

For wget I enter:

wget --content-disposition --no-check-certificate
https://bosh.io/d/stemcells/bosh-aws-xen-ubuntu-trusty-go_agent

For curl I get a file named:
bosh-aws-xen-ubuntu-trusty-go_agent

For wget I get a file named:
light-bosh-stemcell-2950-aws-xen-ubuntu-trusty-go_agent.tgz

In both cases the file is about 6.2KB, so it looks like I am actually
getting the *light* stemcell both times, even though that's not the URL I'm
using.

Is this behavior expected? How would I use curl/wget to download the full
stemcell since there's no separate URL?

Thanks!

_______________________________________________
cf-bosh mailing list
cf-bosh(a)lists.cloudfoundry.org
https://lists.cloudfoundry.org/mailman/listinfo/cf-bosh