8000 Update instructions for Ubuntu 24.04/ later (VENV, mininet issues) · Issue #40 · scy-phy/minicps · GitHub
[go: up one dir, main page]

Skip to content
< 8000 div class="height-full">

Update instructions for Ubuntu 24.04/ later (VENV, mininet issues) #40

Open

Description

@noleti

We recently tested minicps installation process, and had issues with Ubuntu 24.04. This issue is intended to document our current process to get everything to work with minimal changes. We should eventually create a PR to update the documentation.

Main issues: mininet build process is currently broken (it seems mininet is not maintained since a while), and the forced switch to VENVs in Ubuntu complicates the pip part. Further complications are due to the heavy use of sudo in both mininet and minicps (root UID needed for namespaces etc).

Proposed solution summary: completely execute installations and later runs as root user, via sudo su or similar. Create a venv for root and activate it. In addition, use mininet-wifi fork and build without the wireless parts (i.e., use only the following arguments for the installation: bash util/install.sh -nfv)

Activity

  1. added this to the Update to Python 3 milestone on Jun 16, 2025
  2. noleti commented on Jun 17, 2025

    @noleti
    CollaboratorAuthor

    More detailed instructions for setup on 24.04. Assumes we install everything into a net folder called ~/cpss
    Uses temporary branch and fixes from PR #42

    mkdir ~/cpss
    cd ~/cpss
    sudo su
    python3 -m venv myvenv
    . myvenv/bin/activate
    python --version #as expected, python3
    pip install mininet
    apt install openvswitch-testcontroller openvswitch-switch
    mn --test pingall #should work
    git clone https://github.com/scy-phy/minicps.git
    cd minicps
    git checkout sudo-fix
    pip install .
    make swat-s1-init
    

    Then, make swat-s1 should start that example. Once you are done, you can/should leave the venv with deactivate on the bash. If you want to resume work with minicps later, use cd ~/cpss/; sudo su; . myenv/bin/activate; cd minicps.

    Note: as alternative to

    pip install mininet
    apt install openvswitch-testcontroller openvswitch-switch
    

    you can checkout mininet-wifi git repo, and install it with bash util/install.sh -nfv

  3. afmurillo commented on Sep 18, 2025

    @afmurillo
    Contributor

    Hi, just a small comment on my side: "numpy==2.2.6" broke DHALSIM, as that version is not available on Ubuntu 20.04. I will try getting DHALSIM back to work without the numpy==2.2.6 requirement and then I think start a similar process to move DHALSIM to Ubuntu 24.

  4. noleti commented on Sep 19, 2025

    @noleti
    CollaboratorAuthor

    Thanks. We are talking about the sudo-fix branch, right? I don't think it even uses numpy any more, the pinned dependency might be outdated. Can you try to install this branch and just remove the dependency?

    I just did on my end (Ubuntu 24.04), and following the instructions above (and deleting numpy requirement) worked.

    grep -R numpy * does not give results in the minicps directory.

  5. noleti commented on Sep 19, 2025

    @noleti
    CollaboratorAuthor

    I pushed fc4c5b3 now to remove the dependency. Still on the sudo-fix branch

  6. afmurillo commented on Sep 19, 2025

    @afmurillo
    Contributor

    Thank you Nils, I'll try in afternoon the installation without the dependency. Also thank you for the work around for Ubuntu24.04, I will try that too to migrate DHALSIM to Ubuntu24.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0