{"action":"created","issue":{"url":"https://api.github.com/repos/rapid7/metasploitable3/issues/140","repository_url":"https://api.github.com/repos/rapid7/metasploitable3","labels_url":"https://api.github.com/repos/rapid7/metasploitable3/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/rapid7/metasploitable3/issues/140/comments","events_url":"https://api.github.com/repos/rapid7/metasploitable3/issues/140/events","html_url":"https://github.com/rapid7/metasploitable3/pull/140","id":228125035,"number":140,"title":"Move Building to Packer","user":{"login":"jbarnett-r7","id":12236529,"avatar_url":"https://avatars3.githubusercontent.com/u/12236529?v=3","gravatar_id":"","url":"https://api.github.com/users/jbarnett-r7","html_url":"https://github.com/jbarnett-r7","followers_url":"https://api.github.com/users/jbarnett-r7/followers","following_url":"https://api.github.com/users/jbarnett-r7/following{/other_user}","gists_url":"https://api.github.com/users/jbarnett-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarnett-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarnett-r7/subscriptions","organizations_url":"https://api.github.com/users/jbarnett-r7/orgs","repos_url":"https://api.github.com/users/jbarnett-r7/repos","events_url":"https://api.github.com/users/jbarnett-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jbarnett-r7/received_events","type":"User","site_admin":false},"labels":[{"id":482961760,"url":"https://api.github.com/repos/rapid7/metasploitable3/labels/delayed","name":"delayed","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-11T21:22:00Z","updated_at":"2017-05-11T21:34:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rapid7/metasploitable3/pulls/140","html_url":"https://github.com/rapid7/metasploitable3/pull/140","diff_url":"https://github.com/rapid7/metasploitable3/pull/140.diff","patch_url":"https://github.com/rapid7/metasploitable3/pull/140.patch"},"body":"This PR moves the majority of the building of the VM to Packer. All that occurs during the Vagrant build now is setting the hostname, adding a second host-only NIC, and configuring the firewall based on the difficulty setting. This will make bringing up and tearing down the VM much faster and more reliable since all of the services are in the base box.\r\n\r\nThe build process will still require the same steps, but the long poll process with be in the `packer build` step. \r\n\r\nA huge shoutout to @ncharron for his work in getting this process started.\r\n\r\nA few notes:\r\n* I had to include a script to disable the firewall during the packer process. When the firewall was enabled the provisioner was unable to connect to the box and would timeout before installing anything. This means the base box has the firewall disabled.\r\n* We might want to move the flag installation to Vagrant. This would make the system configurable on build and the flags could be excluded if that is preferred.\r\n* I know more config/install steps should be moved back into Vagrant, but I'm not sure what yet. This may be an ongoing change as the need arises.\r\n\r\nVerification:\r\n- [ ] Build the new base box by running `packer build --only=virtualbox-iso windows_2008_r2.json`. If the windows_2008_r2_virtualbox.box file already exists you will not be able to build.\r\n- [ ] Add the new base box to vagrant by running `vagrant box add windows_2008_r2_virtualbox.box --name=metasploitable3`. If you already have a box named metasploitable3 you will need to either remove it, or give this one a different name. If you give this one a different name you will need to edit the Vagrantfile to reflect this.\r\n- [ ] Bring the box up with `vagrant up`.\r\n- [ ] Verify each of the services [listed on the wiki](https://github.com/rapid7/metasploitable3/wiki/Vulnerabilities) are up and exploitable.\r\n- [ ] Bring the box down with `vagrant destroy`. Rebuild it in \"easy mode\" by running `MS3_DIFFICULTY=easy vagrant up`\r\n- [ ] Verify the firewall is not up.\r\n- [ ] Verify both the `build_win2008.ps1` and build_win2008.sh` scripts still build correctly."},"comment":{"url":"https://api.github.com/repos/rapid7/metasploitable3/issues/comments/300923455","html_url":"https://github.com/rapid7/metasploitable3/pull/140#issuecomment-300923455","issue_url":"https://api.github.com/repos/rapid7/metasploitable3/issues/140","id":300923455,"user":{"login":"ncharron","id":3265663,"avatar_url":"https://avatars1.githubusercontent.com/u/3265663?v=3","gravatar_id":"","url":"https://api.github.com/users/ncharron","html_url":"https://github.com/ncharron","followers_url":"https://api.github.com/users/ncharron/followers","following_url":"https://api.github.com/users/ncharron/following{/other_user}","gists_url":"https://api.github.com/users/ncharron/gists{/gist_id}","starred_url":"https://api.github.com/users/ncharron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncharron/subscriptions","organizations_url":"https://api.github.com/users/ncharron/orgs","repos_url":"https://api.github.com/users/ncharron/repos","events_url":"https://api.github.com/users/ncharron/events{/privacy}","received_events_url":"https://api.github.com/users/ncharron/received_events","type":"User","site_admin":false},"created_at":"2017-05-11T21:34:25Z","updated_at":"2017-05-11T21:34:25Z","body":"Then you might be correct. I was under the impression I had made changes to this which weren't committed to my repo but it looks like there aren't any. Which means you should be good to go!"}}
{"actor":{"display_login":"ncharron"}}