<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I'd put the networking stuff, synergy and all that into some sort of
    "Potential improvements" section and link to related pages instead,
    to avoid filling the vfio page with unrelated content for the sake
    of having an entire guide in one place.<br>
    <br>
    About the bridge, double-check the output of `ip a` or `networkctl`
    if you're using systemd-networkd, to make sure that your bridge is
    properly setup as the primary network interface and that nothing
    else is trying to use eth0/enp0s0.<br>
    <br>
    Nicolas<br>
    <br>
    <div class="moz-cite-prefix">On 2016-04-18 18:56, Garland Key wrote:<br>
    </div>
    <blockquote
cite="mid:CAKPM86-peAdqYjzVH36=03_Lv7NeDSbqXNAP4iWzibLciYyfKg@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">I just tried this and as soon as I start the VM, my
        bridge on the host fails and defaults to the wired connection.<br>
        <br>
        I think that if the pci-passthrough wiki is going to talk about
        synergy as an input solution, then it should also discuss
        creating a bridge, since it's necessary in order to accomplish
        said goal.</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, Apr 18, 2016 at 6:22 PM, Jonas
          Camillus Jeppesen <span dir="ltr"><<a
              moz-do-not-send="true" href="mailto:jonascj@sdu.dk"
              target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:jonascj@sdu.dk">jonascj@sdu.dk</a></a>></span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <div>On a fresh Arch install (no desktop environment, no
                network manager) I added a bridge like this with
                systemd's networkd service: <a moz-do-not-send="true"
href="https://wiki.archlinux.org/index.php/Systemd-networkd#DHCP_with_two_distinct_IP"
                  target="_blank">https://wiki.archlinux.org/index.php/Systemd-networkd#DHCP_with_two_distinct_IP</a>
                . Then in virt-manager under network adapter I just
                choose "Specify shared device name" as "Network source"
                and type in "br0" which is the name I gave my bridge. <br>
                <br>
                This page is unnecessarily complicated it seems to me: <a
                  moz-do-not-send="true"
                  href="https://wiki.archlinux.org/index.php/QEMU#Networking"
                  target="_blank"><a class="moz-txt-link-freetext" href="https://wiki.archlinux.org/index.php/QEMU#Networking">https://wiki.archlinux.org/index.php/QEMU#Networking</a></a><br>
                <br>
                The Arch wiki page on vfio isn't really about networking
                in qemu/kvm, but a note could be added to visit the KVM
                and QEMU pages, and those could then be updated to
                mention this systemd-networkd example.<br>
                <br>
                On 04/18/2016 11:57 PM, Bronek Kozicki wrote:<br>
              </div>
              <blockquote type="cite">
                <div
                  style="width:100%;font-size:initial;font-family:Calibri,'Slate
Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">For

                  me setting up networking with an existing bridge "just
                  works", I wrote few days ago on this lis how I've set
                  it up on my machine. Hint: I do not use virsh
                  "networks" capabilities at all - none defined
                  (undefined the default one) and none started. Just my,
                  manually crafted bridge, explicitly used in VM
                  definitions.</div>
                <div
                  style="width:100%;font-size:initial;font-family:Calibri,'Slate
Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br>
                </div>
                <div
                  style="width:100%;font-size:initial;font-family:Calibri,'Slate
Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br>
                </div>
                <div
                  style="width:100%;font-size:initial;font-family:Calibri,'Slate
Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)">B.</div>
                <div
                  style="width:100%;font-size:initial;font-family:Calibri,'Slate
Pro',sans-serif,sans-serif;color:rgb(31,73,125);text-align:initial;background-color:rgb(255,255,255)"><br>
                </div>
                <table style="background-color:white;border-spacing:0px"
                  width="100%">
                  <tbody>
                    <tr>
                      <td colspan="2"
style="font-size:initial;text-align:initial;background-color:rgb(255,255,255)">
                        <div>
                          <div><b>From: </b>Garland Key</div>
                          <div><b>Sent: </b>Monday, 18 April 2016 22:21</div>
                          <div><b>To: </b>Nicolas Roy-Renaud;
                            vfio-users</div>
                          <div><b>Subject: </b>Re: [vfio-users]
                            [FEEDBACK NEEDED] Rewriting the Arch wiki
                            article</div>
                        </div>
                      </td>
                    </tr>
                  </tbody>
                </table>
                <br>
                <div>
                  <div dir="ltr">I'm an intermediate Linux user, so this
                    this stuff can be complicated to me sometimes. 
                    Right now I'm having trouble setting up a network
                    bridge that virt-manager will recognize.  I've
                    arrived at the conclusion that this simply isn't
                    possible on Arch.  That said, I can't find any
                    documentation on how to convince qemu to use an
                    existing network bridge.  If you're willing, please
                    add this information as well.  If you already know
                    how, any pointers would be greatly appreciated.<br>
                    <br>
                    Best,<br>
                    Garland</div>
                  <div class="gmail_extra"><br>
                    <div class="gmail_quote">On Mon, Apr 18, 2016 at
                      5:14 PM, Garland Key <span dir="ltr"><<a
                          moz-do-not-send="true"
                          href="mailto:david.garland.key@gmail.com"
                          target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:david.garland.key@gmail.com">david.garland.key@gmail.com</a></a>></span>
                      wrote:<br>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div dir="ltr">Please add what to do if you have
                          two identical GPUs.  Here is exactly what is
                          needed to make it work.<br>
                          <br>
                          - - - - - - - - - - - - - - - - - - - - - - -
                          - - - - - - - - - - - - - - - - -  <br>
                          <i><br>
                            <font face="monospace, monospace"><b>/etc/modprobe.d/vfio.conf</b></font></i><br>
                          <br>
                          <span style="font-family:monospace"><span
                              style="color:rgb(0,0,0)">    install
                              vfio-pci /sbin/vfio-pci-override-vga.sh </span><br>
                                options vfio-pci disable_vga=1
                            allow_unsafe_interrupts=1<br>
                            <br>
                          </span>- - - - - - - - - - - - - - - - - - - -
                          - - - - - - - - - - - - - - - - - - - - <span
                            style="font-family:monospace"><br>
                            <br>
                          </span><span
                            style="color:rgb(0,0,0);font-family:monospace"><b><i>/sbin/vfio-pci-override-vga.sh</i></b><br>
                          </span><span style="font-family:monospace"><br>
                                </span><span
                            style="font-family:monospace"><span
                              style="color:rgb(0,0,0)">#!/bin/sh </span><br>
                                <br>
                                for i in $(find /sys/devices/pci* -name
                            boot_vga); do <br>
                                        if [ $(cat $i) -eq 0 ]; then <br>
                                                GPU=$(dirname $i) <br>
                                                AUDIO=$(echo $GPU | sed
                            -e "s/0$/1/") <br>
                                               echo "vfio-pci" >
                            $GPU/driver_override <br>
                                                if [ -d $AUDIO ]; then <br>
                                                        echo "vfio-pci"
                            > $AUDIO/driver_override <br>
                                                fi <br>
                                        fi <br>
                                done <br>
                                <br>
                                modprobe -i vfio-pci<br>
                            <br>
                          </span>- - - - - - - - - - - - - - - - - - - -
                          - - - - - - - - - - - - - - - - - - - - <span
                            style="font-family:monospace"><br>
                            <br>
                          </span>Add the following to <i><font
                              face="monospace, monospace"><b>/etc/mkinitcpio.</b></font><b
                              style="font-family:monospace,monospace">conf</b></i><font
                            face="arial, helvetica, sans-serif"> and
                            then run </font><b
                            style="font-family:monospace,monospace"><i>mkinitcpio

                              -p linux</i></b><font face="monospace,
                            monospace"><b><br>
                            </b></font><span
                            style="font-family:monospace"><span
                              style="color:rgb(0,0,0)"><br>
                                  </span></span><span
                            style="font-family:monospace"><span
                              style="color:rgb(0,0,0)">BINARIES="/usr/bin/find

                              /usr/bin/dirname"</span><br>
                          </span><span style="color:rgb(0,0,0)"><font
                              face="monospace">   
                              FILES="/sbin/vfio-pci-override-vga.sh"</font><br>
                            <br>
                          </span>- - - - - - - - - - - - - - - - - - - -
                          - - - - - - - - - - - - - - - - - - - - <br>
                          <br>
                          <font face="arial, helvetica, sans-serif"><b>Tested

                              Hardware:</b><br>
                            <br>
                            Motherboard: <a moz-do-not-send="true"
                              href="https://www.asus.com/us/Motherboards/SABERTOOTH_X99/"
                              target="_blank">Asus Sabertooth X99</a><br>
                          </font>CPU<font face="arial, helvetica,
                            sans-serif">: <span style="color:rgb(0,0,0)"><a
                                moz-do-not-send="true"
href="http://ark.intel.com/products/82931/Intel-Core-i7-5930K-Processor-15M-Cache-up-to-3_70-GHz"
                                target="_blank">Intel Core i7-5930K</a><br>
                            </span></font>GPU 1: <a
                            moz-do-not-send="true"
                            href="http://www.newegg.com/Product/Product.aspx?Item=N82E16814125684"
                            target="_blank">GIGABYTE GeForce GTX 970 4GB
                            G1 Gaming OC Edition</a><br>
                          GPU 2: <a moz-do-not-send="true"
                            href="http://www.newegg.com/Product/Product.aspx?Item=N82E16814125684"
                            target="_blank">GIGABYTE GeForce GTX 970 4GB
                            G1 Gaming OC Edition</a><br>
                          RAM: <a moz-do-not-send="true"
                            href="http://www.newegg.com/Product/Product.aspx?Item=N82E16820233709"
                            target="_blank">32GB Corsair Dominator
                            Platinum DDR4 <font face="arial, helvetica,
                              sans-serif">(CMD16GX4M2A2666C15)</font></a><br>
                          <br>
                        </div>
                        <div class="gmail_extra"><br>
                          <div class="gmail_quote">On Tue, Apr 12, 2016
                            at 3:36 PM, Nicolas Roy-Renaud <span
                              dir="ltr"><<a moz-do-not-send="true"
                                href="mailto:nicolas.roy-renaud.1@ens.etsmtl.ca"
                                target="_blank">nicolas.roy-renaud.1@ens.etsmtl.ca</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex">
                              <div bgcolor="#FFFFFF" text="#000000"> I'm
                                currently planning a full rewrite of <a
                                  moz-do-not-send="true"
                                  href="https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF"
                                  target="_blank">the article on Arch
                                  wiki about PCI passthroughs</a> and,
                                as per Arch wiki guidelines, I'm
                                supposed get the approval of other users
                                before undergoing such comlex edits. If
                                anyone on this mailing list is an Arch
                                wiki collaborator or frequent user, I
                                would appreciate if you could <a
                                  moz-do-not-send="true"
href="https://wiki.archlinux.org/index.php/Talk:PCI_passthrough_via_OVMF#Page_rewrite"
                                  target="_blank">give me some feedback
                                  on the planned structure</a> and
                                propose additional sections or potential
                                user mistakes to highlight. My primary
                                objective here is to make most of what's
                                on Alex Williamson's blog more
                                straightforward and concise.<br>
                                <br>
                                I've already rewritten the first two
                                sections ("Prerequisites" and "Setting
                                up IOMMU"), and the rest of the article
                                should essentially follow the same basic
                                structure and style. Replies here or on
                                the wiki's discussion page would be much
                                appreciated.<span><font color="#888888"><br>
                                    <br>
                                    -Nicolas<br>
                                  </font></span></div>
                              <br>
_______________________________________________<br>
                              vfio-users mailing list<br>
                              <a moz-do-not-send="true"
                                href="mailto:vfio-users@redhat.com"
                                target="_blank">vfio-users@redhat.com</a><br>
                              <a moz-do-not-send="true"
                                href="https://www.redhat.com/mailman/listinfo/vfio-users"
                                rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
                              <br>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                  <br>
                </div>
                <br>
                <fieldset></fieldset>
                <br>
                <pre>_______________________________________________
vfio-users mailing list
<a moz-do-not-send="true" href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a>
<a moz-do-not-send="true" href="https://www.redhat.com/mailman/listinfo/vfio-users" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a>
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            _______________________________________________<br>
            vfio-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a><br>
            <a moz-do-not-send="true"
              href="https://www.redhat.com/mailman/listinfo/vfio-users"
              rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
vfio-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:vfio-users@redhat.com">vfio-users@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/vfio-users">https://www.redhat.com/mailman/listinfo/vfio-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>