Coder Social home page Coder Social logo

eve-ng-lab's Introduction

How to Install EVE-NG on Microsoft Hyper-V

In this blog, I will guide you through the process of installing EVE-NG on Microsoft Hyper-V. Typically, I use GNS3 on VMware as recommended by the documentation. However, if you want to use a Docker Desktop on Windows and WSL2, there is a glitch: Microsoft Hyper-V and WSL2 do not coexist well with VMWare on the same machine.

During my research, I found an article titled How to install EVE-NG on Microsoft Hyper-V, written on November 15, 2018. The tutorial was based on Ubuntu Server 16.04. I applied the same procedure to Ubuntu Server 22.04 but did not succeed due to differences in the Ubuntu versions used.

The EVE-NG CE Community Edition Cookbook provides a procedure for BM Server Installation Ubuntu legacy ISO for Server 22.04. By combining both tutorials, I managed to get EVE-NG running on Microsoft Hyper-V.

Let's dive into the process!

Ubuntu Server Installation on Hyper-V

Step 1: Download Ubuntu Server 22.04 Image

First, download the Ubuntu Server 22.04 image from the official Ubuntu website.

Step 2: Create a New VM in Hyper-V

  1. Open Hyper-V Manager and click on New Virtual Machine.
  2. Name: Enter EVE-NG.
  3. Generation: Select Generation 2.
  4. Startup Memory: Allocate 8GB/4GB and disable dynamic memory.
  5. Networking: Use an existing Default vSwitch connected to the Internet.
  6. Hard Disk: Set the size to a minimum of 60GB.
  7. Installation Options: Choose “Install the operating system from a bootable image file” and select the Ubuntu Server 22.04 image.
  8. Click “Next,” then “Finish.” Hyper-V will create your VM.

Step 3: Configure VM Settings

  1. In Hyper-V Manager, select your VM, right-click, and choose “Settings.”
  2. Under Security, disable Secure Boot (necessary for ISO boot).

Secure Boot

  1. Under Firmware, Set the boot order.

Boot Order

  1. Under Processor, increase the number of virtual processors according to your hardware.

Step 4: Install Ubuntu Server

  1. Connect to the VM and start it. The Ubuntu installation will begin.
  2. Follow the steps in the EVE-NG CE Community Edition Cookbook for BM Server Installation Ubuntu legacy ISO.
  3. After installation, reboot the server.

Install Complete

EVE-NG Pre-Installation

Step 1: Initial Configuration

  1. After rebooting, log in with the user created during the installation and get root access:
$ sudo su
  1. Change the root password (example: in my case eve):

Root Password

  1. Allow SSH root login:
root@eve-ng:~# vim /etc/ssh/sshd_config

Change:

PermitRootLogin prohibit-password

To:

PermitRootLogin yes

Save settings (:wq) and restart the SSH service:

root@eve-ng:~# service sshd restart

Step 2: EVE-NG Installation

  1. SSH to your EVE-NG server using an SSH client like Putty and log in as root.
  2. Update and upgrade the system:
$ apt update
$ apt upgrade
  1. Run the EVE-NG Community Edition installation script:
$ wget -O - https://www.eve-ng.net/jammy/install-eve.sh | bash -i
  1. Reboot the server after the installation completes.

  2. Go back to Hyper-V, right-click on your VM and click Connect.

EVE Connect

Step 3: First Boot Configuration

Follow the official guide for the first boot configuration.

Step 4: Enable Nested Virtualization

  1. Open a PowerShell prompt as administrator on your PC and run the following command:
$ Set-VMProcessor -VMName "EVE-NG" -ExposeVirtualizationExtensions $true
  1. Start your EVE-NG VM again in the Hyper-V console. The message neither Intel VT-x nor AMD-V found on Hyper-V should not appear, and you should be able to connect to the web interface using your <server ip>.

And there you have it! You now have a running EVE-NG environment on Microsoft Hyper-V. This setup allows you to emulate network scenarios efficiently and leverage the powerful features of EVE-NG.

eve-ng-lab's People

Contributors

sydasif avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.