-
Hello all, I am struggling to start my VMs because of various network issues. Could someone explain how to setup the libvirt network the correct way to make it work with vagrant-libvirt? My network looks like this
vnet0 and vnet1 are from two VMs I did setup with virt-manager - they are using br0 for bridged public network:
The libvirt network looks like this (and is working perfectly fine with the two VMs)
With the above config, I get the following error when starting a VM with vagrant-libvirt:
This seems to create a network named "vagrant-libvirt" which I can't start manually as well:
When I add a macvtab network, I get the following issue:
I can use the macvtab network if I start VMs via virt-manager and if I add a macvlan device to my host, I can even get host <-> guest communication to work. Could anyone help to sort this out - I am completely stuck and out of ideas. Cheers and thanks for any suggestions, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The error message
Suggests an issue between libvirt and iptables, something around the internal setup is incorrect. https://bugzilla.redhat.com/show_bug.cgi?id=1683174 hints that this can be down to the kernel and potentially what modules are enabled. I can't see why that would be the case here as the default network is running and it appears to be using similar settings for the most part. Probably worth debugging why you can't start the network definition for vagrant-libvirt with your distro support first though. Once you can start that via I'm not sure that we support handling macvtap networks correctly yet, the network code is a bit knarly and definitely lacking tests so I can't be sure either way. |
Beta Was this translation helpful? Give feedback.
-
Hej and thanks for the quick reply! LIBVIRT_INP chain was missing. The culprit is: I was able to reproduce this.
And the init startup sequence is indeed to first start libvirtd and some time after that shorewall is started - stupid problem which luckily can be resolved fairly easy. I don't understand one comment from you though:
if I look at the documentation, it says (https://github.com/vagrant-libvirt/vagrant-libvirt#networks):
Which suggest that macvtap/macvlan is the way to go, no? Cheers, |
Beta Was this translation helpful? Give feedback.
Hej and thanks for the quick reply!
LIBVIRT_INP chain was missing.
I had to restart libvirtd and then I could run "vagrant up" successfully.
The culprit is:
libvirtd starts and crates the chain, after that shorewall starts and clears everything.
I was able to reproduce this.
And the init startup sequence is indeed to first start libvirtd and some time after that shorewall is started - stupid problem which luckily can be resolved fairly easy.
I don't understand one comment from you though: