mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
ad9c3d730c
For full instructions/notes see Tools/vagrant/README.md Notes: * Old Vagrantfile updated to run faster and self init with our various build dependancies. * The sim_vehicle.sh script will now implicitly configure if necessary * run_in_terminal_window.sh is now smart enough to use Screen sessions. Or if those are not available to warn the user but run the command with logging going to a file in /tmp.
36 lines
1.3 KiB
Ruby
36 lines
1.3 KiB
Ruby
# -*- mode: ruby -*-
|
|
# vi: set ft=ruby :
|
|
|
|
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
|
VAGRANTFILE_API_VERSION = "2"
|
|
|
|
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|
|
|
config.vm.box = "ubuntu/trusty32"
|
|
# push.app = "geeksville/ardupilot-sitl"
|
|
|
|
# Allow symlinks - I think this is no longer needed
|
|
# config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/cross-compiler", "1"]
|
|
|
|
# The following forwarding is not necessary (or possible), because our sim_vehicle.sh is smart enough to send packets
|
|
# out to the containing OS
|
|
# config.vm.network "forwarded_port", guest: 14550, host: 14550, protocol: "udp"
|
|
|
|
# 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:
|
|
vb.customize ["modifyvm", :id, "--memory", "2048"]
|
|
vb.customize ["modifyvm", :id, "--ioapic", "on"]
|
|
vb.customize ["modifyvm", :id, "--cpus", "2"]
|
|
end
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh"
|
|
end
|
|
|