Closed vhtmldev closed 1 year ago
I can replicate that locally on a mac with packer 1.8.3 and virtualbox, I didn't verify vmware
As a workaround, I believe the prebuilt VM should work:
mkdir metasploitable3-workspace
cd metasploitable3-workspace
curl -O https://raw.githubusercontent.com/rapid7/metasploitable3/master/Vagrantfile
MS3_DIFFICULTY=easy vagrant up ub1404
I kicked off a fresh vmware build, and it succeeded. I did have to tweak the guest OS though:
diff --git a/packer/templates/pro/ubuntu_1404_pro.json b/packer/templates/pro/ubuntu_1404_pro.json
index ec238a3..8794735 100644
--- a/packer/templates/pro/ubuntu_1404_pro.json
+++ b/packer/templates/pro/ubuntu_1404_pro.json
@@ -26,7 +26,7 @@
"ssh_password": "vagrant",
"ssh_timeout": "2h",
"shutdown_command": "echo 'packer' | sudo -S shutdown -P now",
- "guest_os_type": "Ubuntu_64",
+ "guest_os_type": "Ubuntu-64",
"tools_upload_flavor": "linux",
"disk_size": 40000,
"vm_name": "metasploitable3-ub1404",
Output:
So presumably what you're hitting is a virtualbox regression
Ok so i tried to the workaround yes it actually works with vbox and i was able to properly build the image.
I think my workspace mightve been borked as i did try the prebuilt but it was giving me some errors.
Anyhow, the workaround fixed it! Thank you!
Issue Description
Please check the General Issues section in the wiki before you submit the issue. If you didn't find your issue mentioned, please give a thorough description of the issue you're seeing. Also, please be sure to include any troubleshooting steps that you've already attempted.
Host System
Command Output
Copy the relevant command output here. If it's long, either post to a gist and add the link here, or isolate the error lines.
The Ubuntu1404 machine is straight up from hell and is just not building as per your instructions.
it boots correctly but after dhcp succeeds the screen goes all pink and then the CLI says waiting for ssh and then nothing happens.
Can you please fix this or just remove the ubuntu1404 option altogether. I've tried building it in multiple environments including ubuntu, WSL, Windows and none of them work.
I understand everyones undying love for windows but why offer ubuntu1404 if its not working at all.