Hello,
I am trying to configure a vagrant box with a bridged interface using the documentation examples at
vagrant-up.com. When I add this line to my Vagrantfile:
config.vm.network "public_network", bridge: "br0"
Then do:
vagrant up
I get this error:
Call to virDomainCreateWithFlags failed: Unable to get index for interface eth0: No such device
I've had to use this syntax in order for it to work:
config.vm.network "public_network", :dev => "br0", :mode => 'bridge', :type => "bridge"
I have 2 questions:
- Is the documentation outdated?
- When this does work, it creates a second network device (eth1) on the vagrant box which is connected to the host via br0. Eth0 is connected to the host via (vagrant-libvirt). Is there a way to have my bridge as eth0?
Thanks...