Dirt-plain Alpine Linux Vagrant box built with Packer.
$ numfmt --to=iec-i --suffix=B $(wc -c <dirtbox.box)
43MiB
- All of the basic configurations are done by Packer when making the
.box
, including setting/etc/motd
with the build date. - Both
vagrant halt
andvagrant reboot
are supported via simple wrapper script around BusyBox'shalt
andreboot
. - Synced folders are supported via an aport of VirtualBox Guest Additions. The port is a bit outdated, but folders don't need to be shared via NFS or rsync.
$ packer build dirtbox.json # build
...
==> Builds finished. The artifacts of successful builds are:
--> virtualbox-iso: 'virtualbox' provider box: dirtbox.box
$ vagrant up # run
Bringing machine 'default' up with 'virtualbox' provider...
...
$ vagrant ssh # use
Alpine Linux v3.7 (Built 2018-10-11)
dirtbox:~$ neofetch
vagrant@dirtbox
---------------
OS: Alpine Linux x86_64
Uptime: 15 mins
Packages: 82 (apk)
Memory: 23MiB / 996MiB
Local IP: 10.0.2.15
dirtbox:~$ wc -c </vagrant/dirtbox.box | numfmt --to=iec-i --suffix=B
43MiB
- Configs organized in
dotfiles/
are symlinked into place with GNU Stow. Note that line endings of any config files shared to the Vagrant box should be Unix-style/LF line endings. - VM settings can be changed by modifying the
Vagrantsettings.yaml
, - The
custom.sh
script can be modified to add packages/custom code.