
Solarflare
Server
Adapter
User
Guide
SR
‐
IOV
Virtualization
Using
KVM
Issue
20
©
Solarflare
Communications
2017
338
KVM
direct
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
an
interface
configuration
file
and
connect
the
VM
directly
to
the
Solarflare
adapter.
4
Create
a
configuration
file
for
the
required
Solarflare
PF
(
HWADDR
)
in
a
config
file
in
/etc/sysconfig/network
‐
scripts/ifcfg
‐
eth4
(this
example
uses
eth4):
DEVICE=eth4
TYPE=Ethernet
HWADDR=00:0F:53:21:00:60
BOOTPROTO=none
ONBOOT=yes
5
Bring
up
the
interface:
#
service
network
restart
6
On
the
host
machine,
edit
the
VM
XML
file:
#
virsh
edit
<vmname>
7
Add
the
interface
component
to
the
VM
XML
file:
<interface
type='direct'>
<source
dev='eth4'
mode='bridge'/>
<model
type=’virtio’/>
</interface>
8
Restart
the
VM
after
editing
the
XML
file.
#
virsh
start
<vmname>
9
The
bridged
interface
is
visible
when
viewed
from
the
GUI
Virtual
Machine
Manager: