vMX

last person joined: 4 days ago 

Ask questions and share experiences about vMX.
  • 1.  vMX installation failure

     
    Posted 03-05-2018 03:25

    Hi,

     

    I have installed Ubuntu Server 14.04 as per Juniper recommendations and am now in the process of installing the vMX. I have hit a bit of a wall here as follows:

     

    The vMX package I have been supplied is: vmx-bundle-17.4R1.16.tgz ..... As I don't have access to download from Juniper it has been supplied by our hardware suppliers. The file size is 3.928 gig.

     

    I have configured Ubuntu for kvm installation as per recommendations and that is all okay.

     

    So, I then unpack the tar file with: tar xzvf vmx-bundle-17.4R1.16.tgz.

     

    Navigate to /tmp/vmx .... 

     

    Here is where I have the problem...... I cannot complete the installation because the "images" directory has nothing in there that resembles the requirements for the vmx.conf file...... My images file just contains "metadat-usb" images and not the required "jinstall" etc as per the following document:

    https://www.juniper.net/documentation/en_US/vmx14.1/topics/task/configuration/vmx-instance-configuring.html

     

    It's almost like I have not got the required files....



  • 2.  RE: vMX installation failure

    Posted 03-05-2018 03:55

    What is the md5 for the "vmx-bundle-17.4R1.16.tgz" file.

    Share the "ls -lrt" output of image folder..

     

    You should have below files:

    root@ubuntu:/var/tmp/vmx-16.1R5.7/images# ls -lrt
    total 5774956
    -rw-r--r-- 1 930 930 108986368 Aug 3 2017 vmxhdd.img
    -rw-r--r-- 1 930 930 2313158656 Aug 3 2017 vFPC-20170802.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-re1.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-re0.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc9.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc8.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc7.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc6.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc5.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc4.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc3.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc2.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc1.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc11.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc10.img
    -rw-r--r-- 1 930 930 16777216 Aug 3 2017 metadata-usb-fpc0.img
    -rw-r--r-- 1 930 930 2116447603 Aug 19 2017 junos-vmx-x86-64-16.1R5.7.tgz
    -rw-r--r-- 1 930 930 1123287040 Aug 19 2017 junos-vmx-x86-64-16.1R5.7.qcow2
    -rw-r--r-- 1 root root 16777216 Mar 2 09:51 metadata-usb-re.img
    root@ubuntu:/var/tmp/vmx-16.1R5.7/images#

     

    Regards,

    Vishruth



  • 3.  RE: vMX installation failure

     
    Posted 03-05-2018 04:04

    Hi,


    As the machine is completey separate I cannot simply show the files. What I can say is that when I run ls -lrt on the images directory under vmx the total = 6613136 and the files included are the same as what you have mentioned.

     

    So, it would seem that the files are there.... but why does vmx.conf call completely different files? It will never install while vmx.conf is calling files that don't exist.


    Thanks



  • 4.  RE: vMX installation failure
    Best Answer

    Posted 03-05-2018 04:18

    Hi,

     

    You need to modify the vmx.conf file with relavant path of images files and then allocate the vCPU's,memeory & ports.

     

    HOST:
    identifier : vmx1 # Maximum 6 characters
    host-management-interface : em1
    routing-engine-image : "/var/tmp/vmx-16.1R5.7/images/junos-vmx-x86-64-16.1R5.7.qcow2"
    routing-engine-hdd : "/var/tmp/vmx-16.1R5.7/images/vmxhdd.img"
    forwarding-engine-image : "/var/tmp/vmx-16.1R5.7/images/vFPC-20170802.img"

     

     

    Please refer below Dayone book for vMX 

    https://www.juniper.net/uk/en/training/jnbooks/day-one/automation-series/vmx-up-running/

     



  • 5.  RE: vMX installation failure

     
    Posted 03-06-2018 00:57

    Hi Vishruth,

     

    Thank you for the information. I have changed the relevant paths and it is installing but with other errors now. But that's cool.... the errors are just missing modules which I can work through. There are about 7 missing modules but I can get those through apt-get......

     

    Again, thank you....



  • 6.  RE: vMX installation failure

     
    Posted 03-06-2018 03:24

    Hi,


    A quick add on to this if I may please:

     

    I have a missing module called "netifaces"...... I am guessing this is becasue ubuntu server 14.04 utilises python 2.7.6 .... I can find the help for Python3 for module netifaces but nothing for 2.7.6.....

     

    My question is: Is it safe to install Python3 or are you guys using python 2.7.6 and managed to get this working using what process please?



  • 7.  RE: vMX installation failure

     
    Posted 03-06-2018 05:17

    I have managed to get around this issue by performing the following on Ubuntu 14.04 (for anyone that may be stuck at this point):

     

    sudo apt-get install python-dev   ..... This installs the required GCC Modules..... then completed:

     

    sudo pip install netifaces