-
Notifications
You must be signed in to change notification settings - Fork 87
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
Error when adding more than 4 networks #410
Comments
Hi @q0rban If that issue is still actual for you, could you please share more details ?
|
I tried to reproduce it on Parallels Desktop for Mac Case n.1All networks are type DHCP. In reality all these virtual NICs will be bridged through the same bridge interface on your Mac (bridge101), which is mapped to the default "Host Only" network: Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-20.04"
config.vm.network "private_network", type: "dhcp"
config.vm.network "private_network", type: "dhcp"
config.vm.network "private_network", type: "dhcp"
config.vm.network "private_network", type: "dhcp"
config.vm.network "private_network", type: "dhcp"
config.vm.network "private_network", type: "dhcp"
config.vm.network "private_network", type: "dhcp"
config.vm.network "private_network", type: "dhcp"
end Output:
Case n.2All networks (except first 2) are set to static IPs from separate /24 subnets, so there will be an individual bridge interface created for each of them: Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-20.04"
config.vm.network "private_network", ip: "10.20.30.10"
config.vm.network "private_network", ip: "10.20.30.11"
config.vm.network "private_network", ip: "10.20.40.10"
config.vm.network "private_network", ip: "10.20.50.10"
config.vm.network "private_network", ip: "10.20.60.10"
config.vm.network "private_network", ip: "10.20.70.10"
config.vm.network "private_network", ip: "10.20.80.10"
config.vm.network "private_network", ip: "10.20.90.10"
end Output:
^ In both cases NICs are configured successfully |
Thanks so much for taking a look at this, @legal90 ! One thing I failed to mention is that I am on an M1 Mac
I will try a different box to see if it's something with the box causing the issue. |
I tried the
Same error with
|
Oh, then this is probably some limitation or issue of Parallels Desktop on M1 Mac :( |
I'm having the same issue as @q0rban My Vagrantfile:
vagrant up:
Error:
My configuration:
|
@eazylaykzy thank you, I ended up just not using Vagrant on Mac M1, due in part to this issue but also other issues. |
@q0rban that's sad, I guess I will have to get a secondary computer that will be compatible with VirtualBox. Thank you. |
For anyone hitting a roadblock like I did trying to make this work, below are the changes I made to my Vagrantfile that got me up and running:
All configurations from my previous comments remain the same. |
I have a Vagrant config that works with VirtualBox. It creates 7 networks like so:
This appears to work with parallels as well:
I can also see the 7 networks in the Parallels desktop UI:
However,
ip a
only shows 4 devices which causes thevagrant up
command to fail:Relevant debug output from
vagrant --debug up --provider parallels
:The text was updated successfully, but these errors were encountered: