Bridged network inside a container for VMs

So I successfully made and run a VM inside a container using libvirt, the only problem is a network. I want to use a bridged network for VMs but I’m not sure how to do it. I tried to create a bridge inside the container itself but when I linked it to the interface something broke and the container’s IP became unavailable. Do i need to create a bridge on the host and pass it to the container? Or maybe I can use the existing host’s bridge that is used for containers network?

Is this LXC or LXD container?

LXC.
I got it working, I made a second interface for the container to the same bridge:

Container interface

lxc.net.0.type = veth
lxc.net.0.link = br202
lxc.net.0.flags = up
lxc.net.0.hwaddr = 00:16:3e:02:02:03

libvirt interface

lxc.net.1.type = veth
lxc.net.1.link = br202
lxc.net.1.flags = up
lxc.net.1.hwaddr = 00:16:3e:02:02:04

Then I created a bridge in the container for eth1 and used it for VM. Everything works fine so far. I don’t know if this is the right way though.