Last active
January 12, 2019 01:44
-
-
Save poad/bb6b8616c19707dd53f5fe7870e8cc14 to your computer and use it in GitHub Desktop.
OpenBSD 6.2 の Vagrant Box を作ってみた ref: https://qiita.com/poad1010/items/5d7d272fe4b4695adb71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'permit vagrant' >>/etc/doas.conf | |
echo 'permit nopass setenv { PKG_PATH ENV PS1 SSH_AUTH_SOCK } :wheel' >>/etc/doas.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doas pkg_add curl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --insecure --location "https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub" -O $HOME_DIR/.ssh/authorized_keys; | |
chown -R vagrant ~/.ssh; | |
chmod -R go-rwsx ~/.ssh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su - | |
echo 'https://fastly.cdn.openbsd.org/pub/OpenBSD' >> /etc/installurl | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
su - | |
dd if=/dev/zero of=/EMPTY bs=1M || echo "dd exit code $? is suppressed"; | |
rm -f /EMPTY; | |
sync; | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.vm.synced_folder ".", "/vagrant", type: "nfs" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment