|
1 | 1 | # This Vagrantfile can be used to quickly spin up a development instance of ub1404
|
2 | 2 |
|
3 | 3 | Vagrant.configure("2") do |config|
|
4 |
| - config.vm.define "dev" do |dev| |
5 |
| - dev.vm.box = "bento/ubuntu-14.04" |
6 |
| - dev.vm.box_version = "201808.24.0" |
7 | 4 |
|
8 |
| - # alternatively, for libvirt, use the following box: |
9 |
| - #config.vm.box = "peru/ubuntu-14.04-server-amd64" |
10 |
| - #config.vm.box_version = "20190901.01" |
11 |
| - dev.ssh.username = 'vagrant' |
12 |
| - dev.ssh.password = 'vagrant' |
13 |
| - dev.vm.network "forwarded_port", guest: 21, host:2121 |
| 5 | + config.vm.define "Metasploitable3-dev" |
| 6 | + config.vm.box = "bento/ubuntu-14.04" |
| 7 | + config.vm.box_version = "201808.24.0" |
14 | 8 |
|
15 |
| - dev.vm.provider "virtualbox" do |v| |
16 |
| - v.name = "Metasploitable3-ub1404-dev" |
17 |
| - v.memory = 2048 |
18 |
| - end |
| 9 | + config.vm.provider :libvirt do |libvirt, override| |
| 10 | + override.vm.box = "peru/ubuntu-14.04-server-amd64" |
| 11 | + override.vm.box_version = "20190901.01" |
| 12 | + libvirt.memory = 2048 |
19 | 13 | end
|
20 | 14 |
|
| 15 | + config.ssh.username = 'vagrant' |
| 16 | + config.ssh.password = 'vagrant' |
| 17 | + config.vm.network "forwarded_port", guest: 21, host:2121 |
| 18 | + |
21 | 19 | # manually rsync recipe changes before re-provisioning. e.g.,
|
22 | 20 | # `vagrant rsync && vagrant provision`
|
23 | 21 | config.vm.provision "chef_solo" do |chef|
|
|
0 commit comments