[vfio-users] [FEEDBACK NEEDED] Rewriting the Arch wiki article

Garland Key david.garland.key at gmail.com
Tue Apr 19 15:37:07 UTC 2016


Thanks to Bronek and everyone else who gave me tips on solving this
networking issue.  I ditched Network Manager, and just used
systemd-networkd and this worked.

On Tue, Apr 19, 2016 at 4:40 AM, Bronek Kozicki <brok at spamcop.net> wrote:

> First xml is a network definition file - as said earlier, they are one way
> for managing libvirt networking, which I do not use. Meaning, you do not
> need it if you want to do it "Bronek's way". However you may need to ensure
> that qemu helper is defined in libvirt configuration - look my messages
> from past few days.
>
> Second xml is part of VM definition, a sibling to hostdev nodes etc. You
> can create this part in virt-manager GUI, no need to edit xml by hand -
> just make sure to select the bridge you have created.
>
>
>
> B.
>
>
>
> *From: *Garland Key
> *Sent: *Monday, 18 April 2016 23:41
> *To: *Bronek Kozicki
> *Cc: *vfio-users
> *Subject: *Re: [vfio-users] [FEEDBACK NEEDED] Rewriting the Arch wiki
> article
>> Sorry to pester you with so many questions.  I appreciate your help.
>> *Where should the following configuration be placed?  What is the config
> filename and path?*
>
>
> I've done the same. Bridge created with NM and used by the VM. You
> should be able to just select the bridge device. That's the resulting
> XML for me:
>
> <network connections='1'>
>   <name>default</name>
>   <uuid>278badf4-d33e-493e-b604-083b3dcc2804</uuid>
>   <forward mode='bridge'/>
>   <bridge name='br0'/>
> </network>
>>
>
> *Is this placed into your VM XML via virsh?*
>>     <interface type='bridge'>
>       <mac address='52:54:01:hi:dd:en'/>
>       <source bridge='br0'/>
>       <model type='virtio'/>
>       <driver queues='8'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x18'
> function='0x0'/>
>     </interface>
>
> On Mon, Apr 18, 2016 at 5:57 PM, Bronek Kozicki <brok at spamcop.net> wrote:
>
>> 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.
>>
>>
>> B.
>>
>> *From: *Garland Key
>> *Sent: *Monday, 18 April 2016 22:21
>> *To: *Nicolas Roy-Renaud; vfio-users
>> *Subject: *Re: [vfio-users] [FEEDBACK NEEDED] Rewriting the Arch wiki
>> article
>>
>> 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.
>>
>> Best,
>> Garland
>>
>> On Mon, Apr 18, 2016 at 5:14 PM, Garland Key <david.garland.key at gmail.com
>> > wrote:
>>
>>> Please add what to do if you have two identical GPUs.  Here is exactly
>>> what is needed to make it work.
>>>
>>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> - - - -
>>>
>>> */etc/modprobe.d/vfio.conf*
>>>
>>>     install vfio-pci /sbin/vfio-pci-override-vga.sh
>>>     options vfio-pci disable_vga=1 allow_unsafe_interrupts=1
>>>
>>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> - - - -
>>>
>>> */sbin/vfio-pci-override-vga.sh*
>>>
>>>     #!/bin/sh
>>>
>>>     for i in $(find /sys/devices/pci* -name boot_vga); do
>>>             if [ $(cat $i) -eq 0 ]; then
>>>                     GPU=$(dirname $i)
>>>                     AUDIO=$(echo $GPU | sed -e "s/0$/1/")
>>>                    echo "vfio-pci" > $GPU/driver_override
>>>                     if [ -d $AUDIO ]; then
>>>                             echo "vfio-pci" > $AUDIO/driver_override
>>>                     fi
>>>             fi
>>>     done
>>>
>>>     modprobe -i vfio-pci
>>>
>>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> - - - -
>>>
>>> Add the following to */etc/mkinitcpio.conf* and then run *mkinitcpio -p
>>> linux*
>>>
>>>     BINARIES="/usr/bin/find /usr/bin/dirname"
>>>     FILES="/sbin/vfio-pci-override-vga.sh"
>>>
>>> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>>> - - - -
>>>
>>> *Tested Hardware:*
>>>
>>> Motherboard: Asus Sabertooth X99
>>> <https://www.asus.com/us/Motherboards/SABERTOOTH_X99/>
>>> CPU: Intel Core i7-5930K
>>> <http://ark.intel.com/products/82931/Intel-Core-i7-5930K-Processor-15M-Cache-up-to-3_70-GHz>
>>> GPU 1: GIGABYTE GeForce GTX 970 4GB G1 Gaming OC Edition
>>> <http://www.newegg.com/Product/Product.aspx?Item=N82E16814125684>
>>> GPU 2: GIGABYTE GeForce GTX 970 4GB G1 Gaming OC Edition
>>> <http://www.newegg.com/Product/Product.aspx?Item=N82E16814125684>
>>> RAM: 32GB Corsair Dominator Platinum DDR4 (CMD16GX4M2A2666C15)
>>> <http://www.newegg.com/Product/Product.aspx?Item=N82E16820233709>
>>>
>>>
>>> On Tue, Apr 12, 2016 at 3:36 PM, Nicolas Roy-Renaud <
>>> nicolas.roy-renaud.1 at ens.etsmtl.ca> wrote:
>>>
>>>> I'm currently planning a full rewrite of the article on Arch wiki
>>>> about PCI passthroughs
>>>> <https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF> 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 give
>>>> me some feedback on the planned structure
>>>> <https://wiki.archlinux.org/index.php/Talk:PCI_passthrough_via_OVMF#Page_rewrite>
>>>> 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.
>>>>
>>>> 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.
>>>>
>>>> -Nicolas
>>>>
>>>> _______________________________________________
>>>> vfio-users mailing list
>>>> vfio-users at redhat.com
>>>> https://www.redhat.com/mailman/listinfo/vfio-users
>>>>
>>>>
>>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160419/8f139e82/attachment.htm>


More information about the vfio-users mailing list