For the simplest start, use Mininet’s prebuilt Ubuntu virtual machine. Choose a source install if you need Mininet directly on Ubuntu or want to select a source revision; use apt only after confirming your Ubuntu release offers a suitable package. The project documents all three routes, but its explicit Ubuntu package examples are for 18.04 and 20.04, so they do not establish package availability on newer releases.
What Mininet does—and what it does not
Mininet emulates a network of virtual hosts, switches, controllers, and links. Its hosts run standard Linux networking software, and its switches support OpenFlow. That makes it useful for learning, prototyping, testing, and debugging network designs without building the same topology from physical equipment. The Mininet project describes its scope in its overview.
As an Amazon Associate I earn from qualifying purchases.
An emulation is not a guarantee that a design will behave identically on physical hardware. A real deployment uses physical hosts, links, and switches in place of the emulated components; the sample workflow explains the relationship between the virtual topology and a physical network: Mininet Sample Workflow.
Free tools Windows power users keep installed
One-click scans. No signup required.
Which Mininet installation method should you choose?
| Method | Best fit | Main trade-off |
|---|---|---|
| Prebuilt Mininet VM | Beginners, quick setup, or users whose host is not Linux | Requires virtualization and runs Mininet inside a guest Ubuntu system |
| Install from source | Native Ubuntu setup, choosing a source revision, or selecting components | Requires cloning the repository and running an installer |
| Ubuntu distribution package | A short, system-managed install when the release repository has a suitable package | Availability and version depend on the Ubuntu release; the package may lag behind |
The Mininet project calls its pre-packaged Ubuntu VM the easiest way to get started. Its download guidance also describes source installation and distribution packages, while cautioning that distribution packages may be older: Mininet Download/Get Started.
#1 Best Overall
Method 1: Start with the prebuilt Mininet VM
Choose the VM when convenience matters more than installing Mininet into your existing Ubuntu system. The image bundles Mininet, OpenFlow tools, and kernel configuration changes intended to support larger Mininet networks. You download the image, install a virtualization platform, import and start the VM, then follow its setup notes and walkthrough.
The project’s setup notes list VirtualBox, VMware, QEMU, and KVM as virtualization options: Mininet VM Setup Notes. Those notes are historical, so confirm that the currently offered image imports and runs with your host operating system and virtualization software rather than assuming compatibility.
Method 2: Install Mininet natively from source
Use a source install if Mininet should run directly in your Ubuntu environment or if you need to choose a source revision and installation components. The official instructions assume a fresh Ubuntu or Debian system and recommend recent releases because they include newer Open vSwitch versions. They show this full installation sequence:
Outdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchPC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Rank #2
- 🚀 Latest Ubuntu 26.04 LTS (Long-Term Support) Get the newest stable release of Ubuntu 26.04 LTS with long-term updates, security patches, and enterprise-grade reliability.
- 💻 Boot, Install, or Run Live Use as a live USB to test without installing, or install Ubuntu alongside or replacing Windows/macOS. No technical experience required.
- 🛠️ System Repair & Recovery Tool Perfect for troubleshooting, recovering files, fixing boot issues, or reviving slow or corrupted systems.
- ⚡ Fast & Portable USB Drive Preloaded on a high-speed USB flash drive—no downloads or setup required. Plug in and start instantly.
- 🔒 Secure & Privacy-Focused OS Ubuntu provides built-in security, regular updates, and no forced tracking—ideal for privacy-conscious users.
git clone https://github.com/mininet/mininet
cd mininet
sudo util/install.sh -a
The -a option installs the full set of components included in the VM. For Mininet, the user switch, and Open vSwitch, the page lists sudo util/install.sh -nfv instead. The installer also supports choosing a source/build directory; consult the project’s current installation instructions for options before running it.
Selecting a source revision and Python expectations
The project’s instructions show checking out a tagged version before running the installer, which is useful when a project depends on a particular Mininet revision. Mininet 2.3.0, announced by the Mininet Project Contributors on February 28, 2021, added Python 3 support alongside Python 2 and source installation on Ubuntu 20.04 LTS and Debian 10+: Mininet 2.3.0 announcement. That release note is not a statement that 2.3.0 is the latest release today, and older user scripts may have their own Python requirements; check those requirements before choosing an interpreter or revision.
Method 3: Install the Ubuntu package with apt
A package install is the shortest route when your Ubuntu release’s repositories include Mininet and the available version meets your needs. The project gives this command:
Rank #3
- 1. 9-in-1 Linux:32GB Bootable Linux USB Flash Drive for Ubuntu 24.04 LTS, Linux Mint cinnamon 22, MX Linux xfce 23, Elementary OS 8.0, Linux Lite xfce 7.0, Manjaro kde 24(Replaced by Fedora Workstation 43), Peppermint Debian 32bit (being replaced by MX Linux 32bit) for older PC, Pop OS 22, Zorin OS core xfce 17. The versions you received might be latest than above as we update them to latest/LTS when we think necessary.
- 2. Try or install:Before installing on your PC, you can try them one by one without touching your hard disks.
- 3. Easy to use: These distros are easy to use and built with beginners in mind. Most of them Come with a wide range of pre-bundled software that includes office productivity suite, Web browser, instant messaging, image editing, multimedia, and email. Ensure transition to Linux World without regrets for Windows users.
- 4. Support: Printed user guide on how to boot up and try or install Linux; please contact us for help if you have an issue. Please press "Enter" a couple of times if you see a black screen after selecting a Linux.
- 5. Compatibility: Except for MACs,Chromebooks and ARM-based devices, works with any brand's laptop and desktop PC, legacy BIOS or UEFI booting, Requires enabling USB boot in BIOS/UEFI configuration and disabling Secure Boot is necessary for UEFI boot mode. Packing: The bootable USB drive comes in a colored PET/CPP zipper bag with instructions on how to get started. The box pictured is not included.
sudo apt-get install mininet
Its Ubuntu examples name releases 18.04 and 20.04, and the page warns that distribution packages may provide an older version. Those examples do not verify availability or version for Ubuntu 22.04, 24.04, or another current release. Before installing, check your release’s configured repositories and package version; after installation, the project suggests checking Mininet with:
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →mn --version
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Test that Mininet and Open vSwitch work
Once installation finishes, run the project’s basic Mininet/Open vSwitch connectivity test:
sudo mn --switch ovsbr --test pingall
This starts a simple emulated network and checks whether its hosts can reach one another. A successful result is a useful smoke test, not a benchmark of performance on your machine or a validation of a physical network design.
Rank #4
If Mininet reports that Open vSwitch is not working
The test depends on Open vSwitch. The Mininet download page’s troubleshooting guidance says to ensure openvswitch-switch is installed and running, and gives the following example commands:
sudo apt-get install openvswitch-switch
sudo service openvswitch-switch start
These are examples from the project page, not universal instructions for every Ubuntu release. Check the current package and service-management guidance for your release before using them.
What to do after the smoke test
After the basic test passes, the Mininet Walkthrough introduces the Mininet CLI and topologies. It assumes you already have either the Mininet VM or a native Ubuntu installation with Mininet and OpenFlow tools installed.
The project’s sample workflow illustrates a topology with 64 hosts and 9 switches and reports that its pingall example took about 45 seconds on the author’s laptop. That is a single example from that machine, not a general performance expectation: Mininet Sample Workflow.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




