- tg.vm.box = "fdio-csit/ubuntu-14.04.4_2016-05-25_1.0"
- tg.vm.hostname = "tg"
-
- tg.vm.provision "shell", inline: $user_addition
- tg.vm.provision "shell", inline: $install_prereqs
- tg.vm.network "private_network", ip: '192.168.255.100/24'
- tg.vm.network "private_network", type: "dhcp", auto_config: false,
- virtualbox__intnet: net_prefix + "tg_dut1"
- tg.vm.network "private_network", type: "dhcp", auto_config: false,
- virtualbox__intnet: net_prefix + "tg_dut2"
- tg.vm.provider "virtualbox" do |vb|
- vb.memory = "2048"
- vb.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
- vb.customize ["modifyvm", :id, "--nicpromisc4", "allow-all"]
+
+ # Configure testing network interfaces (TG)
+ config.vm.network "private_network", type: "dhcp", auto_config: false, virtualbox__intnet: "link1", nic_type: "82545EM", mac: "0800270fe04d"
+ config.vm.network "private_network", type: "dhcp", auto_config: false, virtualbox__intnet: "link2", nic_type: "82545EM", mac: "08002761f7ad"
+ config.vm.network "private_network", type: "dhcp", auto_config: false, virtualbox__intnet: "link3", nic_type: "82545EM", mac: "080027dc5da4"
+
+ # Configure testing network interfaces (SUT)
+ config.vm.network "private_network", type: "dhcp", auto_config: false, virtualbox__intnet: "link1", nic_type: "82545EM", mac: "080027385e58"
+ config.vm.network "private_network", type: "dhcp", auto_config: false, virtualbox__intnet: "link2", nic_type: "82545EM", mac: "080027e3f542"
+ config.vm.network "private_network", type: "dhcp", auto_config: false, virtualbox__intnet: "link3", nic_type: "82545EM", mac: "0800274f7c63"
+
+ # Virtualbox machine configuration
+ config.vm.provider "virtualbox" do |vb|
+ vb.name = "vppdevice-bionic"
+ # Run in headless mode
+ vb.gui = false
+
+ # Customize the amount of memory and CPUs assigned:
+ # - for VPP at least 3GB RAM and 2 cores is recommended
+ vb.memory = "8192"
+ vb.cpus = "4"
+
+ # Configure network testing interfaces
+ vb.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
+ vb.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
+ vb.customize ["modifyvm", :id, "--nicpromisc4", "allow-all"]
+ vb.customize ["modifyvm", :id, "--nicpromisc5", "allow-all"]
+ vb.customize ["modifyvm", :id, "--nicpromisc6", "allow-all"]
+ vb.customize ["modifyvm", :id, "--nicpromisc7", "allow-all"]