How to install ContikiOS and run Cooja Simulator on Windows 11 with Oracle VM VirtualBox

Mirza Akhi
2 min readJul 20, 2023

--

Cooja is a Java-based simulator for wireless sensor networks included with the Contiki Operating System.

Simulating on Cooja

In the field of the Internet of Things (IoT), it is widely used because it allows simulation from the physical to the application layers, as well as emulation of the hardware of sensor nodes.

If you wish you can watch the tutorial on my YouTube Channel

Below are the step-by-step instructions for installing

1. Ensure that VM VirtualBox is installed. If you don’t have installed yet download it from the following link

2. Here is the URL to download the Contiki Operating System 3.0

3. Once the download is complete, extract all InstantContiki3.0 files

4. Launch VM VirtualBox and click the New button

5. As you can see in the screenshot below, the name should be Contiki3.0

6. The type of operating system is Linux and the version is Ubuntu 32-bit

7. Click next to continue

8. You can select up to 2048 MB of memory or you can increase based on your RAM size

9. Click the folder icon to add an existing virtual hard drive

10. Choose Instant_Contiki_Ubuntu_12.04_32-bit from the list

11. Follow the instructions of the Oracle VM VirtualBox to finish the installation of Contiki 3.0 OS

Once that has been done

In Oracle VM VirtualBox, start Contiki3.0

The Terminal command is shown in the screenshot

cd contiki/tools/cooja

ant run

There will be an error, type the command below

git submodule update — init

Run the command again at this point

ant run

The Cooja simulation window can be seen at the bottom

Cooja Simulator Window

Congratulations! You have successfully run the Cooja Simulator.

--

--

Mirza Akhi

PhD Researcher | SFI Centre for Research Training in Foundations of Data Science | UL