-
Notifications
You must be signed in to change notification settings - Fork 588
/
Vagrantfile
43 lines (37 loc) · 1.22 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
39
40
41
42
43
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Author: David Manouchehri
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-16.04"
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provision "shell", inline: <<-SHELL
apt-get update
# DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
DEBIAN_FRONTEND=noninteractive apt-get -y install ccache cmake make g++-multilib gdb pkg-config realpath python-pexpect manpages-dev git ninja-build capnproto libcapnp-dev zlib1g-dev
apt-get clean
SHELL
config.vm.provision "shell", privileged: false, inline: <<-SHELL
git clone https://github.com/rr-debugger/rr.git
cd rr
mkdir obj
cd obj
cmake .. -DPYTHON_EXECUTABLE=/usr/bin/python
make -j8
make test
SHELL
config.vm.provision "shell", inline: <<-SHELL
cd /home/vagrant/rr/obj/
make install
SHELL
%w(vmware_fusion vmware_workstation vmware_appcatalyst).each do |provider|
config.vm.provider provider do |v|
v.vmx["memsize"] = "4096"
v.vmx['vpmc.enable'] = 'true'
v.vmx['vhv.enable'] = 'true'
v.vmx['vvtd.enable'] = 'true'
v.vmx['monitor_control.disable_hvsim_clusters'] = 'true'
v.vmx['virtualHW.version'] = '14'
v.vmx['ethernet0.virtualDev'] = 'vmxnet3'
end
end
end