I would like to run Whonix directly using QEMU instead of using libvirt and I want to manually setup internal and external network. Using libvirt I would need to run those commands:

virsh net-define Whonix-External.xml
virsh net-define Whonix-Internal.xml
virsh net-start Whonix-External.xml
virsh net-start Whonix-Internal.xml

Whonix-External.xml:

<network>
  <name>Whonix-External</name>
  <forward mode='nat'/>
  <bridge name='virbr1' stp='on' delay='0'/>
  <ip address='10.0.2.2' netmask='255.255.255.0'/>
</network>

Whonix-Internal.xml:

<network>
  <name>Whonix-Internal</name>
  <bridge name='virbr2' stp='on' delay='0'/>
</network>

I only know that I have to use ip link and ip tuntap commands for that but I’m not even sure where to start, especially that Whonix-Gateway uses both networks and both Whonix-Gateway and Whonix-Workstation share Whonix-Internal network. I also know I will have to add -netdev and -device options to the QEMU command but I don’t know how to make the VM pick the right network e.g. how to tell Whonix-Workstation to use Whonix-Internal instead of Whonix-External. If there are any other informations needed let me know and I will edit the post if needed.