-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile_2simpleVMs
49 lines (40 loc) · 1.51 KB
/
Vagrantfile_2simpleVMs
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
44
45
46
47
48
49
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "vm1" do |vm1|
vm1.vm.box = "debian/stretch64"
vm1.vm.network :private_network, ip: "10.0.1.10"
vm1.vm.provision "shell", inline: "hostname nikosVM1"
vm1.vm.provision "shell", inline: "sudo apt-get update"
vm1.vm.provision "shell", inline: "sudo apt-get install -y python"
vm1.vm.provision "shell", inline: "sudo apt-get install -y python-pip"
vm1.vm.provision "shell", inline: "sudo apt-get install -y dnsutils"
vm1.vm.provision "shell", inline: "sudo apt-get install -y tcpdump"
vm1.vm.provision "shell", inline: "sudo apt-get install -y git"
vm1.vm.provider :virtualbox do |vb|
vb.gui = true
vb.customize [
"modifyvm", :id,
"--memory","512",
]
end
end
config.vm.define "vm2" do |vm2|
vm2.vm.box = "debian/stretch64"
vm2.vm.network :private_network, ip: "10.0.1.20"
vm2.vm.provision "shell", inline: "hostname nikosVM2"
vm2.vm.provision "shell", inline: "sudo apt-get update"
vm2.vm.provision "shell", inline: "sudo apt-get install -y python"
vm2.vm.provision "shell", inline: "sudo apt-get install -y python-pip"
vm2.vm.provision "shell", inline: "sudo apt-get install -y dnsutils"
vm2.vm.provision "shell", inline: "sudo apt-get install -y tcpdump"
vm2.vm.provision "shell", inline: "sudo apt-get install -y git"
vm2.vm.provider :virtualbox do |vb|
vb.gui = true
vb.customize [
"modifyvm", :id,
"--memory","512",
]
end
end
end