Created
August 29, 2022 11:28
-
-
Save cwyang/db216024a1a910d0b9244095eeceda3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "bento/ubuntu-22.04" | |
config.vm.box_check_update = false | |
vmcpu=(ENV['VPP_VAGRANT_VMCPU'] || 8) | |
vmram=(ENV['VPP_VAGRANT_VMRAM'] || 12192) | |
config.ssh.forward_agent = true | |
config.ssh.forward_x11 = true | |
# Define some physical ports for your VMs to be used by DPDK | |
nics = (ENV['VPP_VAGRANT_NICS'] || "2").to_i(10) | |
#for i in 1..nics | |
# config.vm.network "private_network", type: "dhcp" | |
#end | |
#config.vm.network "private_network", type: "dhcp" | |
#config.vm.network "private_network", ip: "192.168.1.100" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--ioapic", "on"] | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
vb.memory = "#{vmram}" | |
vb.cpus = "#{vmcpu}" | |
#support for the SSE4.x instruction is required in some versions of VB. | |
vb.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.1", "1"] | |
vb.customize ["setextradata", :id, "VBoxInternal/CPUM/SSE4.2", "1"] | |
end | |
config.vm.synced_folder '.', '/vagrant', disabled: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment