Deploy on remote libvirt with macvlan

Hello!

New to vagrant and I’ve been trying to figure some things out. I have 3 hosts running stand alone kvm/libvirt that I can manage from my laptop. All hosts have vlan 101 configured, which is working fine and handing out dhcp addresses. This vlan runs separated from the rest of the network. I can manually create vm’s on each host on vlan101 and they get a dhcp in that subnet.

Vlan is setup with nmcli.
I’ve created a new network in virsh as follows:

<network>
  <name>vlan101</name>
  <uuid>uuid-string-bla-bla-bla</uuid>
  <forward dev="eno1.101" mode="bridge">
    <interface dev="eno1.101"/>
  </forward>
</network>

I created a Vagrant file, added this:

Vagrant.configure(“2”) do |config|
config.vm.provider :libvirt do |libvirt|
libvirt.host = “qemu+ssh://host01.internal.mydomain.org/system”
end
config.vm.box = “archlinux/archlinux”
end

I guess for the network I need to do something with config.vm.networkbut I have no idea really, I can’t even get the connection working to the remote host.

Unable to parse URI qemu://qemu+ssh://.....
I tried changing it to just the fqdn/system but then I get certificate errors. virt-manager connects via qemu+ssh but I don’t see how I can configure the libvirt plugin.

Could someone help me out here please? An example with the network config would be really appreciated too.

Thanks in advance!