Comments (4)
Hey, I am sorry. Really tied up all day. Thanks so much for the help. Yes. i rebuilt the images locally.
I somehow resolved the issue by comment out the specific cores for the 2nd vmx.
dqi@dev-10-42-3-111:~/work-dev/robot$ cat docker-compose.yml
# Copyright (c) 2017, Juniper Networks, Inc.
# # All rights reserved.
#
version: "3"
services:
robot1:
image: artprod.dev.bloomberg.com/nfun/docker-robot:latest
stdin_open: true
ports:
- "22"
environment:
- ID=robot1
- PUBLICKEY=id_rsa.pub
volumes:
- $PWD:/u
networks:
mgmt:
vmx1:
image: artprod.dev.bloomberg.com/nfun/docker-juniper-vmx:latest
privileged: true
tty: true
stdin_open: true
ports:
- "22"
- "830"
environment:
- ID=vmx1
- LICENSE=license-eval.txt
- IMAGE=junos-vmx-x86-64-18.4R3.3.qcow2
- PUBLICKEY=id_rsa.pub
- CONFIG=vmx1.conf
# - WAITFOR=eth4
- IO_CORE=2
- WORKER_CORE=3
- MASTER_CORE=4
# - VMXT_CORE=5
# - HDDIMAGE=/images/p1.qcow2 # if we want it to be persistant
volumes:
# - $PWD/images:/images
- $PWD:/u:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
mgmt:
net-a:
net-b:
net-c:
vmx2:
image: artprod.dev.bloomberg.com/nfun/docker-juniper-vmx:latest
privileged: true
tty: true
stdin_open: true
ports:
- "22"
- "830"
environment:
- ID=vmx2
- LICENSE=license-eval.txt
- IMAGE=junos-vmx-x86-64-18.4R3.3.qcow2
- PUBLICKEY=id_rsa.pub
- CONFIG=vmx2.conf
# - WAITFOR=eth4
# - IO_CORE=6
# - WORKER_CORE=7
# - MASTER_CORE=8
# - VMXT_CORE=9
# - HDDIMAGE=/images/p1.qcow2 # if we want it to be persistant
volumes:
# - $PWD/images:/images
- $PWD:/u:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
mgmt:
net-a:
net-b:
net-c:
networks:
mgmt:
net-a:
net-b:
net-c:
dqi@dev-10-42-3-111:~/work-dev/robot$ ./getpass.sh
vMX robot_vmx2_1 (v4:172.21.0.3 v6:) 18.4R3.3 tha9Ohv0Shachai2ieLeegho ready
vMX robot_vmx1_1 (v4:172.21.0.2 v6:) 18.4R3.3 bei0IChohcaePeek2Sha3quo ready
dqi@dev-10-42-3-111:~/work-dev/robot$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
dqi@dev-10-42-3-111:~/work-dev/robot$ uname -a
Linux dev-10-42-3-111 4.15.0-126-generic #129-Ubuntu SMP Mon Nov 23 18:53:38 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
from openjnpr-container-vmx.
Thanks again for the help! please close the issue. Have a great day:-)
from openjnpr-container-vmx.
Can you verify the docker container used to launch the images? Somehow it seems to break the launch script for riot, leading to the first instances consuming all hugepages. I successfully launch 2 vmx instances using the same version (junos-vmx-x86-64-18.4R3.3.qcow2). Did you rebuild the image locally or simply renamed it?
mwiget@ryzen9:~/git/OpenJNPR-Container-vMX$ make ps
docker-compose ps
Name Command State Ports
--------------------------------------------------------------------------------------------------
openjnpr-container-vmx_vmx1_1 /launch.sh Up 0.0.0.0:32827->22/tcp, 0.0.0.0:32826->830/tcp
openjnpr-container-vmx_vmx2_1 /launch.sh Up 0.0.0.0:32831->22/tcp, 0.0.0.0:32830->830/tcp
docker-compose -f regression/docker-compose.yml ps
Name Command State Ports
------------------------------
./getpass.sh
vMX openjnpr-container-vmx_vmx1_1 (v4:172.27.0.2 v6:) 18.4R3.3 AeMuphuth4dee4paeyahGhuk ready
vMX openjnpr-container-vmx_vmx2_1 (v4:172.27.0.3 v6:) 18.4R3.3 ikie8Zuaqui2eShoob7aev3u ready
I'm using the following docker-compose.yml file:
$ cat docker-compose.yml
# Copyright (c) 2017, Juniper Networks, Inc.
# # All rights reserved.
#
version: "3"
services:
vmx1:
image: juniper/openjnpr-container-vmx:bionic
privileged: true
tty: true
stdin_open: true
ports:
- "22"
- "830"
environment:
- ID=vmx1
- LICENSE=license-eval.txt
- IMAGE=junos-vmx-x86-64-18.4R3.3.qcow2
- PUBLICKEY=id_rsa.pub
- CONFIG=vmx1.conf
- IO_CORE=2
- WORKER_CORE=3
- MASTER_CORE=4
- VMXT_CORE=5
volumes:
- $PWD:/u:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
mgmt:
net-a:
net-b:
net-c:
vmx2:
image: juniper/openjnpr-container-vmx:bionic
privileged: true
tty: true
stdin_open: true
ports:
- "22"
- "830"
environment:
- ID=vmx2
- LICENSE=license-eval.txt
- IMAGE=junos-vmx-x86-64-18.4R3.3.qcow2
- PUBLICKEY=id_rsa.pub
- CONFIG=vmx2.conf
- IO_CORE=6
- WORKER_CORE=7
- MASTER_CORE=8
- VMXT_CORE=9
volumes:
- $PWD:/u:ro
- /var/run/docker.sock:/var/run/docker.sock
networks:
mgmt:
net-a:
net-b:
net-c:
networks:
mgmt:
net-a:
net-b:
net-c:
Verify the version by pulling it (again) from docker hub:
$ docker pull juniper/openjnpr-container-vmx:bionic
bionic: Pulling from juniper/openjnpr-container-vmx
Digest: sha256:4e7b54d8342aaecc40e5085a3a79f530efcc76e760f80697c2ebd6043526914d
Status: Image is up to date for juniper/openjnpr-container-vmx:bionic
docker.io/juniper/openjnpr-container-vmx:bionic
And ran this on ubuntu 20.04.1:
mwiget@ryzen9:~/git/OpenJNPR-Container-vMX$ uname -a
Linux ryzen9 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
mwiget@ryzen9:~/git/OpenJNPR-Container-vMX$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
from openjnpr-container-vmx.
Great it worked out.
from openjnpr-container-vmx.
Related Issues (14)
- Corrupted containers on restart using a persistent drive
- vMX failed to boot HOT 26
- macvlan and vMX HOT 2
- Macvlan and LACP HOT 2
- Failed to run with junos-vmx-x86-64-21.1R1.11.qcow2 - 1 failed system dependencies. Terminating HOT 2
- Unable to start fpc - hangs at /boot/loader.conf: No such file or directory HOT 2
- 18.2R1.9, 21.2R1 Containers up but not ready (...)
- CONFIG: Incorrect value for --rx argument (-2) on Rocky9 Linux HOT 2
- Check for container privileged mode ...... no! Please run container with --privileged option
- vmxt terminates when running on CentOS 7.5 HOT 3
- Load custom yang module with translation script at launch
- Launch as root creates commit error leading to 'Amnesia'
- Support for IPv6 address on fxp0 when IPv6 is enabled in docker networks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openjnpr-container-vmx.