Skip to content

Instantly share code, notes, and snippets.

@Brainiarc7
Created February 15, 2017 15:30

Revisions

  1. Brainiarc7 created this gist Feb 15, 2017.
    8 changes: 8 additions & 0 deletions ssdp-behind-macvtap-kvm-libvirtd.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@

    **Enable DLNA service discovery for media servers running on KVM hosts with bridged networking:**

    If you’re running a [DLNA](https://en.wikipedia.org/wiki/Digital_Living_Network_Alliance) - capable Media Server (Such as [Plex](https://www.plex.tv/) or [Mediatomb](http://mediatomb.cc/)) in a guest domain on a KVM/QEMU/libvirt-based hypervisor platform, make sure that the bridge you use to provide network access to the guest domain (such as [macvtap](http://virt.kernelnewbies.org/MacVTap)) is configured in the host OS such that the *allmulti* flag is enabled. Assuming your bridge is `macvtap0`, you would sign into the host and go about setting the appropriate flag as follows:

    $ sudo ip link set dev macvtap0 allmulticast on

    Without this configuration, not all multicast packets required for DLNA (particularly client discovery operations) will be sent over the bridge to the guest domain, resulting in the media server failing to operate as required (because SSDP is not very forgiving).