Hello guys, i'm trying to setup an kvm based virtual machine that will serve as an server for different stuff, the problem I have here it is, i want it to be exposed to the network directly and to do that I have to create an bridge, bridge the physical device and create an tap device for the VM. My Arch setup used dhcpcd which runs as an service and that work well when i don't need to create VM's.
The way i set this up is like this:
I create the bridge with
ip link add br0 then add the physical interface to it with
ip link set eth0 master br0, these work without an problem, then i add an tap device with
ip tuntap add tap0 mode tap user myuser. Here i try to bring up the
tap0 interface and when i do that apparently it works, no error but if i do
ip addr the interface is still down. If i continue to add it to the bridge no errors are shown, even though i read it should be up to be able to add it to the bridge and it won't go into the UP state no mather what. One other thing i notice is that the host looses all network connectivity(is this supposed to happen?). If i do
ip addr then i see that the physical card still has an ip address bridge has none and the tap interface as well doesn't have anything, the VM starts but I haven't installed the drivers to check, should i even bother since
tap0 doesn't go UP? I have also tried to do an tap device and set
dhcpcd to run on that interface but it fails with an error, even though the service for the physical device is stopped. I am unsure about this way if i'm supposed to use it like this. Please help.
Also as an source used the Arch wiki and this: http://www.linux-kvm.org/page/Networking#Public_Bridge, other resources didn't seem usefull since they have the same info from what i see. I have done this kind of config on CentOS and there it didn't seem to have problems the tap devices would go UP.