UbuntuUbuntu Based

How To Install GreenCloud Simulator on Ubuntu 22.04 LTS

Install GreenCloud Simulator on Ubuntu 22.04

In this tutorial, we will show you how to install GreenCloud Simulator on Ubuntu 22.04 LTS. For those of you who didn’t know, GreenCloud is a sophisticated packet-level simulator designed to model energy-aware data centers and clouds. Built on top of the widely-used NS2 platform, GreenCloud enables researchers and developers to evaluate the performance and energy efficiency of various resource management strategies, virtual machine scheduling algorithms, and network protocols in cloud computing environments.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the GreenCloud Simulator on Ubuntu 22.04 (Jammy Jellyfish). You can follow the same instructions for Ubuntu 22.04 and any other Debian-based distribution like Linux Mint, Elementary OS, Pop!_OS, and more as well.


  • A server running one of the following operating systems: Ubuntu 22.04, 20.04, and any other Debian-based distribution like Linux Mint.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • To ensure a smooth installation and optimal performance, your machine should have at least 4GB of RAM and 20GB of free disk space.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install GreenCloud Simulator on Ubuntu 22.04 LTS

Step 1. To ensure a smooth installation process, it’s crucial to update your system packages to their latest versions. This step helps prevent potential compatibility issues and security vulnerabilities. Open your terminal and run the following commands:

sudo apt update
sudo apt upgrade

Step 2. Installing GreenCloud Simulator on Ubuntu 22.04.

To begin the installation process, you’ll first need to download the GreenCloud simulator package from the official website using wget command:

wget https://download.uni.lu/GreenCloud/greencloud-v2.1.2.tar.gz

Once the download is complete, you’ll need to extract the contents of the compressed package. Navigate to the directory where the package was downloaded and run the following command to unzip the package:

tar zxvf greencloud-v2.1.2.tar.gz

GreenCloud simulator relies on several dependencies and libraries that need to be installed on your Ubuntu system before proceeding with the installation. These dependencies include essential build tools, development libraries, and specific versions of the GNU Compiler Collection (GCC).

To install the required dependencies, open a terminal and run the following commands:

sudo apt update
sudo apt install build-essential autoconf automake libxmu-dev gcc-4.4 gcc-4.4-multilib

During the installation process, you may be prompted to confirm the installation of certain packages. Simply press “Y” and then Enter to proceed with the installation.

With the dependencies installed, you’re now ready to compile and install the GreenCloud simulator. Navigate to the “greencloud-v2.1.2” directory that was created when you extracted the downloaded package:

cd greencloud-v2.1.2

Inside this directory, you’ll find the necessary configuration and installation scripts. To begin the compilation process, run the following command:


Once the configuration process is completed successfully, you can start the actual installation by running the following command:


This script will compile the GreenCloud source code and install the simulator files in the appropriate directories within the “greencloud-v2.1.2” folder. The compilation process may take some time, depending on your system’s hardware specifications.

Step 3. Running Sample Simulation.

To verify that the GreenCloud simulator is installed correctly and to familiarize yourself with its basic functionality, you can run the sample simulation provided with the package. The sample simulation demonstrates a simple scenario with 144 servers and 1 cloud user, allowing you to observe the simulator’s behavior and output.

To run the sample simulation, navigate to the “greencloud-v2.1.2” directory (if you haven’t already) and execute the following command:


This command will launch the GreenCloud simulator and load the sample simulation configuration. The simulator will open in a browser window, displaying the simulation progress and various metrics.

The sample simulation configuration files are located in the “greencloud-v2.1.2/simulation” directory. The main configuration file is named “main.tcl“, which defines the overall simulation settings, such as the number of servers, users, and simulation duration. Other important files include “topology.tcl“, which specifies the network topology, and “dc.tcl“, which defines the data center characteristics.

Feel free to explore these configuration files and experiment with different settings to observe how they impact the simulation results. You can modify the parameters, such as the number of servers, user workload, or data center power consumption, to analyze different scenarios and evaluate the performance and energy efficiency of the simulated cloud environment.

Congratulations! You have successfully installed the GreenCloud Simulator. Thanks for using this tutorial for installing the GreenCloud Simulator on Ubuntu 22.04 LTS Jammy Jellyfish system. For additional help or useful information, we recommend you check the GreenCloud Simulator website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button