EVE-NG in the Cloud

I have been running GNS3 since last couple of years but when it comes to a large scale network simulation with high end devices my Laptop, the resources doesn’t support. This brought me to seeking a way to run EVE-NG on scalable and expandable resources.

Configuring Eve-NG on Google Compute Engine

In this tutorial I will walk-through on how to deploy Eve-NG on the cloud and more specifically on Google Compute Engine. I’ve tried Eve-NG on AWS and Azure but neither of them actually worked since nested virtualization isn’t supported. Google Compute Engine was also the cheapest option. It provide $300 free credit during registration which is valid for 12 Months. If you use the GCP VM only once required, the approximate uptime with variable resources are estimated below.

CPURAMPersistent StorageStatic IPUptime
8 vCPU30 GB50 GBNA $194.18/month (About 45 Days of continuous running)
1 vPCU3.75 GB50 GBNA $26/Month (About 11 Months of continuous running)
4 vPCU4 GB50 GBNA $78/Month (About 3.8 Months of continuous running)

Go to https://cloud.google.com/products/calculator/ to estimate the cost.

Step 1: Connect to Google Cloud Platform (GCP)


Google Cloud: FREE $300 | Sign into GCP. Create a new GCP account if you do not already have one. You need to add a billing account by adding a credit card details. Google will not deduct any amount from your card but it will verify your card details.

Step 2: Create new project.

By default, GCP will offer you a project named “My First Project”. It can be used as well.
Click “NEW PROJECT” to create a new one.
Enter your project name, and confirm “CREATE

Step 3. Create a VM Instance.

Navigate: Navigation Menu/Compute Engine/VM Instances
Preparation of your Project can take some time. Wait until the VM Instance window finishes deployment and then press the “Create button”

Step 4: Create a Compute Image for VM Instance.

create a nested Ubuntu 16.04 image model. Copy and paste the below command into the shell. Use copy/paste. crtl +c/ctrl +v. It is single line command. Confirm with “enter”
gcloud compute images create nested-virt-ubuntu --source-image-project=ubuntu-os-cloud --source-image-family=ubuntu-1604-lts --licenses="https://www.google.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"
You will get the above output when your image is ready

Step 4. Creating Virtual Machine

Navigate: Navigation Menu/Compute Engine/VM Instances and press “Create
Attach Hardware – vPCU, RAM, Persistent Storage Disk & Mount the Custom Image
Edit your VM settings. Use your own region and zone. Choose your desirable CPU and RAM settings.
IMPORTANT: “Deploy a container image” must be UNCHECKED
Select Boot disk. Press Change. Select the custom boot images you created previously.
Choose HDD disk type and size. HDD size can vary depends of your needs
 Allow https traffic and create VM

Step 5. Pre-Installation Setup

Start the VM
Connect to the VM with the first option “Open in browser window”
Edit sshd_config to allow “root” user to login

Edit sshd_config to allow “root” user to login

nano /etc/ssh/sshd_config
PermitRootLogin yes
PasswordAuthentication yes

Login with SSH Putty now using “root”

Change interface name to “eth0”

nano /etc/udev/rules.d/70-persistent-net.rules

NAME=”eth0″ this must be configured as eth0 otherwize EVE-NG will now work.


shutdown -r now

Step 6: EVE-NG installation

Install GPG Key

wget https://www.eve-ng.net/repo/eczema@ecze.com.gpg.key
apt-key add eczema@ecze.com.gpg.key
apt update

Add Repository

add-apt-repository "deb [arch=amd64] https://www.eve-ng.net/repo xenial main"
apt update

Install EVE-NG

apt-get install eve-ng
apt-get install eve-ng

Step 7: Dockers installation

After EVE is rebooted, reconnect the SSH session:
!--Type command to become root:
sudo -i
!--Type command to update EVE:
apt update
!--Type command to Install Dockers:
apt install eve-ng-dockers

Step 7: Access TO EVE-NG

Use your public IP(External IP) for accessing EVE via https (Pro) or http (Community).

Default Username: admin & Password: eve

Leave a Reply