forked from udacity/nd064_course_1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
30 lines (25 loc) · 1006 Bytes
/
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
# set up the default terminal
ENV["TERM"]="linux"
# set minimum version for Vagrant
Vagrant.require_version ">= 2.2.10"
Vagrant.configure("2") do |config|
config.vm.provision "shell",
inline: "sudo su - && zypper update && zypper install -y apparmor-parser"
# Set the image for the vagrant box
config.vm.box = "opensuse/Leap-15.2.x86_64"
# Set the image version
config.vm.box_version = "15.2.31.632"
# Forward the ports from the guest VM to the local host machine
# Forward more ports, as needed
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.network "forwarded_port", guest: 6111, host: 6111
config.vm.network "forwarded_port", guest: 6112, host: 6112
# Set the static IP for the vagrant box
config.vm.network "private_network", ip: "192.168.50.4"
# Configure the parameters for VirtualBox provider
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.cpus = 4
vb.customize ["modifyvm", :id, "--ioapic", "on"]
end
end