
Solarflare
Server
Adapter
User
Guide
SR
‐
IOV
Virtualization
Using
KVM
Issue
20
©
Solarflare
Communications
2017
342
The
above
example
is
the
file
ifcfg
‐
eth6
and
identifies
the
MAC
address
assigned
to
the
VF.
One
file
is
required
for
each
VF.
7
On
the
host
machine,
edit
the
VM
XML
file:
#
virsh
edit
<vmname>
8
Add
the
interface
component
to
the
VM
XML
file
e.g:
<interface
type='direct'>
<source
dev='eth6'
mode='passthrough'/>
<model
type='virtio'/>
</interface>
One
interface
type
component
is
required
for
each
VF.
9
Restart
the
VM
after
editing
the
XML
file.
#
virsh
start
<vmname>
The
passed
through
VF
interface
is
visible
when
viewed
from
the
GUI
Virtual
Machine
Manager
Figure
55:
Virtual
Machine
Manager
‐
Showing
the
passthrough
interface
XML
Description
The
following
(example)
extract
is
from
the
VM
XML
file
after
a
VF
has
been
passed
through
to
the
guest
using
the
procedure
above
(line
numbers
have
been
added
for
ease
of
description):
1.
<interface
type='direct'>
2.
<mac
address='52:54:00:96:40:28'/>
3.
<source
dev='eth6'
mode='passthrough'/>
4.
<model
type='virtio'/>
5.
<address
type='pci'
domain='0x0000'
bus='0x00'
slot='0x07'
function='0x0'/>
6.
</interface>