Results 1 to 7 of 7

Thread: Bridging wifi to kvm.

  1. #1
    Join Date
    Jul 2020
    Posts
    22

    Default Bridging wifi to kvm.

    I'm switching from vmware to kvm ..or trying to. Is there a way to bridge a br0 interface or something to the wifi adapter interface? In vmware or virtualbox you can bridge to the wifi adapter easy so guest are dropped on the local LAN to get their dhcp address and communicate with the other LAN computers without any nat. I can't find out a way to do this on tumbleweed and or kvm with virt manager. Is it possible to bridge to a wifi adapter as I'm seeing it might not be possible but ..how does virtual box do it on linux?

  2. #2
    Join Date
    Mar 2011
    Location
    Sauerland
    Posts
    4,736

    Default AW: Bridging wifi to kvm.


  3. #3
    Join Date
    Sep 2012
    Posts
    5,859

    Default Re: Bridging wifi to kvm.

    Quote Originally Posted by Neal View Post
    In vmware or virtualbox you can bridge to the wifi adapter easy
    I just tested on VB and it does MAC NAT (if you look at frames on destination system they arrive with MAC of WiFi adapter, not VM).
    I can't find out a way to do this on tumbleweed and or kvm with virt manager.
    On the low level you can use ebtables to implement MAC NAT. See e.g. https://ebtables.netfilter.org/examp...ic.html#ex_nat. Whether libvirt offers high level configuration to do it I do not know (I do not use it and quick search does not show anything). If there is possibility to run custom hooks when VM is started it should be relatively straightforward to implement ... apparently it supports hooks: https://libvirt.org/hooks.html.

  4. #4
    Join Date
    Jul 2020
    Posts
    22

    Default Re: AW: Bridging wifi to kvm.

    Quote Originally Posted by Sauerland View Post

    That the doc I was working with; I can make the bridge with the brctl commands but not add the wifi interface...no errors. I've tried the same with the newer supported way of using the ip commands as in this article.

    https://wiki.archlinux.org/index.php/Network_bridge

    The bridge can be created but when I try to add the wifi interface to the bridge it says it can't enslave that interface. I thought virt-manager had a proxyarp feature, one article on debian shows using something called parprouted but there's no such opensuse daemon. I have hard time believing vmware and VB can do this so easily!


  5. #5
    Join Date
    Sep 2012
    Posts
    5,859

    Default Re: AW: Bridging wifi to kvm.

    Quote Originally Posted by Neal View Post
    I have hard time believing vmware and VB can do this so easily!
    Well, features do not grow on trees, someone must (feel the need to) implement them. Ever heard about scratching own itch?
    I thought virt-manager had a proxyarp feature
    According to https://libvirt.org/firewall.html, this is planned for future. Actually, parprouted is needed only for dynamic addresses. If you can use static IP addresses for your VM, you could simply add necessary configuration in QEMU script.
    one article on debian shows using something called parprouted but there's no such opensuse daemon
    You could contribute by packaging it for openSUSE. It is not really that hard. Of course, Debian is using different network configuration framework, so this article will also need to be adapted to whatever openSUSE is using.

    Or may be you need to consider whether you really need bridge in the first place.

  6. #6
    Join Date
    Jul 2020
    Posts
    22

    Default Re: AW: Bridging wifi to kvm.

    Quote Originally Posted by arvidjaar View Post
    Well, features do not grow on trees, someone must (feel the need to) implement them. Ever heard about scratching own itch?

    According to https://libvirt.org/firewall.html, this is planned for future. Actually, parprouted is needed only for dynamic addresses. If you can use static IP addresses for your VM, you could simply add necessary configuration in QEMU script.

    You could contribute by packaging it for openSUSE. It is not really that hard. Of course, Debian is using different network configuration framework, so this article will also need to be adapted to whatever openSUSE is using.

    Or may be you need to consider whether you really need bridge in the first place.
    I have zero desire to be involved at the level of packaging software. I'm just a end user..desktop mostly but have a few vm/s I use for various things. I was shocked because it's been my experience in opensource that they generally find a way to do something first ..then the vendor steals it. I'll most likely just pull a ethernet cable from the room the router/firewall is in....or perhaps it's time to build me a decent kvm/proxmox bare metal server to host the vm/s on...something like a intel nuc. Thank again!

  7. #7
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    29,412
    Blog Entries
    15

    Default Re: AW: Bridging wifi to kvm.

    Quote Originally Posted by Neal View Post
    I have zero desire to be involved at the level of packaging software. I'm just a end user..desktop mostly but have a few vm/s I use for various things. I was shocked because it's been my experience in opensource that they generally find a way to do something first ..then the vendor steals it. I'll most likely just pull a ethernet cable from the room the router/firewall is in....or perhaps it's time to build me a decent kvm/proxmox bare metal server to host the vm/s on...something like a intel nuc. Thank again!
    Hi
    In the past I've used a small wireless router, (GL.iNET GL-MT300N) very flexible and configurable and can run off the USB port for power....
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •