qemu kvm VM needs to access Internet by bridging wifi'bridged' wifi for qemu kvm (ebtables / parprouted /...

What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?

What is the right way to float a home lab?

Why is there a need to modify system call tables in Linux?

Is there an evolutionary advantage to having two heads?

Scala list with same adjacent values

Is American Express widely accepted in France?

Why does my electric oven present the option of 40A and 50A breakers?

Applicants clearly not having the skills they advertise

The deliberate use of misleading terminology

Coding Challenge Solution - Good Range

The qvolume of an integer

Does a component pouch automatically contain components?

How to properly maintain eye contact with people that have distinctive facial features?

What is a simple, physical situation where complex numbers emerge naturally?

What is the intuition behind uniform continuity?

Looking for an old image of designing a cpu with plan laid out / being edited on a literal floor

Looking after a wayward brother in mother's will

Opposite of "Squeaky wheel gets the grease"

Is it possible to kill all life on Earth?

Humans meet a distant alien species. How do they standardize? - Units of Measure

Can I ask a publisher for a paper that I need for reviewing

Relativistic resistance transformation

TV show or movie: Diseased people are exiled to a spaceship

Is there any Biblical Basis for 400 years of silence between Old and New Testament?



qemu kvm VM needs to access Internet by bridging wifi


'bridged' wifi for qemu kvm (ebtables / parprouted / etc)eth0 not getting disabled after setting up br0 interfaceOutgoing masquerade address changes after adding a second interface to the bridgeHow to run a script at startup before networking is enabled?Why assign MAC and IP addresses on Bridge interfaceLinux: using a virtual network inside a bridgeNetworking with Linux bridgesBridge two ethernet interfaces in virtualbox. CentOS 7QEMU Deb9 guest graphical install fails to get DHCP reply during installHow to connect 2 virtual bridges so traffic goes from one to the other?Linux bridge stops working after adding 2nd interface






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















My question is very similar to this. But it didn't help me. I have some Qemu KVM virtual machines (CentOSs and Debians mostly) and my host is an Ubuntu. I configured the VMs networks with virtio virbr0, and I also made it work by creating a virtual interface, connecting the VMs to that virtual interface (dolling out IPs with dnsmasq) and NATing traffic through the host.



Now, for the purposing of learning, I really wanted to create a bridge, add my wifi interface as one of the ports and connect my VMs into the bridge, but I wasn't successful. As the guy referred above, I also used Debian's bridge tutorial to try to make ebtables "masquerade" my VM MAC address (as the AP won't accept a different MAC from the one that previously authenticated). But my problem is that I couldn't even add my wifi as the bridge port.



my /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


When I start it:



$ 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)
...


Notice up there:




can't add wlx44334c371663 to bridge br0: Operation not supported




Of course, when I check the bridges, my wifi is not one interface of br0:



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


It doesn't seem to matter if my wifi is up or down when I start br0, it just won't add it as one interface



The same happens if I try to add my wifi using brctl:



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


PS.: this is an external wifi device (rt2800usb), I also have the laptop onboard wifi (ath10k_pci) and neither seem to work. The ethernet works though (but I have no ethernet cable where I am). So, what am I doing wrong?










share|improve this question





























    0















    My question is very similar to this. But it didn't help me. I have some Qemu KVM virtual machines (CentOSs and Debians mostly) and my host is an Ubuntu. I configured the VMs networks with virtio virbr0, and I also made it work by creating a virtual interface, connecting the VMs to that virtual interface (dolling out IPs with dnsmasq) and NATing traffic through the host.



    Now, for the purposing of learning, I really wanted to create a bridge, add my wifi interface as one of the ports and connect my VMs into the bridge, but I wasn't successful. As the guy referred above, I also used Debian's bridge tutorial to try to make ebtables "masquerade" my VM MAC address (as the AP won't accept a different MAC from the one that previously authenticated). But my problem is that I couldn't even add my wifi as the bridge port.



    my /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


    When I start it:



    $ 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)
    ...


    Notice up there:




    can't add wlx44334c371663 to bridge br0: Operation not supported




    Of course, when I check the bridges, my wifi is not one interface of br0:



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


    It doesn't seem to matter if my wifi is up or down when I start br0, it just won't add it as one interface



    The same happens if I try to add my wifi using brctl:



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


    PS.: this is an external wifi device (rt2800usb), I also have the laptop onboard wifi (ath10k_pci) and neither seem to work. The ethernet works though (but I have no ethernet cable where I am). So, what am I doing wrong?










    share|improve this question

























      0












      0








      0








      My question is very similar to this. But it didn't help me. I have some Qemu KVM virtual machines (CentOSs and Debians mostly) and my host is an Ubuntu. I configured the VMs networks with virtio virbr0, and I also made it work by creating a virtual interface, connecting the VMs to that virtual interface (dolling out IPs with dnsmasq) and NATing traffic through the host.



      Now, for the purposing of learning, I really wanted to create a bridge, add my wifi interface as one of the ports and connect my VMs into the bridge, but I wasn't successful. As the guy referred above, I also used Debian's bridge tutorial to try to make ebtables "masquerade" my VM MAC address (as the AP won't accept a different MAC from the one that previously authenticated). But my problem is that I couldn't even add my wifi as the bridge port.



      my /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


      When I start it:



      $ 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)
      ...


      Notice up there:




      can't add wlx44334c371663 to bridge br0: Operation not supported




      Of course, when I check the bridges, my wifi is not one interface of br0:



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


      It doesn't seem to matter if my wifi is up or down when I start br0, it just won't add it as one interface



      The same happens if I try to add my wifi using brctl:



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


      PS.: this is an external wifi device (rt2800usb), I also have the laptop onboard wifi (ath10k_pci) and neither seem to work. The ethernet works though (but I have no ethernet cable where I am). So, what am I doing wrong?










      share|improve this question














      My question is very similar to this. But it didn't help me. I have some Qemu KVM virtual machines (CentOSs and Debians mostly) and my host is an Ubuntu. I configured the VMs networks with virtio virbr0, and I also made it work by creating a virtual interface, connecting the VMs to that virtual interface (dolling out IPs with dnsmasq) and NATing traffic through the host.



      Now, for the purposing of learning, I really wanted to create a bridge, add my wifi interface as one of the ports and connect my VMs into the bridge, but I wasn't successful. As the guy referred above, I also used Debian's bridge tutorial to try to make ebtables "masquerade" my VM MAC address (as the AP won't accept a different MAC from the one that previously authenticated). But my problem is that I couldn't even add my wifi as the bridge port.



      my /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


      When I start it:



      $ 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)
      ...


      Notice up there:




      can't add wlx44334c371663 to bridge br0: Operation not supported




      Of course, when I check the bridges, my wifi is not one interface of br0:



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


      It doesn't seem to matter if my wifi is up or down when I start br0, it just won't add it as one interface



      The same happens if I try to add my wifi using brctl:



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


      PS.: this is an external wifi device (rt2800usb), I also have the laptop onboard wifi (ath10k_pci) and neither seem to work. The ethernet works though (but I have no ethernet cable where I am). So, what am I doing wrong?







      linux wifi kvm qemu bridge






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 25 mins ago









      Adriano_epifasAdriano_epifas

      1083




      1083






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f521874%2fqemu-kvm-vm-needs-to-access-internet-by-bridging-wifi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f521874%2fqemu-kvm-vm-needs-to-access-internet-by-bridging-wifi%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Nicolae Petrescu-Găină Cuprins Biografie | Opera | In memoriam | Varia | Controverse, incertitudini...