Humoud / BackBag-Lab-VM

Small enough to carry on your back (Backpack) 🎒💻
MIT License
32 stars 5 forks source link

Networks with custom subnet/mask values are not supported on this platform #1

Closed axelarator closed 2 years ago

axelarator commented 2 years ago

Operating System Version: MacOS Monterey 12.4 Deploying via VMWare Fusion Vagrant Version: 2.2.19

Description of the issue:

When attempting to bring up any VM, it errors out due to networking issues.

Vagrant failed to create a new VMware networking device. The following error message was generated while attempting to create a new device:
Networks with custom subnet/mask values are not supported on this platform
Please resolve any problems reported in the error message above and try again.

I see this is also a prevalent issue in DetectionLab as well with issue #782 and #602

Humoud commented 2 years ago

Thanks for bringing this to my attention. I have a mac lying around. Will see if I can find a solution or a work around.

Humoud commented 2 years ago

@axelarator I have some good news and bad news. Apparently, vagrant does not support setting custom IPs on VMWare Fusion on macOS Big Sur and above.

From vagrant:

"Starting with the Big Sur release VMware Fusion is no longer able to create network devices with custom subnet and mask settings to attach to guests. This means custom IP addresses are not valid when creating a private network."

Luckily we have VirtualBox supported on MacOS and I tested it! I made a new push which addresses a minor issue I faced.

I also installed the vbguest plugin on macOS:

vagrant plugin install vagrant-vbguest

Note that I did the testing on:

I am yet to update the README.md, will await feedback.

Note that the push I made mounts two folders in the project onto the Windows VMs to allow for provisioning.

axelarator commented 2 years ago

My bad, didn't meant to close the issue.

Ok so VirtualBox works...almost. The Windows boxes install just fine, but the Linux server gets stuck at boot. The last output in my terminal is nix01: SSH auth method: private key

Looking at the error, it appears to be a Vagrant issue rather than a BackBag issue.

timeout during server version negotiating.```

Now I've tried multiple steps to fix this without success.

Humoud commented 2 years ago

Thanks for taking the time to test, troubleshoot, and update me!

I'll test the nix box on my machine and see what I can do. Will also see if the issue will be resolved if I switch to another nix box instead of bento's.

Humoud commented 2 years ago

@axelarator I faced the same exact issue and updated the Vagrantfile on the main branch with a fix.

I did the following changes under cfg.vm.provider "virtualbox" do |v, override|:

Added:

v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]

Removed:

v.default_nic_type = "82545EM"

I took the configs from Detectionlab's vagrant file.

Hope it works on your end as well.

axelarator commented 2 years ago

Awesome, it works now. Destroyed the box, brought it back up, halted it (this failed before) and it shut down correctly. Then I brought all 4 boxes up without error.

Humoud commented 2 years ago

Awesome! Thanks for the feedback. I'll close the issue now.