4 # Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
5 VAGRANTFILE_API_VERSION = "2"
7 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
9 # Bump the default resources as building is expensive
10 config.vm.provider "virtualbox" do |v|
15 # Permit X11 forwarding so running the graphical Wireshark works
16 config.ssh.forward_x11 = true
18 # Mounting to /vagrant (the default) won't work for building a
19 # Debian package. Let's be consistent for all boxes.
20 config.vm.synced_folder ".", "/vagrant", disabled: true
21 config.vm.synced_folder ".", "/home/vagrant/wireshark", type: "virtualbox"
23 # Install and build the various things (including wireshark!)
24 config.vm.define "ubuntu", autostart: false do |deb|
25 deb.vm.box = "ubuntu/jammy64"
27 deb.vm.provision "shell" do |s|
28 s.path = 'tools/debian-setup.sh'
29 s.args = ['--install-optional', '--assume-yes', '--install-qt6-deps']
31 deb.vm.provision :shell, inline: "apt-get -y install ccache"
32 deb.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
35 config.vm.define "fedora", autostart: false do |rpm|
36 rpm.vm.box = "fedora/28-cloud-base"
38 rpm.vm.provision "shell" do |s|
39 s.path = 'tools/rpm-setup.sh'
40 s.args = ['--install-optional', '--assumeyes']
42 rpm.vm.provision :shell, inline: "yum -y install ccache"
43 rpm.vm.provision :shell, path: 'vagrant_build.sh', privileged: false