How to install EVE-NG on Microsoft Hyper-V • AboutNetworks.net (2024)

Recently, my license for Cisco VIRL expired and I wanted to test alternatives to have a lab on my laptop.

I got used to install the client and the server parts of VIRL on my laptop, to not have to worry about connectivity when I want to do a lab or a demo to a colleague or a customer. With the exceptional opportunities of the different cloud solutions actually, this is probably not the best solution, but it suits me well for a small lab and I’d like to continue to have this possibility.

So, as an alternative to Cisco VIRL, I had two obvious choices: GNS3 or EVE-NG.

For running one of the three solutions (including VIRL) on a laptop under Windows 10, it is recommended and documented to use VMware Workstation. But have a problem here, I use Microsoft Hyper-V for other VMs tests, as well as for Docker for Windows. And VMware Workstation does not coexist well with Microsoft Hyper-V on the same machine. For example, to start a VM under VMware workstation when Hyper-V start as a service, I must first stop Hyper-V, do a reboot, and then I can start the VM under VMware. Not really sexy.

So, I searched a documentation or a blog post about how to install and run GNS3 or EVE-NG under Hyper-V. Because, after all, this is just an Ubuntu server running on a VM.

For GNS3, I found a pretty good blog, here: https://cisco.zacandsarah.com/node/1
And after two hours I could run my first simulation without any problem.(Note: this blog does not respond from time to time, and currently it seems down).

Then, I wanted to test the same with EVE-NG. In this case, did not find any documentation or post of someone who has already installed it under Hyper-V. I threw a bottle to the sea (Twitter) and got a promising answer that EVE-NG has been successfully installed on Microsoft Azure (see it on YouTube here, a great videos from @theLANtamer). So, I thought, let’s try on Hyper-V!

Some basic prerequisites:

Let’s create the VM under Hyper-V and make the Ubuntu install:

  1. Download Ubuntu 16.04 LTS ISO (be careful, Ubuntu 18 is NOT supported): http://releases.ubuntu.com/16.04/
  1. Create a new VM under Hyper-V:
    • Click on “New Virtual Machine” on Hyper-V
    • Name: EVE-NG (you can use any other name, but we will need this name after for a PowerShell change to activateIntel VT-x or AMD-V, so avoid special characters)
    • Generation 2
    • Startup Memory: I have 12GB on my laptop, so I assigned 8GB, but it depends on your own machine. With dynamic memory enabled.
    • Networking: use a vSwitch already existing, connected to the Internet. You must have Internet access during the installation, for the updates.
    • Hard-Disk: create a virtual hard-disk, I assigned 300GB. It’s a lot but if you have many images on EVE-NG, you don’t need to resize the disk later. So up to you.
    • Install the operating system from a bootable image file:and specify the Ubuntu ISO image you just downloaded.
    • Click next, then finish. Hyper-V will now create your VM.
    • Once created, on Hyper-V, select your VM, right-click and choose Settings…
    • Go under Security and disable Secure Boot. Otherwise the boot with the ISO will not start:

    • Go under Processor and increase the number of virtual processors, according to your hardware.
    • Click OK.
    • Connect to the VM and start it. The Ubuntu installation will start, with this message:

(Click on the image to see it full-size)

  1. Ubuntu Setup:
    • Install Ubuntu Server (just hit enter)
    • Language: English
    • Location: United States
    • Configure keyboard: Choose your keyboard or use automatic detection. Having the right keyboard will help you to type correctly the password later.
    • If the network of your vSwitch have DHCP, the installation continue automatically, if not please setup IP/mask/GW and DNS IPs manually
    • Hostname: eve-ng
    • Domain name: anything you want, or example.com
    • Full name of user: anything makes you happy
    • Username of your account: user (this will be used first time login in to Ubuntu)
    • Password: enter password, confirm enter password again
    • Use weak password: YES (you will see it only if you entered a weak password above)
    • Encrypt your home directory: NO
    • Configure Clock: if your DNS IP is set right, time zone is set automatically
    • Partition disks: use entire disk and setup LVM
    • Partition disks: As you have only one disk, just click continue
    • Write changes to disk and create LVM: YES
    • Amount of volume: leave the entire offered size
    • Force UEFI Installation: YES
    • Write changes to disk: YES
    • Http proxy: NO. Except if you are using a proxy, then configure it for internet reachability.
    • Configuring task: Install security updates automatically
    • Software selection: IMPORTANT: add Open SSH server to the selection (mark with spacebar).
    • Install GRUB boot loader: YES (must be automatic)
    • At the end of the installation: reboot

After the reboot, stay on the Hyper-V terminal of your VM to change some first settings. After that, we will use SSH.

This correspond, with some small changes, to the Phase 2 of the bare-install of EVE-NG documentation, here.

  1. After the reboot, login with your user created during the installation part and get root access:
Login: your_userPassword: your_passwordWelcome to Ubuntu 16.04.5 TLS ...$ sudo su[sudo] password for your_user: your_password
  1. Change the root password. Here I use “eve” but of course you can choose your own root password:
root@eve-ng:~# sudo passwd rootEnter new UNIX password: eveRetype new UNIX password: evepasswd: password updated successfully
  1. Change the hosts file to look as below. I still not see the goal of this change but it’s on the documentation:
    (If you don’t know VI, you can use nano or another editor of your choice. To install nano, type: apt-get install nano )
root@eve-ng:~# vi /etc/hosts127.0.0.1 localhost127.0.1.1 eve-ng.example.com eve-ng
  1. Allow the root user to access via SSH [optional]:
root@eve-ng:~# vi /etc/ssh/sshd_configChange:PermitRootLogin prohibit-passwordTo:PermitRootLogin yes
  1. Save settings (:wq) and restart the sshd service:
root@eve-ng:~# service ssh restart

Before the EVE-NG community installation, we need to check the Internet access and the domain-name resolution, with the command:

root@eve-ng:~# ping icmp.canireachthe.netPING icmp.canireachthe.net (209.206.55.10) 56(84) bytes of data.64 bytes from icmp.meraki.com (209.206.55.10): icmp_seq=1 ttl=51 time=176 ms64 bytes from icmp.meraki.com (209.206.55.10): icmp_seq=2 ttl=51 time=177 ms64 bytes from icmp.meraki.com (209.206.55.10): icmp_seq=3 ttl=51 time=176 ms^C

Do you like this host (canireachthe.net)? Another smart Cisco Meraki idea 🙂

Now, we are ready for the install, be sure you are logged as rood and type:

root@eve-ng:~# wget -O - http://www.eve-ng.net/repo/install-eve.sh | bash -i

All the installation steps are in this script, there is nothing to do. Go get yourself a coffee and relax.

After a while, the installation is complete, reboot the server:

root@eve-ng:~# reboot

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

How to install EVE-NG on Microsoft Hyper-V • AboutNetworks.net (3)

Click start. During the boot, you will see this warning message on the console:

neither Intel VT-x or AMD-V found on Hyper-V

We will solve this later.

Now, you can follow this guide for the first boot configuration:
https://www.eve-ng.net/index.php/documentation/installation/howto-configure-eve-during-first-boot/

Once done, come back here for the next few steps.

If you have not done so already – this was at the end of the guide for the first boot configuration – do anupgrade to latest version, and then shutdown the server:

root@eve-ng:~# apt-get update(... skipped ...)root@eve-ng:~# apt-get upgrade(... skipped ...)root@eve-ng:~# shutdown now

Finally, we must enable nested virtualization. As I know, the only way to do this is with PowerShell. So, open a PowerShell prompt as administrator on your PC and write this command:
(Where “EVE-NG” is the name of the VM)

> Set-VMProcessor -VMName "EVE-NG" -ExposeVirtualizationExtensions $True

Now, start your EVE-NG VM again with the Hyper-V console, the message “neither Intel VT-x or AMD-V found on Hyper-V” should not appearanymore.

Now, you should be able to connect to the web interface with HTTP – the IP address of the server should appear in the console, just on top of the login:

How to install EVE-NG on Microsoft Hyper-V • AboutNetworks.net (4)

Username: admin
Password: eve

Congratulations, your EVE-NG is ready!

The next steps are to import and use the images.I will not spend too much time on it because there is already a lot of documentation on this subject. But, there are a few things to keep in mind:

  • Images must be installed on the corresponding directory:
  • The IOS/IOU images need a license. I let you google this point.
  • Read the how-to to upload and use the images, this is important: http://www.eve-ng.net/documentation/howto-s
  • Fix the permissions issues with the wrapper:/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
  • To copy the images from your PC to the VM, you can use SCP. I use Putty pscp.exe

AsI wrote at the beginning of this post, with the current possibilities offered by the cloud, at ever lower prices, it is not necessarily useful to have the EVE-NG / GNS3 / VIRL server directly on his machine. Especially that the resources are limited if you want to make a big lab or start few Nexus 9k for example. But, it may be useful to be able to start a small lab in 2 minutes on his own PC, without worrying about Internet connectivity.

For more information, I recommend the following links:

Happy labbing!

Did you like this article? Please share it…
How to install EVE-NG on Microsoft Hyper-V • AboutNetworks.net (2024)

FAQs

Can Eve-Ng run on Hyper V? ›

Because EVE-NG runs many hypervisor, it's strongly recommended a physical server dedicated for it, without any virtualization software. Mind that nested virtualization is not a good thing and can lead to poor performance. One of the following: Ubuntu Xenial Xerus 16.04.

How do I install Eve-Ng step by step? ›

Installation
  1. EVE System Requirements.
  2. Installation.
  3. AlienVault Cybersecurity OSSIM. Cisco FirePower images set. Juniper vSRX 3.0 Version 18.X and later. pfSense FW 2.5.2. Plixer Scrutinizer Netflow.
  4. EVE-PRO Upgrade from v4.x to v5.x. EVE Pro v4 content migration to V5 (rsync)

How do I install Eve-Ng on Windows? ›

How to Install Windows 10 in EVE-NG - YouTube

Can I install Eve-Ng in VirtualBox? ›

Open VirtualBox and click on File ->Import Appliance from top menu as in the figure below. Navigate to the prevoiusly extracted EVE-NG compressed file, select and OVF files and click Next.

How do I add a virtual machine to Eve-Ng? ›

Install EVE-NG with VMWare Workstation Player - YouTube

What is the difference between Eve-ng pro and community? ›

Rich HTML text editor for text and objects management in the lab. Admin can manage other user running labs and nodes.
...
EVE-NG Community VS EVE-NG Pro.
FEATUREEVE-NG COMMUNITYEVE-NG PRO
Shared labNot supportedShared lab folder for the users
Hot add Network connectionsNot supportedYes
7 more rows
Feb 28, 2019

How do I find my Eve-Ng IP address? ›

How to change/configure ip address on EVE-NG or UNetLab latest

Which is better Gns3 or Eve-Ng? ›

Compared to eve-ng, gns3 has the ability to allow you to upload the vm directly into the software but may need some tweaking depending on the type of image. Gns3 does in my opinion have more of a learning curve when initially getting the setup going compared to eve-ng that doesn't need any tweaking of the images.

How do I use putty with Eve-Ng? ›

Configure eve ng to use securecrt / Eve-ng securecrt not working / eve ...

How do I install an ISO file in Eve Ng? ›

How to Install EVE-NG Using ISO File in VM Workstation - YouTube

How do I access Eve Ng from my browser? ›

EVE-NG Web Console and Graceful Shutdown - YouTube

How do I access Eve Ng? ›

Start the EVE-NG virtual Machine in VMware Player. The VMware Player console will show the EVE-NG login prompt. The default root password is displayed above the login prompt. In the VMware Player console window, log into the EVE-NG virtual machine using root password displayed on the screen.

What is difference between ISO and ova? ›

ISO = International Organization for Standardization which specifies the file system on an optical medium . Ova&Ovf are used for Virtual Box/VM Ware. (ISO file can also be used). But you can use Ova or Ovf to install operating system without Vm Ware or Virtual Box.

How do I install Eve Ng on VMware player? ›

Installing EVE-NG in VMware Workstation Player - YouTube

How do I connect Eve Ng to VMware? ›

How to connect EVE-ng to Vmware / connect eve-ng to real network

Top Articles
Latest Posts
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 6042

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.