qemu kvm VM necesita acceder a Internet mediante un puente wifi

qemu kvm VM necesita acceder a Internet mediante un puente wifi

Tengo algunas máquinas virtuales Qemu KVM (principalmente CentOS y Debians) y mi host es Ubuntu. Configuré las redes de máquinas virtuales con virtio virbr0 y también lo hice funcionar creando una interfaz virtual, conectando las máquinas virtuales a esa interfaz virtual (repartiendo IP con dnsmasq) y realizando NAT a través del host.

Ahora, con el fin de aprender, realmente quería crear un puente, agregar mi interfaz wifi como uno de los puertos y conectar mis máquinas virtuales al puente, pero no tuve éxito. Como el tipo mencionado anteriormente, también usé Debiantutorial de puentepara intentar hacer que ebtables "enmascare" mi dirección MAC de VM (ya que el AP no aceptará una MAC diferente a la que se autenticó previamente). Pero mi problema es que ni siquiera pude agregar mi wifi como puerto puente.

mi /etc/network/interfaces:

auto lo
iface lo inet loopback

# this is my wifi card (god knows why udev gave this name)
auto wlx44334c371663
iface wlx44334c371663 inet manual

# of course I added my wifi real MAC in bridge_hw option
auto br0
iface br0 inet dhcp
        pre-up iwconfig wlx44334c371663 essid myESSID
        bridge_hw 11:11:11:11:11:11
        bridge_ports wlx44334c371663
        bridge_stp off
        bridge_waitport 0
        bridge_fd 0
        bridge_maxwait 0

Cuando lo comienzo:

$ sudo ifup br0

Waiting for a max of 0 seconds for wlx44334c371663 to become available.
can't add wlx44334c371663 to bridge br0: Operation not supported
Internet Systems Consortium DHCP Client 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/br0/11:11:11:11:11:11
Sending on   LPF/br0/11:11:11:11:11:11
Sending on   Socket/fallback
DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 3 (xid=0xe1868a4f)
DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 8 (xid=0xe1868a4f)
DHCPDISCOVER on br0 to 255.255.255.255 port 67 interval 8 (xid=0xe1868a4f)
...

Fíjate ahí arriba:

No se puede agregar wlx44334c371663 al puente br0: operación no compatible

Por supuesto, cuando reviso los puentes, mi wifi no es una interfaz de br0:

$ brctl show
bridge name bridge id           STP enabled interfaces
br0         8000.44334c371663   no
virbr0      8000.000000000000   yes

No parece importar si mi wifi está activado o desactivado cuando inicio br0, simplemente no lo agregará como una interfaz

Lo mismo sucede si intento agregar mi wifi usando brctl:

$ sudo brctl addif br0 wlx44334c371663
can't add wlx44334c371663 to bridge br0: Operation not supported

PD: este es un dispositivo wifi externo (rt2800usb), también tengo el wifi integrado de la computadora portátil (ath10k_pci) y ninguno parece funcionar. Sin embargo, Ethernet funciona (pero no tengo un cable Ethernet donde estoy). Entonces, ¿qué estoy haciendo mal?

información relacionada