This blog outlines the process for installing EVE-NG in Google Cloud in 15 minutes or less. It is the first post to accompany the video series on Network Collective YouTube channel.
Published on February 28, 2021 by Tony E.
4 min READ
This is an update from the content I released back in 2018. Thanks to the EVE-NG development team this process can be completed in just 15 minutes. I released a video series on Network Collective covering this topic and other EVE-NG Tips and Tricks.
You can use your existing Google or Gmail account or create a new account for google cloud. https://cloud.google.com If this is your first time Google will give you a $300 free credit. This is more than enough to test this process and practice a bunch of labs.
Navigate to: Compute Engine –> VM instances and switch to your new Project from the upper left hand drop down.
NOTE: This takes a few minutes.
Once the Compute Engine is ready, click on the “Launch Cloud Shell” icon (in the upper right).
Make sure your Cloud Shell session is set to your newly created project. (It should have your project name in the command prompt.)
Enter the command: (this is 1 long command)
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"
NOTE: It could take a few minutes to return to an interactive prompt. Be patient. You are ready when the shell returns “STATUS READY”:
[email protected]:~ (test-305418)$ 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/li censes/enable-vmx" Created [https://www.googleapis.com/compute/v1/projects/test-305418/global/images/nested-virt-ubuntu]. NAME PROJECT FAMILY DEPRECATED STATUS nested-virt-ubuntu test-305418 READY [email protected]:~ (test-305418)$
Now, close the Cloud Shell terminal.
Click on the “Create” button in the VM instances frame in the center of the screen.
Click “Create” at the bottom.
Wait for your VM to be provisioned, this could a minute or two.
Once your VM is provisioned it will automatically be started. Use the built-in SSH feature to connect to the VM’s console.
Once you’re SSH’d into the VM become root, grab the installation script, update the package manager and upgrade current packages.
sudo -i wget -O - http://www.eve-ng.net/repo/install-eve.sh | bash -i apt update apt upgrade
Reboot the VM.
Connect to it again via the built in SSH.
You will be presented with a configuration wizard.
When you are greeted with the wizard to enter a root password, don’t!
CTRL and press
C, become root
This will restart the wizard and allow you to change root’s password.
Follow the initial configuration wizard.
After hitting enter, the setup wizard will kick you out.
At this point the installation is finished. You should have a working EVE-NG server in Google Cloud.
Next, you should: