-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
38 lines (37 loc) · 1.33 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# This is a Vagrant configuration to spin up a standard FreeBSD system,
# and build a RoboBSD disk image.
#
# You will need the following Vagrant plugins:
# vagrant-disksize
# vagrant-scp
#
# NB: I have run into virtualbox extension issues with the latest
# FreeBSD vagrant boxen. I know it works (more or less) with
# VirtualBox version 5.1.22, but beyond that, you're on your own.
# It should also work with libvirt (with some modifications) but I
# need to run the build env on Linux and Mac OS X, so I use VB.
#
# The build system will produce three images, as follows:
# 1. RoboBSD for Vagrant
# 2. RoboBSD for a PC Engines ALIX board
# 3. RoboBSD for a PC Engines WRAP board
#
Vagrant.configure(2) do |config|
config.vm.hostname = "robodev"
config.vm.box = "freebsd/FreeBSD-12.4-RELEASE"
#config.vm.box_version = "2019.11.01"
config.disksize.size = '100GB'
config.vm.base_mac = "080027D14C66"
config.vm.guest = :freebsd
config.vm.network "forwarded_port", guest: 22, host: 8022
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", disabled: true
config.ssh.shell = "sh"
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "4096"]
vb.customize ["modifyvm", :id, "--cpus", "4"]
vb.customize ["modifyvm", :id, "--audio", "none"]
end
end