This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Vagrantfile
36 lines (32 loc) · 1.49 KB
/
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
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/netproj"
config.ssh.forward_agent = true
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.vm.synced_folder "tju_tcp", "/vagrant/tju_tcp"
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
config.vm.define :client, primary: true do |host|
host.vm.hostname = "client"
host.vm.network "private_network", ip: "172.17.0.2", netmask: "255.255.0.0", mac: "080027a7feb1",
virtualbox__intnet: "15441"
host.vm.provision "shell", inline: "sudo tcset enp0s8 --rate 100Mbps --delay 20ms"
host.vm.provision "shell", inline: "sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config"
host.vm.provision "shell", inline: "sudo service sshd restart"
end
config.vm.define :server do |host|
host.vm.hostname = "server"
host.vm.network "private_network", ip: "172.17.0.3", netmask: "255.255.0.0", mac: "08002722471c",
virtualbox__intnet: "15441"
host.vm.provision "shell", inline: "sudo tcset enp0s8 --rate 100Mbps --delay 20ms"
host.vm.provision "shell", inline: "sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config"
host.vm.provision "shell", inline: "sudo service sshd restart"
end
end