
Solarflare
Server
Adapter
User
Guide
SR
‐
IOV
Virtualization
Using
KVM
Issue
20
©
Solarflare
Communications
2017
334
This
configuration
uses
standard
Linux
tools
for
configuration
and
needs
only
a
virtualized
environment
and
guest
operating
system.
Performance
(latency/throughput)
will
not
be
as
good
as
a
network
‐
hostdev
configuration
because
network
traffic
must
pass
via
the
host
kernel.
Figure
50:
KVM
‐
libvirt
bridged
KVM
libvirt
bridged
‐
Configuration
1
Ensure
the
Solarflare
adapter
driver
(sfc.ko)
is
installed
on
the
host.
2
In
the
host,
configure
the
PF:
#
sfboot
switch
‐
mode=default
pf
‐
count=1
The
sfboot
settings
shown
above
are
the
default
(shipping
state)
settings
for
the
SFN7000
series
adapter.
A
cold
reboot
of
the
server
is
only
required
when
changes
are
made
using
sfboot
.
3
Create
virtual
machines:
VMs
can
be
created
from
the
standard
Linux
virt
‐
manager
GUI
interface
or
the
equivalent
virsh
command
line
tool.
As
root,
run
the
command
virt
‐
manager
from
a
terminal
to
start
the
GUI
interface.
A
VM
can
also
be
created
from
an
existing
VM
XML
file.
The
following
procedure
assumes
the
VM
is
created.
The
example
procedure
will
create
a
bridge
‘br1’
and
network
‘host
‐
network’
to
connect
the
VM
to
the
Solarflare
adapter
via
the
bridge.
4
Define
a
bridge
in
/etc/sysconfig/network
‐
scripts/ifcfg
‐
br1
DEVICE=
br1
TYPE=Bridge
BOOTPROTO=none
ONBOOT=yes
DELAY=0
NM_CONTROLLED=no