juniper vmx - v-re v-pfe

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
hroyd
Posts: 3
Joined: Tue Mar 21, 2017 5:07 pm

juniper vmx - v-re v-pfe

Post by hroyd » Tue Mar 21, 2017 5:12 pm

Hello

I see you have placeholders for juniper vmx vpfe / vre. The latest versions of these from juniper come with 3 vmdk files or 3 img files (kvm) for the routing engine. How would I convert them for use in eve-ng? I have tried to cat the disks and then convert to qcow2 as a single image, but the vre boots up as olive, and does not recognize commands like 'show chassis fpc' or see the vpfe. Have you tested this?

Thanks

ricardoadriano3x
Posts: 2
Joined: Thu Mar 23, 2017 2:33 pm

Re: juniper vmx - v-re v-pfe

Post by ricardoadriano3x » Thu Mar 23, 2017 2:41 pm

Same problem. Does anybody know how to run VMX 16 (vfp and vcp)?

mcat84
Posts: 36
Joined: Wed Mar 22, 2017 6:40 am

Re: juniper vmx - v-re v-pfe

Post by mcat84 » Fri Mar 24, 2017 7:51 am

1. Download vmx (i am using vmx-bundle-15.1F6.9.tgz in this example)
2. create 2 directories /opt/unetlab/addons/qemu/
vmxvcp-15.1F6.9
vmxvfp-15.1F6.9
3. copy vmx-bundle-15.1F6.9.tgz to /tmp directory
4. untar vmx-bundle-15.1F6.9.tgz
5. copy junos-vmx-x86-64-15.1F6.9.qcow2, vmxhdd.img, metadata-usb-re.img from images directory to vmxvcp-15.1F6.9 directory
6. copy vFPC-20160617.img from images directory to vmxvfp-15.1F6.9 directory
7. rename junos-vmx-x86-64-15.1F6.9.qcow2 --> hda.qcow2
convert vmxhdd.img --> hdb.qcow2
convert metadata-usb-re.img --> hdc.qcow2
8. convert vFPC-20160617.img --> hda.qcow2
9 fix permissions

ok done...
1. on topology --> em0/fxp0 connect to em0/fxp0, em1/int connect to em1/int
2. em2/ge-0/0/0 connect to bla bla bla

hroyd
Posts: 3
Joined: Tue Mar 21, 2017 5:07 pm

Re: juniper vmx - v-re v-pfe

Post by hroyd » Fri Mar 24, 2017 8:58 am

Thanks for the reply and info. I will try this tonight

hroyd
Posts: 3
Joined: Tue Mar 21, 2017 5:07 pm

Re: juniper vmx - v-re v-pfe

Post by hroyd » Fri Mar 24, 2017 11:08 pm

thanks mcat84. what you suggested works perfectly and the metadata is loaded correctly and the device shows up as vmx rather than olive. I tried with the latest version 17.1R1.8 and the only thing I had to do was to increase the RAM of the default VFP to 8192 in order to bring it properly online. did a very basis test of bringing up an ISIS adjacency with another vMX and this worked fine, so thanks for your help!

root> show version | match "model|Junos:"
Model: vmx
Junos: 17.1R1.8

root> show chassis fpc | match online
0 Online Testing 71 0 54 36 17 2048 7 0

root> show chassis fpc pic-status
Slot 0 Online Virtual FPC
PIC 0 Online Virtual

root> show route protocol isis | match 1.1.1
1.1.1.2/32 *[IS-IS/18] 00:02:11, metric 100

root> ping 1.1.1.2 source 1.1.1.3
PING 1.1.1.2 (1.1.1.2): 56 data bytes
64 bytes from 1.1.1.2: icmp_seq=0 ttl=64 time=12.606 ms
64 bytes from 1.1.1.2: icmp_seq=1 ttl=64 time=42.439 ms
64 bytes from 1.1.1.2: icmp_seq=2 ttl=64 time=356.221 ms


procedure :

download kvm version of vmx from juniper. unzip the tgz file to get access to the 'images' folders

root@eve-ng:~/vmx-kvm# tar -xvf vmx-bundle-17.1R1.8.tgz

make directories to store the disk files

root@eve-ng:~/vmx-kvm/vmx-17.1R1.8/images# mkdir /opt/unetlab/addons/qemu/vmxvcp-17.1R1.8
root@eve-ng:~/vmx-kvm/vmx-17.1R1.8/images# mkdir /opt/unetlab/addons/qemu/vmxvfp-17.1R1.8

copy the below images to the correct folders and convert / rename

root@eve-ng:/opt/unetlab/addons/qemu/vmxvfp-17.1R1.8# /opt/qemu/bin/qemu-img convert -f raw -O qcow2 vFPC-20170216.img hda.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/vmxvcp-17.1R1.8# mv junos-vmx-x86-64-17.1R1.8.qcow2 hda.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/vmxvcp-17.1R1.8# /opt/qemu/bin/qemu-img convert -f raw -O qcow2 vmxhdd.img hdb.qcow2
root@eve-ng:/opt/unetlab/addons/qemu/vmxvcp-17.1R1.8# /opt/qemu/bin/qemu-img convert -f raw -O qcow2 metadata-usb-re.img hdc.qcow2

fix permissions

root@eve-ng:/opt/unetlab/addons/qemu/vmxvcp-17.1R1.8# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions
root@eve-ng:/opt/unetlab/addons/qemu/vmxvfp-17.1R1.8# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Post Reply