Skip to content

Instantly share code, notes, and snippets.

@poad
Last active January 12, 2019 01:44
Show Gist options
  • Save poad/bb6b8616c19707dd53f5fe7870e8cc14 to your computer and use it in GitHub Desktop.
Save poad/bb6b8616c19707dd53f5fe7870e8cc14 to your computer and use it in GitHub Desktop.
OpenBSD 6.2 の Vagrant Box を作ってみた ref: https://qiita.com/poad1010/items/5d7d272fe4b4695adb71
echo 'permit vagrant' >>/etc/doas.conf
echo 'permit nopass setenv { PKG_PATH ENV PS1 SSH_AUTH_SOCK } :wheel' >>/etc/doas.conf
doas pkg_add curl
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;
su -
echo 'https://fastly.cdn.openbsd.org/pub/OpenBSD' >> /etc/installurl
exit
su -
dd if=/dev/zero of=/EMPTY bs=1M || echo "dd exit code $? is suppressed";
rm -f /EMPTY;
sync;
exit
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