2013-04-04 14:52:39 -03:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2018-02-05 22:23:00 -04:00
|
|
|
# Testing an ArduPilot VM:
|
2019-03-29 20:40:32 -03:00
|
|
|
# sim_vehicle.py --map --console # in the starting directory should start a Copter simulation
|
2018-02-05 22:23:00 -04:00
|
|
|
# sim_vehicle.py --debug --gdb
|
|
|
|
# sim_vehicle.py --valgrind
|
2018-10-19 03:20:33 -03:00
|
|
|
# time (cd /vagrant && ./waf configure --board=fmuv2 && ./waf build --target=bin/ardusub) # ~9 minutes
|
|
|
|
# time (cd /vagrant && ./waf configure --board=fmuv3 && ./waf build --target=bin/ardusub) # ~ minutes (after building fmuv2)
|
|
|
|
# time (cd /vagrant && ./waf configure --board=navio2 && ./waf build --target=bin/arduplane)
|
2019-03-29 20:40:32 -03:00
|
|
|
# time (cd /vagrant && ./Tools/autotest/sim_vehicle.py --map --console -v ArduPlane -f jsbsim) # should test JSBSim
|
2018-10-19 03:20:33 -03:00
|
|
|
# time (cd /vagrant && ./Tools/autotest/autotest.py build.APMrover2 drive.APMrover2)
|
2018-02-05 22:23:00 -04:00
|
|
|
|
2015-01-20 15:51:19 -04:00
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
|
|
VAGRANTFILE_API_VERSION = "2"
|
2013-04-04 14:52:39 -03:00
|
|
|
|
2015-01-20 15:51:19 -04:00
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
2019-02-10 22:58:14 -04:00
|
|
|
config.ssh.forward_x11 = true
|
2013-04-04 14:52:39 -03:00
|
|
|
|
2015-01-20 15:51:19 -04:00
|
|
|
# Provider-specific configuration so you can fine-tune various
|
|
|
|
# backing providers for Vagrant. These expose provider-specific options.
|
|
|
|
# Example for VirtualBox:
|
|
|
|
#
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
# Don't boot with headless mode
|
|
|
|
# vb.gui = true
|
|
|
|
#
|
|
|
|
# # Use VBoxManage to customize the VM. For example to change memory:
|
2018-10-19 03:20:33 -03:00
|
|
|
vb.customize ["modifyvm", :id, "--memory", "3192"]
|
2015-01-20 15:51:19 -04:00
|
|
|
vb.customize ["modifyvm", :id, "--ioapic", "on"]
|
|
|
|
vb.customize ["modifyvm", :id, "--cpus", "2"]
|
2015-03-22 17:37:15 -03:00
|
|
|
# Make some effort to avoid clock skew
|
|
|
|
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", "5000"]
|
|
|
|
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-start"]
|
|
|
|
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-on-restore", "1"]
|
2015-01-20 15:51:19 -04:00
|
|
|
end
|
|
|
|
|
2018-02-06 02:05:12 -04:00
|
|
|
# If you are on windows then you must use a version of git >= 1.8.x
|
|
|
|
# to update the submodules in order to build. Older versions of git
|
|
|
|
# use absolute paths for submodules which confuses things.
|
2015-03-22 17:37:15 -03:00
|
|
|
|
2018-03-01 22:59:59 -04:00
|
|
|
# removing this line causes "A box must be specified." error
|
|
|
|
# and this is the default box that will be booted if no name is specified
|
2018-12-05 02:26:02 -04:00
|
|
|
config.vm.box = "ubuntu/bionic64"
|
2018-02-05 22:23:00 -04:00
|
|
|
|
2018-03-31 00:25:39 -03:00
|
|
|
# LTS, EOL April, 2019:
|
|
|
|
config.vm.define "trusty32", autostart: false do |trusty32|
|
|
|
|
config.vm.box = "ubuntu/trusty32"
|
|
|
|
config.vm.provision "trusty32", type: "shell", path: "Tools/vagrant/initvagrant.sh"
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (trusty32)"
|
2018-03-01 22:59:59 -04:00
|
|
|
vb.gui = true
|
2018-03-31 00:25:39 -03:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-03-01 22:59:59 -04:00
|
|
|
# 14.04.5 LTS, EOL April, 2019:
|
2018-02-06 02:05:12 -04:00
|
|
|
config.vm.define "trusty64", autostart: false do |trusty64|
|
2018-02-05 22:23:00 -04:00
|
|
|
config.vm.box = "ubuntu/trusty64"
|
|
|
|
config.vm.provision "trusty64", type: "shell", path: "Tools/vagrant/initvagrant.sh"
|
2018-03-31 00:25:39 -03:00
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (trusty64)"
|
2018-03-01 22:59:59 -04:00
|
|
|
vb.gui = true
|
2018-03-31 00:25:39 -03:00
|
|
|
end
|
2018-02-06 02:05:12 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
# LTS, EOL April 2021
|
2018-05-17 00:31:06 -03:00
|
|
|
# this VM is useful for running valgrind on!
|
2018-02-06 02:05:12 -04:00
|
|
|
config.vm.define "xenial32", autostart: false do |xenial32|
|
|
|
|
config.vm.box = "ubuntu/xenial32"
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
2018-03-31 00:25:39 -03:00
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (xenial32)"
|
2018-03-01 22:59:59 -04:00
|
|
|
vb.gui = true
|
2018-03-31 00:25:39 -03:00
|
|
|
end
|
2018-02-06 02:05:12 -04:00
|
|
|
end
|
|
|
|
|
2018-03-01 22:59:59 -04:00
|
|
|
# NO LONGER AVAILABLE FOR DOWNLOAD, EOL January 2018
|
2018-02-06 02:05:12 -04:00
|
|
|
# EOL January 2018
|
2018-03-01 22:59:59 -04:00
|
|
|
# Only kept around for those few dev's who have already got this image and continue to use it.
|
2018-02-06 02:05:12 -04:00
|
|
|
config.vm.define "zesty32", autostart: false do |zesty32|
|
|
|
|
config.vm.box = "ubuntu/zesty32"
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
2018-03-31 00:25:39 -03:00
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (zesty32)"
|
2018-03-01 22:59:59 -04:00
|
|
|
vb.gui = true
|
2018-03-31 00:25:39 -03:00
|
|
|
end
|
2018-02-06 02:05:12 -04:00
|
|
|
end
|
|
|
|
|
2018-03-01 22:59:59 -04:00
|
|
|
# 17.10, EOL July 2018
|
2018-12-05 02:26:02 -04:00
|
|
|
# Only kept around for those few dev's who have already got this image and continue to use it; not available for download
|
2018-12-19 06:32:16 -04:00
|
|
|
config.vm.define "artful32", autostart: false do |artful32|
|
2018-02-06 02:05:12 -04:00
|
|
|
config.vm.box = "ubuntu/artful32"
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
2018-03-31 00:25:39 -03:00
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (artful32)"
|
2018-03-01 22:59:59 -04:00
|
|
|
vb.gui = true
|
2018-03-31 00:25:39 -03:00
|
|
|
end
|
2018-02-06 02:05:12 -04:00
|
|
|
end
|
|
|
|
|
2019-03-29 20:40:32 -03:00
|
|
|
# 18.04 LTS
|
2018-02-06 02:05:12 -04:00
|
|
|
config.vm.define "bionic32", autostart: false do |bionic32|
|
|
|
|
config.vm.box = "ubuntu/bionic32"
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
2018-03-31 00:25:39 -03:00
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (bionic32)"
|
2018-03-01 22:59:59 -04:00
|
|
|
vb.gui = true
|
2018-03-31 00:25:39 -03:00
|
|
|
end
|
2018-02-05 22:23:00 -04:00
|
|
|
end
|
|
|
|
|
2019-03-29 20:40:32 -03:00
|
|
|
# 18.04 LTS
|
2018-12-19 06:32:16 -04:00
|
|
|
config.vm.define "bionic64", primary: true do |bionic64|
|
2018-05-14 23:52:36 -03:00
|
|
|
config.vm.box = "ubuntu/bionic64"
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (bionic64)"
|
|
|
|
vb.gui = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-10-19 03:20:33 -03:00
|
|
|
|
2019-03-29 20:40:32 -03:00
|
|
|
# 18.10
|
2018-10-19 03:20:33 -03:00
|
|
|
config.vm.define "cosmic32", autostart: false do |cosmic32|
|
|
|
|
config.vm.box = "ubuntu/cosmic32"
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (cosmic32)"
|
|
|
|
vb.gui = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-29 20:40:32 -03:00
|
|
|
# 18.10
|
2018-10-19 03:20:33 -03:00
|
|
|
config.vm.define "cosmic64", autostart: false do |cosmic64|
|
|
|
|
config.vm.box = "ubuntu/cosmic64"
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (cosmic64)"
|
|
|
|
vb.gui = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2019-03-29 20:40:32 -03:00
|
|
|
# 19.04 bleeding edge
|
|
|
|
config.vm.define "disco64", autostart: false do |disco64|
|
|
|
|
config.vm.box = "ubuntu/disco64"
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
|
|
|
config.vm.provider "virtualbox" do |vb|
|
|
|
|
vb.name = "ArduPilot (disco64)"
|
|
|
|
vb.gui = true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2013-04-04 14:52:39 -03:00
|
|
|
end
|
|
|
|
|