Re: AWS EC2 AMIs

2021-01-22 Thread Jan Schaumann
Jan Schaumann  wrote:

> I've made the image public, so you can give it a try.

I've also created a NetBSD-current AMI:
ami-0018b2d98332ba7e3

That's 9.99.78 from
https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/images/NetBSD-9.99.78-amd64-live.img.gz

This image should work on at least 't2' instance
types.

-Jan


Re: AWS EC2 AMIs

2021-01-22 Thread Jan Schaumann
Jan Schaumann  wrote:
> I found
> https://wiki.netbsd.org/amazon_ec2/bsdec2_image_upload/
> and am currently looking to make time to give that a
> try.

That appears to work!

I pulled down the evbarm 9.1 image from
http://ftp.netbsd.org/pub/NetBSD/NetBSD-9.1/evbarm-aarch64/binary/gzimg/arm64.img.gz

I 'git clone'd
https://github.com/cperciva/bsdec2-image-upload and
ran 'make' in there.

(The version from pkgsrc didn't work because it was
built using an older OpenSSL, I think?)

I ceated a new S3 bucket and an AWS IAM user with S3
and EC2 privileges, put the ACCESS_KEY_ID and
ACCESS_KEY_SECRET into a keyfile and ran

./bsdec2-image-upload/bsdec2-image-upload/bsdec2-image-upload \
--sriov --ena --arm64 arm64.img "NetBSD 9.1 Arm" \
"NetBSD/evbarm 9.1" ${AWS_REGION} \
${S3BUCKET} keyfile.txt

After that:

Uploading arm64.img to  in 115
part(s)...
done.
Uploading volume manifest... done.
Importing volume: Pending.
Importing volume: Progress: 10%...
Importing volume: Progress: 15%.
Importing volume: Progress: 20%
Importing volume: Progress: 25%.
Importing volume: Progress: 30%.
Importing volume: Progress: 35%
Importing volume: Progress: 40% done.
Creating snapshot... done.
Registering AMI... done.
Created AMI in us-east-1 region: ami-08b87fed21cce91cb

I could then create a new EC2 instance of type
a1.medium using that AMI.  Some output at:
http://www.netmeister.org/tmp/netbsd-evbarm-ec2

I've made the image public, so you can give it a try.
I have to check what the cost factor for keeping AMIs
in my account, so this may disappear again, but at
least it looks like the tool by Colin Percival works
well enough to create images!

-Jan


Re: AWS EC2 AMIs

2021-01-22 Thread Jan Schaumann
Christos Zoulas  wrote:
 
> Yes, but who maintains these and where are the instructions to build them?

I found
https://wiki.netbsd.org/amazon_ec2/bsdec2_image_upload/
and am currently looking to make time to give that a
try.

-Jan


Re: AWS EC2 AMIs

2021-01-22 Thread Benny Siegert
I believe Jeff Rizzo maintains (or used to maintain) them.

Side note:
I maintain https://github.com/google/netbsd-gce for Google Compute
Engine. Unfortunately, we do not have official machine images
available on GCE. That requires some sort of "blessed" status for a
Cloud project. FreeBSD has it, we don't. Maybe it is time to inquire
again how to get that.

-- 
Benny

On Fri, Jan 22, 2021 at 6:00 AM Christos Zoulas  wrote:
>
> In article <20210121202419.gi29...@netmeister.org>,
> Jan Schaumann   wrote:
> >Hello,
> >
> >https://wiki.netbsd.org/amazon_ec2/amis/ shows the
> >latest AMIs as being NetBSD 7.0; the latest stable
> >release is NetBSD 9.1.
> >
> >Would it be possible to get official NetBSD AMIs of
> >NetBSD 9.0 uploaded?
> >
> >I would really like that to be part of the release
> >process, ideally.
>
> Yes, but who maintains these and where are the instructions to build them?
>
> christos
>


-- 
Benny


Re: AWS EC2 AMIs

2021-01-21 Thread Christos Zoulas
In article <20210121202419.gi29...@netmeister.org>,
Jan Schaumann   wrote:
>Hello,
>
>https://wiki.netbsd.org/amazon_ec2/amis/ shows the
>latest AMIs as being NetBSD 7.0; the latest stable
>release is NetBSD 9.1.
>
>Would it be possible to get official NetBSD AMIs of
>NetBSD 9.0 uploaded?
>
>I would really like that to be part of the release
>process, ideally.

Yes, but who maintains these and where are the instructions to build them?

christos