Sunday, March 29, 2020

HOW TO: Set-up EVE-NG via Google Cloud Platform (GCP) - PART 1

To get you started here's the PART 1 of the EVE-NG installation. This is about registering an account in GCP and creating a VM instance.


  1. Register for an account using your Gmail on the Google Cloud Platform (GCP)

  1. Create a new project.


  1. Go to Project dashboard.
  2.  On the upper right-hand corner, click Activate Cloud Shell and run the script below. Hit Y. It will run for 3 minutes. Status is "READY" when completed.
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" 



5. Go to Compute Engine from the upper left-hand corner to create a VM Instance. A screen pops up and select Create.

6. Enter the following information. I did not touch the other settings.

  • Name
  • Region: Select the DC you want the VM to be hosted (permanent)
  • Zone: Select the DC Zone you want the VM to be hosted (permanent)
  • Machine type: Select the memory for your VM. I used 8 vCPU, 30 GB memory for this example. The higher the memory, the more expensive it is.

Remember that you have a free credit of $300. If you're gonna run only small labs, you can choose a lesser memory.



7. Under Boot disk, click Change and under Custom Images select the image "nester-virt-ubuntu", and I put 30 GB for the boot disk size as an example. Click Select.

8. From the bottom of the screen under the Firewall, select "Allow HTTP traffic".

9. Under the "Management, disk, networking, SSH keys", select Networking. Click the pencil icon, and from the Network Service Tier select Standard and click Done.


10. Click create to start creating the VM Instance.

11. Verify if the VM is accessible via SSH. 



You have now created your own VM instance!

I will post the PART 2 of the installation this week. Or you can follow this video below that I used as a guide which I mentioned in my previous post.

How to run EVE-NG in the Cloud

IMPORTANT: Take note to STOP the VM if you're not using it, else you'll get billed from your free credit.


TIP: You can manage the VM using your phone by downloading the app "Cloud Console". So you can spin-up the VM before you get started. And stop the VM if you forgot to do it from the browser.
 

     



No comments:

Post a Comment