shell scripts that builds systemd based gentoo box for x86_64 platform
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
files
packer
scripts
.gitignore
LICENSE
README.md
build.sh
minify.sh
validate.sh
variables.sample.sh

README.md

gentoo-build

shell scripts that builds systemd based gentoo box for x86_64 platform.

Usage

Basic

$ cp ./variables{.sample,}.sh
$ vi ./variables.sh
$ ./minify.sh /tmp/gentoo-build.sh
$ scp /tmp/gentoo-build.sh installer:/tmp/gentoo-build.sh
$ ssh installer /tmp/gentoo-build.sh

Packer (virtualbox-iso, amazon-ebs)

$ packer build --var 'subnet_id=subnet-XXX' --var 'vpc_id=vpc-XXX' packer/gentoo.json
$ packer build --only=virtualbox-iso --var 'subnet_id=' --var 'vpc_id=' packer/gentoo.json

packer build should be run in the repository root directory.

Built images using packer

You can use these if you can trust me. Note that the images are provided w/o any warranty. And the images can be removed w/o any notices. If you want persistent copy, build by your own.

Vagrant (virtualbox, qemu, aws)

https://atlas.hashicorp.com/sorah/boxes/gentoo

Not frequently updated

AWS EC2 AMI

gentoo-20170706-595e850a-1ade-86bb-c236-ecf2ea883c22

Note

Packer virtualbox support

  • default user name is vagrant, and its password is vagrant
  • NOPASSWD sudo access enabled for wheel group, which vagrant user belongs to.

Packer EC2 support

  • cloud-init has enabled
  • default user name is gentoo
    • NOPASSWD sudo access enabled for the user
    • default user creation is done via cloud-init.
  • IPv6 is not supported out-of-the-box
    • As of Jan 31st, AWS' DHCPv6 server implementation doesn't respond to packets sent from systemd-networkd :/