|
|
@ -9,9 +9,6 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
|
|
|
config.vm.box = "ubuntu/trusty32" |
|
|
|
config.vm.box = "ubuntu/trusty32" |
|
|
|
# push.app = "geeksville/ardupilot-sitl" |
|
|
|
# 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 |
|
|
|
# The following forwarding is not necessary (or possible), because our sim_vehicle.sh is smart enough to send packets |
|
|
|
# out to the containing OS |
|
|
|
# out to the containing OS |
|
|
|
# config.vm.network "forwarded_port", guest: 14550, host: 14550, protocol: "udp" |
|
|
|
# config.vm.network "forwarded_port", guest: 14550, host: 14550, protocol: "udp" |
|
|
@ -28,8 +25,18 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
|
|
|
vb.customize ["modifyvm", :id, "--memory", "2048"] |
|
|
|
vb.customize ["modifyvm", :id, "--memory", "2048"] |
|
|
|
vb.customize ["modifyvm", :id, "--ioapic", "on"] |
|
|
|
vb.customize ["modifyvm", :id, "--ioapic", "on"] |
|
|
|
vb.customize ["modifyvm", :id, "--cpus", "2"] |
|
|
|
vb.customize ["modifyvm", :id, "--cpus", "2"] |
|
|
|
|
|
|
|
# NuttX needs symlinks. If you want to go that route you need this setting, but rsync is easier. |
|
|
|
|
|
|
|
# vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/PX4NuttX", "1"] |
|
|
|
|
|
|
|
# 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"] |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config.vm.synced_folder "../PX4Firmware", "/PX4Firmware" |
|
|
|
|
|
|
|
config.vm.synced_folder "../PX4NuttX", "/PX4NuttX", type: "rsync" |
|
|
|
|
|
|
|
config.vm.synced_folder "../uavcan", "/uavcan" |
|
|
|
|
|
|
|
|
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh" |
|
|
|
config.vm.provision :shell, path: "Tools/vagrant/initvagrant.sh" |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|