Skip to content

Conversation

@mpfz0r
Copy link

@mpfz0r mpfz0r commented Dec 6, 2025

  • Adjust vrnetlab to support aarch64.
  • Bump routeros docker image to debian trixie for newer more performant qemu version
  • Install python 3.12 with uv. To keep backwards compatibility
  • add cross platform build support to makefile.include (via DOCKER_PLATFORM variable)

Marco Pfatschbacher added 2 commits December 6, 2025 12:35
 - Adjust vrnetlab to support aarch64.
 - Bump routeros docker image to debian trixie for newer more performant
   qemu version
 - Install python 3.12 with uv. To keep backwards compatibility
@mischadiehm
Copy link

works great and so much faster on my macbp!

md@debian-clab:/Users/md/git/narrowin-labs/ot-lab$ docker ps | grep mikrotik
86009b90de33   vrnetlab/mikrotik_routeros:7.20.6-arm64    "uv run /[launch.py](http://launch.py/) -…"   2 minutes ago        Up 2 minutes (healthy)          22/tcp, 830/tcp, 5000/tcp, 5678/tcp, 8291/tcp, 10000-10099/tcp, 161/udp   clab-ot-sec-flat-sw-acc2
9877277669f4   vrnetlab/mikrotik_routeros:7.20.6-arm64    "uv run /[launch.py](http://launch.py/) -…"   2 minutes ago        Up 2 minutes (healthy)          22/tcp, 830/tcp, 5000/tcp, 5678/tcp, 8291/tcp, 10000-10099/tcp, 161/udp   clab-ot-sec-flat-gw-firewall
81b584e51030   vrnetlab/mikrotik_routeros:7.20.6-arm64    "uv run /[launch.py](http://launch.py/) -…"   2 minutes ago        Up 2 minutes (healthy)          22/tcp, 830/tcp, 5000/tcp, 5678/tcp, 8291/tcp, 10000-10099/tcp, 161/udp   clab-ot-sec-flat-sw-acc1
831b4beed6fa   vrnetlab/mikrotik_routeros:7.20.6-arm64    "uv run /[launch.py](http://launch.py/) -…"   2 minutes ago        Up 2 minutes (healthy)          22/tcp, 830/tcp, 5000/tcp, 5678/tcp, 8291/tcp, 10000-10099/tcp, 161/udp   clab-ot-sec-flat-sw-dist

@mpfz0r
Copy link
Author

mpfz0r commented Dec 7, 2025

also tested on amd64 now. I consider this done

@mpfz0r mpfz0r marked this pull request as ready for review December 7, 2025 20:56
@mischadiehm
Copy link

@mpfz0r not sure if using -arm64 is best choice when trying to make this as easy to use as possible you might wanna get rid of the dash?

export ARCH=arm64

# then in the clab config you would do sth like:
    #image: vrnetlab/mikrotik_routeros:7.20.6
    #image: vrnetlab/mikrotik_routeros:7.20.6-arm64 the dash here breaks this simple env switch
    image: vrnetlab/mikrotik_routeros:7.20.6{ARCH}
    restart-policy: "no"

which fails when you want simple env switches unless one does:

export ARCH="-arm64"

which is also kind of awkward? So if you create the image without the - we loose a bit readability but do gain quite some simple flexibility

@mpfz0r
Copy link
Author

mpfz0r commented Dec 8, 2025

I would've like to keep this a semantic version. I'm either gonna tag the amd64 image with an additional tag -amd64 for consistency, or maybe I can try and make this a multi-arch image.
hang in there..

@mpfz0r mpfz0r marked this pull request as draft December 8, 2025 14:56
- Support cross-compilation via DOCKER_PLATFORM in makefile.include
- Auto-detect platform from chr-*-arm64.vdi filenames
- Add docker-build-extra and docker-push-image-extra targets which can
  optionally be implemented
- Tag amd64 images with both :version and :version-amd64
@mpfz0r
Copy link
Author

mpfz0r commented Dec 9, 2025

I've added this and also cross platform build support, so you dont need to resort to two machines when building this.
This is the new format:

vrnetlab/mikrotik_routeros:7.20.4                                     43e6c174249e        479MB          479MB
vrnetlab/mikrotik_routeros:7.20.4-amd64                               43e6c174249e        479MB          479MB
vrnetlab/mikrotik_routeros:7.20.4-arm64                               e210346fe2d3       2.27GB          442MB

I've started looking into multi-arch images, but since this needs a running registry, I think this doesn't necessarily need to be implemented in vrnetlab.

@mpfz0r mpfz0r marked this pull request as ready for review December 9, 2025 09:00
@mpfz0r mpfz0r marked this pull request as draft December 9, 2025 10:08
@mpfz0r mpfz0r marked this pull request as ready for review December 9, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants