Replies: 2 comments
-
any experienced opinion is welcome |
Beta Was this translation helpful? Give feedback.
-
Starting from the point that there are some specific configurations that we can modify without the need to recreate/shutdown the VMs, we must still remember that there are things we need to do in the VMs just as they should be done on a real host. Vagrant does not offer native functionality to adjust network interfaces at runtime for VMs created with the libvirt provider. In your scenario where you want to initially provision the VMs on an unlimited bandwidth network and then change the network settings later, the approach you are using i.e. manually removing the unlimited network and adding an interface of limited bandwidth via the attach-device command, is the correct way to do this with the libvirt provider. |
Beta Was this translation helpful? Give feedback.
-
Hello amazing people,
I am faced with a scenario where I would like to deploy multiples domains with a requirement to download some packages after deployment. However, after the VMs are up and running the bandwidth needs to be reduced at a minimum (heartbeat only).
After testing different deployment methods, currently, the most convenient is to provisioning the VMs on an unlimited bandwidth network and then I am manually removing the unlimited network and adding a limited bandwidth interface via:
attach-device VM_NAME interface.xml --persistent
However, based on the documentation for vagrant reload, I would expect to be able to adjust the networking interfaces for multiple VMs by reloading a modified Vagrantfile.
Ex. the VM has the management network and a public network named unlimited, then modify the Vagrantfile parameters to completely remove/edit/add another public network, followed by a vagrant reload command.
Based on the aforementioned documentation: "After making any modifications to the Vagrantfile, a
reload
should be called." but in my case this is just rebooting the VMs.Am I doing something wrong or does anyone have a better solution for my scenario?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions