-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathVagrantfile
64 lines (46 loc) · 1.78 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "kalilinux/rolling"
# Install missing plugins
unless Vagrant.has_plugin?("vagrant-vbguest")
puts 'Installing vagrant-vbguest Plugin...'
system('vagrant plugin install vagrant-vbguest')
end
unless Vagrant.has_plugin?("vagrant-reload")
puts 'Installing vagrant-reload Plugin...'
system('vagrant plugin install vagrant-reload')
end
# VirtualBox specific settings
config.vm.provider "virtualbox" do |vb|
# Virtualbox VM name
vb.name = "test1"
# Show VirtualBox GUI when booting the machine
vb.gui = true
# Customize the amount of memory on the VM:
vb.memory = "1024"
# vb.memory = "2048"
# vb.memory = "3072"
# vb.memory = "4096"
# Number of CPU cores
vb.cpus = 2
# Video memory
vb.customize ["modifyvm", :id, "--vram", "128"]
# Enable shared clipboard
vb.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
# Disable remote display
vb.customize ["modifyvm", :id, "--vrde", "off"]
end
# Update guest additions
config.vbguest.auto_update = true
# Provision the machine with a shell script
config.vm.provision "shell", path: "provision.sh", :args => "--keyboard=hr --timezone=Europe/Vienna"
# Copy .bashrc
config.vm.provision "file", source: ".bashrc", destination: ".bashrc"
# Copy .bash_aliases
config.vm.provision "file", source: ".bash_aliases", destination: ".bash_aliases"
# Copy openvas-update.sh
config.vm.provision "file", source: "openvas-update.sh", destination: "openvas-update.sh"
# Reload after provision
config.vm.provision :reload
end