Jan Schaumann <jscha...@netmeister.org> 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 <s3bucket> 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