forked from OpenToAllCTF/pwnvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
executable file
·38 lines (33 loc) · 1.28 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
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.username = "vagrant"
config.ssh.forward_agent = true
config.vm.provision :shell, :path => "vagrant_setup.sh", :privileged => false
name = "pwn"
memory = "2048"
config.vm.define "pwn", primary: true do |u64|
u64.vm.network "private_network", ip: "10.10.10.10"
u64.vm.provider "virtualbox" do |vb, override|
override.vm.box ="geerlingguy/ubuntu1604"
# Sync a folder between the host and all guests.
# Uncomment this line (and adjust as you like)
#override.vm.synced_folder "~/code", "/code"
vb.name = name
vb.memory = memory
vb.gui = false
end
u64.vm.provider "libvirt" do |lv, override|
override.vm.box = "algebro/ubuntu1604"
# Sync a folder between the host and all guests.
# Uncomment this line (and adjust as you like)
# NOTE: Requires installation of the nfs-server package on the host machine
# If `vagrant up` hangs at Mounting NFS folders, modify your firewall configuration
# to allow nfs, rpc, and mountd services
#override.vm.synced_folder "~/ctf", "/ctf", :nfs => true
lv.memory = memory
lv.graphics_type = "none"
end
end
end