mininet / mininet

Emulator for rapid prototyping of Software Defined Networks

Home Page:https://mininet.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Problems concerning Apple Silicon and Orbstack

root-hbx opened this issue · comments

commented

Expected/Desired Behavior:

  • I use a MacBook Pro m2, and I face the same issue as well.
  • I tried to use a VM (in fact, it's Orbstack) of Linux 22.04LTS to solve the problem.
  • I use a python virtual environment (.venv) and my python3 version is "Python 3.11.4"

Actual Behavior:

It's still a problem: ( I follow the steps in a python3 venv)
When I follow the steps on download, I met a problem:

The following packages were automatically installed and are no longer required:
libperl5.34 libtiff5 perl-modules-5.34
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 287 not upgraded.
Installing Mininet core
/Users/huluobo/mininet /Users/huluobo
cc -Wall -Wextra
-DVERSION="PYTHONPATH=. python -B bin/mn --version 2>&1" mnexec.c -o mnexec
: warning: missing terminating " character
mnexec.c: In function ‘main’:
: error: missing terminating " character
mnexec.c:208:28: note: in expansion of macro ‘VERSION’
208 | printf("%s\n", VERSION);
| ^~~~~~~
mnexec.c:208:35: error: expected expression before ‘)’ token
208 | printf("%s\n", VERSION);
| ^
make: *** [Makefile:50: mnexec] Error 1

Detailed Steps to Reproduce the Behavior:

Just follow the tutorial on mininet-download and you will face this issue at mininet/util/install.sh -a

Additional Information:

Actually, I do need a version for arm.

commented

I have two main questions:

  1. Whether we have to only use Virtual Box or VMware to support the Linux VM?
  • Actually I use Orbstack for its Lightweight, but I wonder if it can support all the service that Mininet need.
  1. Whether Apple Silicon (M2) can support the service that Mininet need

@root-hbx same issue here. I'm also using orbstack. Did you find any workaround?

commented

In fact, Orbstack uses its own Linux kernel which eliminates some functions such as supporting mininet.

So we can not use Orbstack to build mininet topology.(neither the docker nor the VM in Orbstack)

Instead, we have to use other Virtual Machine such as VirtualBox and Parallel Desktop, etc.

@emdneto