New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add a vagrant config to spin multiple vms #2473
Conversation
909c893
to
caf2ed8
Compare
caf2ed8
to
4b24687
Compare
4b24687
to
55a2b63
Compare
QoL for development. Easily spin multiple vms to run network scans locally. My personal cheat sheet for vagrant: ``` \# spin all vms vagrant up \# get the ips vagrant ssh-config | grep HostName | awk '{print $2}' \# tear everything down vagrant destroy -f ```
Ah, the oneliner for grabbing IPs might not be enough depending on provider. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took this branch for a test drive, and your Vagrantfile
mostly works for me!
The RHEL6 VM encountered an error running systemctl
, and when everything was up, I wasn't able to SSH into the RHEL6 VM, but I didn't spend any time troubleshooting it. Is RHEL6 too old for the systemctl
command? Did the RHEL6 VM setup work for you? Maybe I need to add a local ~/.ssh/config
to allow the old weak ssh-rsa
.
I successfully SSHed into all the other VMs, though! 🎉 I needed to include the port numbers when grepping the ssh-config like this:
vagrant ssh-config 2>/dev/null | grep -e '^Host\|\sHostName\|\sPort'
It is.
yup, it works, but I had to enable support for less secure kex algorithms because this is so frequent (testlab running rhel6, ec2 running rhel6), I added to all my hosts on ~/.ssh/config
This is virtually what we have on discovery by enabling legacy compatibility Lines 37 to 38 in 2e908b7
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
QoL for development. Easily spin multiple vms to run network scans locally.
My personal cheat sheet for vagrant: