-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
55 lines (41 loc) · 1.56 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# vagrant plugin install vagrant-disksize
# vagrant plugin install vagrant-vbguest
Vagrant.configure("2") do |config|
config.vm.box = "kalilinux/rolling"
config.vm.hostname = "p41n"
config.disksize.size = "120GB"
# Use bridge network. In VirtualBox
config.vm.base_mac = "DEADBEEFCAFE"
config.vm.network "public_network", use_dhcp_assigned_default_route: true
config.vm.synced_folder ".", "/vagrant"
# Create a forwarded port if NAT
# config.vm.network "forwarded_port", guest: 8090, host: 8090
# config.vm.network "forwarded_port", guest: 8091, host: 8091
# config.vm.network "forwarded_port", guest: 8091, host: 8091
# Provision the machine with a shell script
config.vm.provision :shell, path: "postinstall.sh"
# VirtualBox guest plugin
config.vbguest.auto_update = true
# do NOT download the iso file from a webserver
config.vbguest.no_remote = true
# VirtualBox specific settings
config.vm.provider "virtualbox" do |vb|
vb.name = "KaliLinux_Vagrant"
# Hide the VirtualBox GUI when booting the machine
vb.gui = true
vb.customize ["modifyvm", :id, "--clipboard-mode", "bidirectional"]
#Customize CPUs assigned to machine
vb.cpus = 2
# Customize the amount of memory on the VM:
vb.memory = "8192"
end
config.vm.provider "vmware_desktop" do |v, override|
v.vmx["displayname"] = "kalilinux_prod"
v.memory = 8096
v.cpus = 2
v.gui = true
v.enable_vmrun_ip_lookup = false
end
end