https://github.com/c2nes/openbsd-aws
https://github.com/c2nes/openbsd-aws
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/c2nes/openbsd-aws
- Owner: c2nes
- Created: 2016-09-07T03:48:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-08T12:43:44.000Z (over 9 years ago)
- Last Synced: 2025-01-17T01:48:08.144Z (12 months ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Build an OpenBSD AMI
====================
This project is an attempt to document a process for creating an OpenBSD AMI
from scratch from a released version of OpenBSD.
The rough process is,
1. Use a local OpenBSD install (physical or virtual) to build a `minirootXX.fs`
ramdisk image with a bundled [autoinstall](http://man.openbsd.org/autoinstall)
configuration.
2. Create an EBS volume big enough for default install (10GB should be enough).
3. Write `minirootXX.fs` to the EBS volume using an existing EC2 instance.
4. Attach the EBS volume as the root volume to an EC2 instance and start to
perform the install.
5. Wait for the instance to reboot.
6. ???
7. Profit.
Create ramdisk
--------------
1. Install OpenBSD.
2. Connect via SSH.
3. Configure doas,
$ su -
# echo allow nopass > /etc/doas.conf
# exit
4. Download source,
$ ftp http://mirror.jmu.edu/pub/OpenBSD/6.0/src.tar.gz
$ ftp http://mirror.jmu.edu/pub/OpenBSD/6.0/sys.tar.gz
5. Unpack source (as root),
$ cd /usr/src
$ doas tar -xzf ~/src.tar.gz
$ doas tar -xzf ~/sys.tar.gz
6. Write out `auto_install.conf`,
$ cd dist/amd64
$ doas vi common/auto_install.conf
7. Include `auto_install.conf` in ramdisk,
$ echo 'COPY ${CURDIR}/../common/auto_install.conf auto_install.conf' | doas tee -a common/list
8. Build,
$ cd ../special
$ doas make
$ cd ../amd64
$ doas make
9. Success,
$ ls ramdisk_cd/obj/miniroot60.fs