vMX
vMX

vmx install script errors ubuntu 16.04

3 weeks ago

After discovering the script hates tabs, I finally got most of it to execute. Except it bombs at "Generate  libvirt files"

 

After giving me errors on the libvirt version, missing libnl-dev, kernel version etc...

 

which really makes me wonder, should I even be trying this on Ubuntu 16.04? It seems Juniper really hasn't tested much here or surely they would have fixed their install script not to generate errors on a supported platform.

 

Anyways.  VMX 19.2 on Ubuntu 16.04. 4.4.0-157-generic kernel. i40e driver version 2.4.10

 

vmx.sh output:

==================================================
    Welcome to VMX
==================================================
Date..............................................08/05/19 18:28:56
VMX Identifier....................................vmx1
Config file......................................./home/nvdn/vmx-test-sriov.conf
Build Directory.................................../home/nvdn/vmx/build/vmx1
Assuming kvm hypervisor...........................
Virtualization type...............................kvm
Junos Device type.................................sriov
Environment file................................../home/nvdn/vmx/env/ubuntu_sriov.env
Junos Device Type.................................sriov
Initialize scripts................................[OK]
[OK]
[OK]
==================================================
    VMX Environment Setup Completed
==================================================
==================================================
    VMX Install & Start
==================================================
Linux distribution................................ubuntu
Intel IOMMU status................................[Enabled]
Verify if GRUB needs reboot.......................[No]
Installation status of qemu-kvm...................[OK]
Installation status of libvirt-bin................[OK]
Installation status of bridge-utils...............[OK]
Installation status of python.....................[OK]
Installation status of libyaml-dev................[OK]
Installation status of python-yaml................[OK]
Installation status of numactl....................[OK]
Installation status of libnuma-dev................[OK]
Installation status of libparted0-dev.............[OK]
Installation status of libpciaccess-dev...........[OK]
Installation status of libyajl-dev................[OK]
Installation status of libxml2-dev................[OK]
Installation status of libglib2.0-dev.............[OK]
Installation status of libnl-dev..................[Absent]
Check Kernel version..............................[Mismatch]
Expected kernel version is 3.13.0-32
Check Qemu version................................[Mismatch]
Expected Qemu version is 2.0.0
Check libvirt version.............................[Mismatch]
Expected libvirt version is 1.2.19
Check virsh connectivity..........................[OK]
==================================================
 Pre-Install Checks Completed. 0 error(s) and 4 warning(s)
==================================================
Check RE state....................................[Not Running]
Check RE state....................................[Not Running]
[OK]
Check for VM vfp-vmx1.............................[Not Running]
[OK]
Check if bridge  exists...........................[No]
Cleanup VM bridge ................................[OK]
Cleanup VM bridge br-int-vmx1.....................[OK]
Cleanup VM bridge br-fab-vmx1.....................[OK]
Cleanup IXGBE drivers.............................[OK]
==================================================
    VMX Stop Completed
==================================================
Check VCP image...................................[OK]
Check VFP image...................................[OK]
Check VCP Config image............................[OK]
Check management interface........................[OK]
Check interface enp3s0f0..........................[OK]
Setup huge pages to 16384.........................[OK]
Number of Intel 82599 NICs........................0
Number of Intel X710 NICs.........................4
Number of Intel igb NICs..........................0
[OK]
[OK]
Attempt to kill libvirtd..........................[OK]
Attempt to start libvirt-bin......................[OK]
Sleep 2 secs......................................[OK]
Check libvirt support for hugepages...............[OK]
==================================================
    System Setup Completed
==================================================
Get Management Address of eno1....................[OK]
Generate libvirt files............................[Failed]
Traceback (most recent call last):
  File "/home/nvdn/vmx/scripts/common/vmx_configure.py", line 903, in <module>
    if key.keys()[0] == "FORWARDING_PLANE":
AttributeError: 'NoneType' object has no attribute 'keys'
Log file........................................../dev/null
==================================================
 Aborted!. 1 error(s) and 4 warning(s)
==================================================

 

Contents of vmx config file:

##############################################################
#
#  vmx.conf
#  Config file for vmx on the hypervisor.
#  Uses YAML syntax. 
#  Leave a space after ":" to specify the parameter value.
#
##############################################################

--- 
#Configuration on the host side - management interface, VM images etc.
HOST:
    identifier                : vmx1   # Maximum 6 characters
    host-management-interface : eno1
    routing-engine-image      : "/home/nvdn/vmx/images/junos-vmx-x86-64-19.2R1.8.qcow2"
    routing-engine-hdd        : "/home/nvdn/vmx/images/vmxhdd.img"

# Wondering how this one vmxhdd works with two vcp VMs, guess we'd need one for each VM anyways we'll get there once we ahve the xml files for each VM

    forwarding-engine-image   : "/home/nvdn/vmx/images/vFPC-20190604.img"

---
#External bridge configuration
# no need for these with SR-IOV
#
#BRIDGES:
#    - type  : external
#      name  : br-ext                  # Max 10 characters
#
--- 
#vRE VM parameters
CONTROL_PLANE:
    vcpus         : 2
    memory-mb     : 8192 
    console_port  : 60100
    console_listen: 127.0.0.1

    interfaces  :
      - type          : static
        instance      : 0
        console_port  : 60100
        console_listen: 127.0.0.1
        ipaddr        : 10.0.0.100 # fxp0 mgmt IP
        macaddr       : "0A:00:DD:C0:DE:00"

      - type          : static
        instance      : 1
        console_port  : 60101
        console_listen: 127.0.0.1
        ipaddr        : 10.0.0.101 #fxp1 mgmt IP
        macaddr       : "0A:00:DD:C0:DE:01"

--- 
#vPFE VM parameters
FORWARDING_PLANE:
    memory-mb          : 32768 
    vcpus              : 24
    console_port       : 60102
    console_listen     : 127.0.0.1
    device-type        : sriov 
    use_native_drivers : true

    interfaces  :
      - type      : static
        ipaddr    : 10.0.0.102 
        instance  : 0
        macaddr   : "0A:00:DD:C0:DE:02"



      
--- 
#Interfaces
JUNOS_DEVICES:

   - interface            : xe-0/0/0
     type                 : sriov
     port-speed           : 40000
     nic                  : enp3s0f0
     mac-address          : "3C:FD:FE:9E:88:58"
     description          : "enp3s0f0 -- to 375.cs1-1/31"

   - interface            : xe-0/0/1
     type                 : sriov
     mtu                  : 9192
     port-speed           : 40000
     nic                  : enp129s0f0
     virtual-function     : 0
     mac-address          : "3C:FD:FE:9E:90:C8"
     description          : "enp129s0f0 -- to 375.cs2-1/31"

   - interface            : xe-0/0/2
     type                 : sriov
     mtu                  : 9192
     port-speed           : 10000
     nic                  : eno3
     virtual-function     : 0
     mac-address          : "24:6E:96:B7:28:38"
     description          : "eno3"

   - interface            : xe-0/0/3
     type                 : sriov
     mtu                  : 9192
     port-speed           : 10000
     nic                  : eno4
     virtual-function     : 0
     mac-address          : "24:6E:96:B7:28:3A"
     description          : "eno4