Hi,
I'm having some issues with an ubuntu box I'm building and I'm hoping someone can enlighten me about how the network interfaces are setup by vagrant on debian flavored machines. I've been building it with packer using very basic setup.
Im using the resulting box to spin up a vm and I want to setup the following interface
vmconfig.vm.network :private_network, ip: "10.0.0.5"
I really want this static interface to be eth0; However it seems there is a default interface setup by ubuntu as eth0 in /etc/network/interfaces. I figured that I could just remove this from the interfaces file with a provisioning script and vagrant would add in the ones I want in the order I want them.
This does not work alas, if i remove the default interface, the vagrant box hangs at the 'waiting for the machine to finish booting' stage and just sits there. If i log in through the gui, I see no generated vagrant config in the interfaces file.
My suspicion is that vagrant needs an interface to be present so that it can log in and add the user selected ones to the networking config. Can someone confirm if this is correct? Is there a way for me to remove this default interface?
I'm going to try bumping the default interface up to eth5 (if I have 5 interfaces on my machine i'm probably doing something wrong) but id rather not have it at all so I'm hoping there is a cleaner solution. Anyone have a suggestion?
thanks kindly,
steve.