Getting Started
Getting Started
Getting Started
Release
14.1R6
Modified: 2015-10-29
ii
Table of Contents
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Documentation and Release Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Documentation Feedback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Requesting Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Self-Help Online Tools and Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Opening a Case with JTAC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
Chapter 1
vMX Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
vMX Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Benefits and Uses of vMX Routers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Architecture of a vMX Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Virtualization Techniques for the vMX VFP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Paravirtualization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
PCI Passthrough with SR-IOV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Automation for vMX Routers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Licensing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Chapter 2
Setting Up vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Minimum Hardware and Software Requirements . . . . . . . . . . . . . . . . . . . . . . . . . 23
vMX Package Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Chapter 3
Installing vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Preparing the System to Install vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Upgrading the Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Upgrading to libvirt 1.2.8 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Installing vMX for Different Use Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Installing vMX for Lab Simulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Installing vMX for Low-Bandwidth Applications . . . . . . . . . . . . . . . . . . . . . . . 31
Installing vMX for High-Bandwidth Applications . . . . . . . . . . . . . . . . . . . . . . . 33
Configuring the vMX Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Configuring the Host . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Configuring the VCP VM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Configuring the VFP VM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Configuring Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Deploying vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Connecting to VMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Logging In to VCP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Logging In to VFP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
iii
Chapter 4
Managing vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Managing vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Controlling vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Deploying vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Managing vMX Deployments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Specifying the Temporary File Directory . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Specifying the Environment File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Configuring Logging Options for vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Connecting to Console Port for the VMs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Getting Help for the Script Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Binding virtio Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Setting Up the Device Bindings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Creating Device Bindings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Deleting Device Bindings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Verifying Device Bindings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Chapter 5
Troubleshooting vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Viewing VFP Statistics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Viewing VFP Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Troubleshooting VFP and VCP Connection Establishment . . . . . . . . . . . . . . . . . . 53
Verifying Whether VMs Are Running . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Viewing CPU Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Verifying BIOS Settings for SR-IOV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
iv
List of Figures
Chapter 1
vMX Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Figure 1: Architecture of a vMX Instance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Chapter 4
Managing vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 2: Binding Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
vi
List of Tables
About the Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Table 1: Notice Icons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Table 2: Text and Syntax Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Chapter 1
vMX Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Table 3: Considerations for Choosing a Virtualization Technique . . . . . . . . . . . . . . 18
Table 4: Application Packages for Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Chapter 2
Setting Up vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Table 5: Minimum Hardware Requirements for vMX . . . . . . . . . . . . . . . . . . . . . . . 23
Table 6: Minimum Software Requirements for vMX . . . . . . . . . . . . . . . . . . . . . . . . 24
Table 7: vMX Package Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Chapter 3
Installing vMX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Table 8: Sample Configurations for Use Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
vii
viii
To obtain the most current version of all Juniper Networks technical documentation,
see the product documentation page on the Juniper Networks website at
http://www.juniper.net/techpubs/.
If the information in the latest release notes differs from the information in the
documentation, follow the product Release Notes.
Juniper Networks Books publishes books by Juniper Networks engineers and subject
matter experts. These books go beyond the technical documentation to explore the
nuances of network architecture, deployment, and administration. The current list can
be viewed at http://www.juniper.net/books.
Documentation Conventions
Table 1 on page x defines notice icons used in this guide.
ix
Meaning
Description
Informational note
Caution
Warning
Laser warning
Tip
Best practice
Table 2 on page x defines the text and syntax conventions used in this guide.
Description
Examples
Description
Examples
| (pipe symbol)
broadcast | multicast
# (pound sign)
[ ] (square brackets)
; (semicolon)
[edit]
routing-options {
static {
route default {
nexthop address;
retain;
}
}
}
GUI Conventions
Bold text like this
Documentation Feedback
We encourage you to provide feedback, comments, and suggestions so that we can
improve the documentation. You can provide feedback by using either of the following
methods:
Online feedback rating systemOn any page at the Juniper Networks Technical
Documentation site at http://www.juniper.net/techpubs/index.html, simply click the
stars to rate the content, and use the pop-up form to provide us with information about
your experience. Alternately, you can use the online feedback form at
http://www.juniper.net/techpubs/feedback/.
xi
JTAC hours of operationThe JTAC centers have resources available 24 hours a day,
7 days a week, 365 days a year.
Find solutions and answer questions using our Knowledge Base: http://kb.juniper.net/
To verify service entitlement by product serial number, use our Serial Number Entitlement
(SNE) Tool: https://tools.juniper.net/SerialNumberEntitlementSearch/
xii
xiii
xiv
CHAPTER 1
vMX Overview
Licensing on page 20
vMX Overview
The vMX router is a virtual version of the MX Series 3D Universal Edge Router. Like the
MX Series router, the vMX router runs the Junos Operating System (Junos OS) and
supports Junos OS packet handling and forwarding modeled after the Trio chipset.
Configuration and management of vMX routers are the same as for physical MX Series
routers, allowing you to add the vMX router to a network without having to update your
operations support systems (OSS).
You install vMX software components on an industry-standard x86 server running a Linux
operating system, applicable third-party software, and the Kernel-based Virtual Machine
(KVM) hypervisor. vMX software components come in one software package that you
install by running an orchestration script included with the package. The orchestration
script uses a configuration file that you customize for your vMX deployment. You can
install multiple vMX instances on one server.
Related
Documentation
15
You can deploy the vMX router to meet some specific network edge requirements, such
as:
Related
Documentation
16
Network simulation
Linux, third-party software, and the KVM hypervisor in the middle layer
The server at the physical layer contains the physical NICs, CPUs, memory, and Ethernet
management port. The middle layer contains the Linux operating system, applicable
third-party software, and the hypervisor. The physical and middle layers form the host.
The vMX instance at the top layer contains two separate VMs for the virtual forwarding
plane (VFP) and the virtual control plane (VCP). The VFP VM runs the virtual Trio
forwarding plane software and the VCP VM runs Junos OS.
The hypervisor presents the physical NIC to the VFP VM as a virtual NIC. The orchestration
script maps each virtual NIC to a vMX interface that you specify in the configuration file.
After you run the orchestration script and the vMX instance is created, you use the Junos
OS CLI to configure these vMX interfaces in the VCP. The vMX router supports the
following types of interfaces:
17
The VCP VM and VFP VM require Layer 2 connectivity to communicate with each other.
The vMX orchestration script automatically configures an internal bridge for each vMX
instance to enable this communication. Because the internal bridge is local to the server,
you do not need to specify any configuration values, such as IP addresses.
The VCP VM and VFP VM also require Layer 2 connectivity to communicate with the
Ethernet management port on the server. You must specify virtual Ethernet interfaces
with unique IP addresses and MAC addresses for both the VFP and VCP in the
configuration file to enable the orchestration script to set up an external bridge for a vMX
instance. Ethernet management traffic for all vMX instances enters the server through
the Ethernet management port.
The way network traffic passes from the physical NIC to the virtual NIC depends on the
virtualization technique that you configure.
Related
Documentation
Choose a technique based on how you want to use the vMX router. SeeTable 3 on page 18.
Paravirtualization Technique
Network simulation
Low-throughput applications
High-throughput applications
VM Mobility
Host Requirements
18
Paravirtualization
In a paravirtualized router, the VM and the host work together to efficiently move packets
from the physical NIC to the application in the VM. You implement paravirtualization on
the vMX router by configuring virtio, a technique that the KVM hypervisor supports that
optimizes network and disk operations for the VM. Both the VFP VM and the host contain
virtio drivers that interact to move packets. You must provide the following information
in the configuration file for each vMX interface:
Junos OS name
If you want to move the VM from one server to another, you can do so without
reconfiguration, provided the names and MAC addresses of each interface remain the
same.
Junos OS name
Because you create a direct connection between a virtual NIC and a physical NIC, you
cannot move a VM from one host to another. If you need to move a VM to another host,
you must install a new vMX instance on that host, and delete the vMX instance on the
original host.
Related
Documentation
19
Related
Documentation
Licensing
Licenses are required for using vMX features. When you order licenses, this information
is bound to a customer ID. If you did not order the licenses, contact your account team
or Juniper Networks Customer Care for assistance. When you order a license, you receive
instructions for generating license activation keys on the Juniper Networks License
Management System.
The vMX licenses are based on application packages and processing capacity.
Table 4 on page 20 describes the features available with application packages.
Features
BASE
ADVANCE
PREMIUM
20
You can download the vMX software BASE application package with 1 Mbps bandwidth
and evaluate it for 30 days without a license. To use additional features beyond the 30
days, you must order the appropriate license.
If you need to move your vMX installation to another host, you must remove vMX from
the current host before installing vMX and adding the license on the new host.
Related
Documentation
21
22
CHAPTER 2
Setting Up vMX
Value
For lab simulation and low performance (less than 100 Mbps) use cases, any x86 processor
(Intel or AMD) with VT-d capability. Be sure to specify the vPFE_lite image in the vmx.conf
file.
For all other use cases, Intel Ivy Bridge processors or later are required.
Example of Ivy Bridge processor: Intel Xeon E5-2667 v2 @ 3.30 GHz 25 MB Cache
For single root I/O virtualization (SR-IOV) NIC type, use Intel 82599-based PCI-Express cards
(10 Gbps) and Ivy Bridge processors.
Number of cores
For lab simulation use case: 2 (1 for VCP and 1 for VFP)
For low-bandwidth applications: 4 (1 for VCP and 3 for VFP)
For high-bandwidth applications: 5 (1 for VCP and 4 for VFP)
Memory
Storage
Local or NAS
Other requirements
23
Value
Operating system
Virtualization
Required packages
NOTE: Use the apt-get install pkg name command to install a package.
Related
Documentation
Description
images/jinstall-vmx*.img
images/vmxhdd.img
images/vPFE_*.img
images/vPFE_lite_*.img
Software image file for VFP (lite version). Use this image for lab simulation and
low performance (less than 100 Mbps) applications.
config/vmx.conf
Configuration file for defining vMX parameters. See Configuring the vMX Instance
on page 35 for more information.
config/vmx-junosdev.conf
env/
OS environment settings.
scripts/
24
Description
vmx.sh
Main orchestration script. See Managing vMX on page 43 for more information
about command options.
NOTE: Only English locale is supported for using the vmx.sh script.
The image names might differ from the sample ones listed here.
Related
Documentation
25
26
CHAPTER 3
Installing vMX
Meet the minimum software and OS requirements described in Table 6 on page 24.
See Upgrading the Kernel on page 28 and Upgrading to libvirt 1.2.8 on page 28.
2. Enable Intel VT-d in BIOS. (We recommend that you verify the process with the vendor
NOTE: You must remove any previous installation with an external bridge
in /etc/network/interfaces and revert to using the original management
interface. Make sure that the ifconfig -a command does not show external
bridges before you proceed with the installation.
To determine whether an external bridge is displayed, use the ifconfig
command to see the management interface. To confirm that this interface
is used for an external bridge group, use the brctl show command to see
whether the management interface is listed as an external bridge.
27
To meet the minimum software and OS requirements, you might need to perform these
tasks:
NOTE: If you are using Ubuntu 14.04.1 LTS, which comes with
3.13.0-32-generic, you can skip this step. Ubuntu 14.04 comes with a lower
version of kernel (Linux 3.13.0-24-generic) than the recommended version
(Linux 3.13.0-32-generic).
Make sure that you install all the packages listed in Table 6 on page 24.
wget http://libvirt.org/sources/libvirt-1.2.8.tar.gz.
4. Uncompress and untar the file using the tar xzvf libvirt-1.2.8.tar.gz command.
5. Navigate to the libvirt-1.2.8 directory using the cd libvirt-1.2.8 command.
6. Stop libvirtd with the service libvirt-bin stop command.
7. Run the ./configure --prefix=/usr --localstatedir=/ --with-numactl command.
8. Run the make command.
9. Run the make install command.
28
10. Make sure that the libvirtd daemon is running. (Use the service libvirt-bin start command
NOTE: If you cannot deploy vMX after upgrading libvirt, bring down the virbr0
bridge with the ifconfig virbr0 down command and delete the bridge with the
brctl delbr virbr0 command.
Related
Documentation
Minimum vCPUs
Minimum Memory
Lab simulation
4
1 for VCP
3 for VFP
8GB
2 GB for VCP
6 GB for VFP
virtio
4
1 for VCP
3 for VFP
8GB
2 GB for VCP
6 GB for VFP
virtio or SR-IOV
5
1 for VCP
4 for VFP
8GB
2 GB for VCP
6 GB for VFP
SR-IOV
29
To install vMX for a particular use case, perform one of the following tasks:
Download the vMX software package as root and uncompress the package using tar
xzvf package-name command. For example:
tar xzvf vmx_20150625.0.tgz
2. Change directory to the location of the uncompressed vMX package. For example:
cd vmx_20150625.0
3. Edit the config/vmx.conf text file with a text editor to configure a single vMX instance.
Ensure the following parameters are set properly in the vMX configuration file:
device-type : virtio
# Max 10 characters
--#vRE VM parameters
CONTROL_PLANE:
vcpus
: 1
memory-mb
: 1024
console_port: 8601
30
interfaces :
- type
: static
ipaddr
: 10.102.144.94
macaddr
: "0A:00:DD:C0:DE:0E"
--#vPFE VM parameters
FORWARDING_PLANE:
memory-mb
: 6144
vcpus
: 3
console_port: 8602
device-type : virtio
interfaces :
- type
: static
ipaddr
: 10.102.144.98
macaddr
: "0A:00:DD:C0:DE:10"
--#Interfaces
JUNOS_DEVICES:
- interface
mac-address
description
: ge-0/0/0
: "02:06:0A:0E:FF:F0"
: "ge-0/0/0 interface"
- interface
mac-address
description
: ge-0/0/1
: "02:06:0A:0E:FF:F1"
: "ge-0/0/1 interface"
- interface
mac-address
description
: ge-0/0/2
: "02:06:0A:0E:FF:F2"
: "ge-0/0/2 interface"
- interface
mac-address
description
: ge-0/0/3
: "02:06:0A:0E:FF:F3"
: "ge-0/0/3 interface"
Download the vMX software package as root and uncompress the package using tar
xzvf package-name command. For example:
tar xzvf vmx_20150625.0.tgz
2. Change directory to the location of the uncompressed vMX package. For example:
cd vmx_20150625.0
3. Edit the config/vmx.conf text file with a text editor to configure a single vMX instance.
Ensure the following parameters are set properly in the vMX configuration file:
31
# Max 10 characters
--#vRE VM parameters
CONTROL_PLANE:
vcpus
: 1
memory-mb
: 1024
console_port: 8601
interfaces :
- type
: static
ipaddr
: 10.102.144.94
macaddr
: "0A:00:DD:C0:DE:0E"
--#vPFE VM parameters
FORWARDING_PLANE:
memory-mb
: 6144
vcpus
: 3
console_port: 8602
device-type : virtio
interfaces :
- type
: static
ipaddr
: 10.102.144.98
macaddr
: "0A:00:DD:C0:DE:10"
32
--#Interfaces
JUNOS_DEVICES:
- interface
mac-address
description
: ge-0/0/0
: "02:06:0A:0E:FF:F0"
: "ge-0/0/0 interface"
- interface
mac-address
description
: ge-0/0/1
: "02:06:0A:0E:FF:F1"
: "ge-0/0/1 interface"
- interface
mac-address
description
: ge-0/0/2
: "02:06:0A:0E:FF:F2"
: "ge-0/0/2 interface"
- interface
mac-address
description
: ge-0/0/3
: "02:06:0A:0E:FF:F3"
: "ge-0/0/3 interface"
Download the vMX software package as root and uncompress the package using tar
xzvf package-name command. For example:
tar xzvf vmx_20150625.0.tgz
2. Change directory to the location of the uncompressed vMX package. For example:
cd vmx_20150625.0
3. Edit the config/vmx.conf text file with a text editor to configure a single vMX instance.
Ensure the following parameters are set properly in the vMX configuration file:
device-type: sriov
# Max 10 characters
--#VCP VM parameters
CONTROL_PLANE:
vcpus
: 1
memory-mb
: 4096
console_port: 8601
33
interfaces :
- type
: static
ipaddr
: 10.102.144.94
macaddr
: "0A:00:DD:C0:DE:0E"
--#VFP VM parameters
FORWARDING_PLANE:
memory-mb
: 16384
vcpus
: 7
console_port: 8602
device-type : sriov
interfaces :
- type
: static
ipaddr
: 10.102.144.98
macaddr
: "0A:00:DD:C0:DE:10"
Related
Documentation
34
--#Interfaces
JUNOS_DEVICES:
- interface
port-speed-mbps
nic
mtu
virtual-function
mac-address
description
:
:
:
:
:
:
:
ge-0/0/0
10000
eth1
2000
# DO NOT EDIT
0
"02:06:0A:0E:FF:F0"
"ge-0/0/0 connects to eth1"
- interface
port-speed-mbps
nic
mtu
virtual-function
mac-address
description
:
:
:
:
:
:
:
ge-0/0/1
10000
eth2
2000
# DO NOT EDIT
0
"02:06:0A:0E:FF:F1"
"ge-0/0/1 connects to eth2"
- interface
port-speed-mbps
nic
mtu
virtual-function
mac-address
description
:
:
:
:
:
:
:
ge-0/0/2
10000
eth3
2000
# DO NOT EDIT
0
"02:06:0A:0E:FF:F2"
"ge-0/0/2 connects to eth3"
- interface
port-speed-mbps
nic
mtu
virtual-function
mac-address
description
:
:
:
:
:
:
:
ge-0/0/3
10000
eth4
2000
# DO NOT EDIT
0
"02:06:0A:0E:FF:F3"
"ge-0/0/3 connects to eth4"
and uses the local copy to launch vMX. Default value is yes.
and uses the local copy to launch vMX. Default value is yes.
35
ipaddrManagement IP address for the VCP VM (fxp0). Navigate to interfaces > type
(static) > ipaddr to modify this parameter.
You must make sure the console port is not being used by another vMX instance or
another server.
Based on your requirements, you might want to change the memory, number of vCPUs,
and the device type. See Table 8 on page 29 for some sample configuration
requirements.
To configure the VFP VM, navigate to FORWARDING_PLANE and specify the following
parameters:
ipaddrManagement IP address for the VFP VM (eth0). Navigate to interfaces > type
(static) > ipaddr to modify this parameter.
Configuring Interfaces
The JUNOS_DEVICES interface names correspond to the Linux physical NIC names on
the host. Bring up the Linux physical NIC ports that are defined in this section before
proceeding. For example, use the ifconfig eth9 up command to bring up the NIC ports on
the eth9 interface.
To configure interfaces for virtio device types, you must specify the interface and the
MAC address.
36
To configure interfaces for SR-IOV device types, you must specify the interface, the NIC,
and the MAC address.
To configure the routed interfaces, navigate to JUNOS_DEVICES and specify the following
parameters:
NOTE: The interface names that are defined in the vmx.conf file must be
contiguous starting from ge-0/0/0. The total number of interfaces
supported is 10, up to ge-0/0/9.
port-speed-mbps(SR-IOV only) Port speed for the physical NIC, default is 10000
Mbps.
NOTE: Depending on the version of udev, you can rename the classic Linux
standard ethXX names. See Predictable Network Interface Names for more
information.
To change the MTU configuration for virtio device types, modify the mtu parameter in
the device binding file (vmx-junosdev.conf).
Related
Documentation
Deploying vMX
Running the ./vmx.sh --install script to deploy vMX sets up:
Host NICs
NOTE: When br-ext is being created, access to the management port may
be frozen temporarily when it gets attached to the br-ext bridge.
37
Using the --install option also launches the VCP and VFP VMs.
We recommend you deploy the vMX by running the ./vmx.sh -lv --install script to provide
verbose-level logging to a file for the deployment of the vMX instance.
NOTE: Only English locale is supported for using the vmx.sh script.
Related
Documentation
Connecting to VMs
Perform these tasks to connect to the virtual machines for first-time configuration, to
enable access by other means (like Telnet or SSH):
Logging In to VCP
You can access the serial console using the ./vmx.sh --console vcp vmx-id command,
where vmx-id is the vMX identifier specified in the startup configuration file, and log in
with the username root and no password.
To disconnect from the console, log out of the session and press Ctrl + ]. At the telnet>
prompt, type close and press Enter.
Logging In to VFP
You can access the serial console using the ./vmx.sh --console vfp vmx-id command,
where vmx-id is the vMX identifier specified in the startup configuration file, and log in
with the username root and password root.
You can connect to VFP using the SSH protocol. Use the IP address defined under
FORWARDING_PLANE in the vmx.conf file. For security reasons, you cannot connect to
VFP using the Telnet protocol.
To disconnect from the console, log out of the session and press Ctrl + ]. At the telnet>
prompt, type close and press Enter.
Related
Documentation
38
Adding a License
To add a license key to the vMX:
1.
Copy the license activation key file to the VCP and add the license key by specifying
the filename.
user@vmx> request system license add filename
Or, you can copy and paste the license activation key directly to add the license key.
For example:
user@vmx> request system license add terminal
E408408918 aeaqib qcsbja okbuqe rcmxnq vjocwf uxfsta
z5ufjb kdrmt6 57bimv 2f3ddp qttcdn 627q4a
jx4s5x hiri
2. Verify that the license is installed. VMX-BANDWIDTH indicates the licensed bandwidth
Licenses
used
0
0
0
40000
3
Licenses
installed
1000
1000
1000
40000
3
Licenses
needed
0
0
0
0
0
Expiry
permanent
permanent
permanent
permanent
permanent
Licenses installed:
License identifier: JUNOS640113
License version: 4
Software Serial Number: 1012620150123J
Customer ID: vMX-Juniper
Features:
vmx-bandwidth-40g - vmx-bandwidth-40g
permanent
vmx-feature-premium - vmx-feature-premium
permanent
39
3. Verify the configured bandwidth for PFE traffic matches the licensed bandwidth
Deleting a License
To delete a vMX license:
1.
For example:
user@vmx> request system license delete JUNOS640113
3. Verify that the license is deleted.
user@vmx> show system license
License usage:
Licenses
Feature name
used
scale-subscriber
0
scale-l2tp
0
scale-mobile-ip
0
Licenses
installed
1000
1000
1000
Licenses
needed
0
0
0
Expiry
permanent
permanent
permanent
Related
Documentation
Licensing on page 20
40
Serial number
VM54599D128A
Description
VMX
RE-VMX
VMX SCB
Virtual FPC
41
42
CHAPTER 4
Managing vMX
Managing vMX
NOTE: Only English locale is supported for using the vmx.sh script.
After you install and deploy vMX, you can use the vmx.sh script with different options to
perform these tasks:
Controlling vMX
When you are controlling vMX with the vmx.sh script, you can perform these tasks:
Deploying vMX
43
requirements and deploying the vMX. If you do not specify a startup configuration
file with the --cfg option, the default file is used.
This example deploys a new vMX instance specified by the my-vmx.cfg configuration file
and provides verbose-level logging to a file:
./vmx.sh -lv --install --cfg config/my-vmx.cfg
Use these options with the vmx.sh script to stop, start, restart, verify, and clean up an
existing vMX:
--cfg fileUse the specified vMX startup configuration file. The default file is
config/vmx.conf.
--cleanupStop vMX and clean up relevant information about the vMX instance. It also
tears down the Linux bridges and other dependencies. If you do not specify a startup
configuration file with the --cfg option, the default file is used.
--restartStop and start a running vMX. This option is useful for redeploying a vMX that
has parameter changes in the startup configuration file. If you do not specify a startup
configuration file with the --cfg option, the default file is used.
--startStart the vMX that was running and stopped. If you do not specify a startup
configuration file with the --cfg option, the default file is used.
--statusVerify the status of a deployed vMX. If you do not specify a startup configuration
To specify the directory used for temporary files, run the ./vmx.sh build directory script.
The default directory is build/vmx-id, where vmx-id is the vMX identifier specified in the
startup configuration file.
44
To specify the environment file (.env), run the ./vmx.sh env file script. The default file is
env/ubuntu_sriov.env.
This example deploys a new vMX instance specified by the my-vmx.cfg configuration file
and provides verbose-level logging to a file:
./vmx.sh -lv --install --cfg config/my-vmx.cfg
45
The console ports of the VCP and the VFP are unique across all instances.
The external static IP address of the VCP and the VFP are unique across all instances.
The MAC addresses of the VCP and the VFP are unique across all instances, whenever
specified.
NOTE: All VMs share the same management domain. The physical
management interface (for example, eth0) is also part of this global external
bridge.
You can connect virtio NICs in the vMX to physical NICs or virtio NICs in another vMX by
binding these devices as shown in Figure 2 on page 46.
46
Edit the config/vmx-junosdev.conf file to set up the communication between the vMX
instances.
2. Modify the link_name to the name of the Linux bridge (as shown by the brctl show
command). The link name can be 15 characters long. It must be unique for each bridge.
If more than two interfaces (virtual or physical) are connected by a Linux bridge, then
the bridge name is derived from the dev_name of the common endpoint for the
connected devices.
3. Specify the mtu to change the MTU value for virtio device types from the default of
parameters:
vm-nameName of the vMX identifier specified in the startup configuration file for
file.
5. Specify the endpoints for physical NICs (host_dev type) by customizing these
parameters:
6. Specify the endpoints for bridges (bridge_dev type) by customizing these parameters:
7. If you have multiple device-binding files, save them with different names.
- link_name
: link_host
47
mtu
: 1500
endpoint_1 :
- type
: junos_dev
vm_name
: vmx1
dev_name
: ge-0/0/0
endpoint_2 :
- type
: host_dev
dev_name
: int2
- link_name : link_vmx_12
mtu
: 1500
endpoint_1 :
- type
: junos_dev
vm_name
: vmx1
dev_name
: ge-0/0/1
endpoint_2 :
- type
: junos_dev
vm_name
: vmx2
dev_name
: ge-0/0/0
- link_name : bridge_vmx_123
endpoint_1 :
- type
: junos_dev
vm_name
: vmx1
dev_name
: ge-0/0/2
endpoint_2 :
- type
: bridge_dev
dev_name
: bridge1
- link_name : bridge_vmx_123
endpoint_1 :
- type
: junos_dev
vm_name
: vmx2
dev_name
: ge-0/0/1
endpoint_2 :
- type
: bridge_dev
dev_name
: bridge1
- link_name : bridge_vmx_123
endpoint_1 :
- type
: junos_dev
vm_name
: vmx3
dev_name
: ge-0/0/0
endpoint_2 :
- type
: bridge_dev
dev_name
: bridge1
To bind devices with virtio NICs to other devices, define your devices in the vMX
device-binding file and run the ./vmx.sh --bind-dev -cfg device-binding-file script to create
the device binding. If you do not specify a file, the default file is config/vmx-junosdev.conf.
This example creates device bindings with the specified device-binding file:
48
To unbind devices, run the ./vmx.sh --unbind-dev -cfg device-binding-file script to delete
the device bindings created with the --bind-dev option. If you do not specify a file, the
default file is config/vmx-junosdev.conf.
This example deletes device bindings with the specified device-binding file:
./vmx.sh --unbind-dev -cfg config/vmx1-junosdev.conf
To verify the status of device bindings created with the --bind-dev option, run the ./vmx.sh
--bind-check -cfg device-binding-file script. If you do not specify a file, the default file is
config/vmx-junosdev.conf.
This example verifies the status of the device bindings for the specified device-binding
file:
./vmx.sh --bind-check -cfg config/vmx1-junosdev.conf
Related
Documentation
49
50
CHAPTER 5
Troubleshooting vMX
There is a receive (rx) and transmit (tx) line for each port. Port 0 maps to the ge-0/0/0
interface, port 1 maps to the ge-0/0/1 interface, and so forth. rx0 displays statistics for
packets received from port 0 and tx1 displays statistics for packets transmitted to port
1.
51
The queue processes the packets. The columns provide this information about the
queues:
The Producer and Consumer columns display the source and destination that
generate packets for this queue. The values can be io, wk, tx, or host.
The Priority column displays the priority of the queue. The values can be Normal or
High (only for control packets).
The Free and Used columns display the queue occupancy. The queue has 1024
entries.
The Enqueues and Dequeues columns display the number of queue operations.
The Drops column indicates whether the queue is being drained fast enough.
2. When prompted, enter pfe as the username and pfe as the password.
3. View the statistics displayed in the browser window.
Related
Documentation
Log in to the VFP console by using the ./vmx.sh --console vfp vmx-id command, where
vmx-id is the vMX identifier specified in the startup configuration file.
2. Navigate to the appropriate directory to determine whether there are any files to view.
# cd /var/crash
# ls -l
-rwxr-xr-x 1 root root 864678 Jan
4 02:14 core.riot.1420366466.8271.gz
Related
Documentation
52
When the VCP and VFP connection is established, the show interfaces terse command
in the VCP CLI displays the ge-0/0/x interfaces and the following messages appear in
the VFP syslog file:
RPIO: Accepted connection from 172.16.0.1:50896 <-> vPFE:3000
RPIO: Accepted connection from 172.16.0.1:56098 <-> vPFE:3000
HOSTIF: Accepted connection
If the VCP cannot connect to the VFP, the VFP syslog file does not display the RPIO and
HOSTIF messages.
Action
Run the request chassis fpc slot 0 restart command from the VCP CLI. If an FPC is in
transition error message is displayed, then run restart chassis-control.
If these commands do not correct the problem, verify whether the VCP can ping the VFP
from the routing-instance __juniper_private1__. The three management interfaces (for the
host, VCP VM, and VFP VM) connected to the internal bridge should be able to reach
each other. For example:
root> ping 172.16.0.2 routing-instance __juniper_private1__
PING 172.16.0.2 (172.16.0.2): 56 data bytes
64 bytes from 172.16.0.2: icmp_seq=0 ttl=64 time=0.273 ms
64 bytes from 172.16.0.2: icmp_seq=1 ttl=64 time=0.606 ms
Use the brctl show command to verify the bridge configuration and connected
interfaces.
If the problem persists, contact the Juniper Networks Technical Assistance Center (JTAC).
Related
Documentation
53
You can stop and start VMs with the following virsh commands.
Related
Documentation
Related
Documentation
x86_64
32-bit, 64-bit
Little Endian
40
0-39
1
10
4
4
GenuineIntel
6
62
7
3191.766
6385.87
VT-x
32K
32K
256K
38400K
0,4,8,12,16,20,24,28,32,36
1,5,9,13,17,21,25,29,33,37
2,6,10,14,18,22,26,30,34,38
3,7,11,15,19,23,27,31,35,39
54
SR-IOV is enabled.
VT-d is enabled.
Hyperthreading is disabled.
We recommend that you verify the process with the vendor because different systems
have different methods to access and change BIOS settings.
Related
Documentation
55
56