Script to create a DietPi Vagrant Box.
DietPi version used is DietPi_NativePC-BIOS-x86_64-Bullseye.
You can find this box in Vagrant cloud (https://app.vagrantup.com/aramcap/boxes/dietpi-bullseye).
Users:
- user: root ; password: dietpi
- user: vagrant ; only enabled access by identity file ; included in sudoers with nopasswd
Vagrant.configure("2") do |config|
config.vm.box = "aramcap/dietpi-bullseye"
end
vagrant init aramcap/dietpi-bullseye
vagrant up
- wget
- 7za
- qemu-img
- guestmount / guestunmount
- tar
If you have make
:
make
If you don't have make
:
bash build.sh
The box file is generated in target
folder: dietpi-bullseye.box
.
- DietPi license is auto accepted.
- DietPi locale is
C.UTF-8
. - DietPi keyboard layout is
us
. - DietPi timezone is
UTC
. - DietPi SSH server is OpenSSH.
- DietPi logging mode is
rsyslog + logrotate
. - DietPi autosetup: On first login, run update, initial setup and software installs without any user input.
- Base disk sized to 10GB.
- Added vagrant user with
vagrant insecure public key
. - Added vagrant user to sudoers with
NOPASSWD
.