run EVE-NG in LXC success

Yogorov

Renowned Member
Sep 1, 2015
21
1
66
Hi everyone:

I'd like share how to run EVE-NG in LXC success

here is my environment:
Proxmox VE 6.4
kernel: 5.4.162-1-pve
LXC template:ubuntu-16.04-standard_16.04.5-1_amd64.tar.gz
LXC NIC:2

Create CT in normal way, after created CT
edit /etc/pve/lxc/CTID.conf
add 2 line:
features: nesting=1
lxc.cgroup.devices.allow: c 10:232 rwm

start the CT and login, here is command I run:

Code:
apt-get install gnupg2 aptitude
aptitude full-upgrade
wget http://www.eve-ng.net/repo/eczema@ecze.com.gpg.key
apt-key add eczema@ecze.com.gpg.key
apt-get update
apt-get install software-properties-common
add-apt-repository "deb [arch=amd64] http://www.eve-ng.net/repo xenial main"
apt-get update
apt-get install eve-ng

the last command install eve-ng may very long , may fail, may hang
it's ok just wait for finish about 20 mins if over 30mins still not finish you can press ctrl+c to break
then this command:
apt-get -f install
apt-get install eve-ng

when it done
edit /etc/rc.local
add these line:
Code:
#for openSwitch
cd /dev
mkdir net
mknod net/tun c 10 200
chmod 0666 net/tun

save, exit and just shutdown this LXC

go to pve web setting this LXC page, Network page
remove all IP, just IP not NIC
use Static and leave IP blank
cause this IP setting will conflict with eve-ng Wizard
start LXC
use this command enter LXC
pct enter CTID
edit /etc/network/interfaces
here is my example:
Code:
auto lo
iface lo inet loopback

# The primary network interface
iface eth0 inet manual
auto pnet0
iface pnet0 inet static
    address 192.168.1.2
    netmask 255.255.255.0
    gateway 192.168.1.254
    dns-domain example.com
    dns-nameservers 192.168.1.1
    bridge_ports eth0
    bridge_stp off


# Cloud devices
iface eth1 inet static
auto pnet1
iface pnet1 inet static
    address 10.0.2.1
    netmask 255.255.255.0
    bridge_ports eth1
    bridge_stp off
save, exit and reboot, done!

here is Chinese version
http://note.zn2.us/eveng.htm
 
Last edited:
be careful this:
EVE-NG install in LXC still has different with KVM

known issue:
vSwitch create LACP may fail
LACP mode on will work
LACP mode active won't work

EVE-NG in KVM doesn't have such issue
 
Last edited:
update:
EVE-NG install in LXC

known issue:
vSwitch network unstable hard to use it
the reason may LACP only can use mode on,
when you create HA vSwitch or use MLAG network .... thoese functions require LACP mode active hence MLAG or HA will fail
 
i've got the error below bro after putting this command: add-apt-repository "deb [arch=amd64] http://www.eve-ng.net/repo xenial main"

"Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)"

Is this process to install eve-ng in proxmox still works?
 
i've got the error below bro after putting this command: add-apt-repository "deb [arch=amd64] http://www.eve-ng.net/repo xenial main"

"Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)"

Is this process to install eve-ng in proxmox still works?
Are you use this template:ubuntu-16.04-standard_16.04.5-1_amd64.tar.gz to create CT?
add-apt-repository this command is for ubuntu not for debian or host pve
 
Last edited:
yes bro, i used this "ubuntu-16.04-standard_16.04.5-1_amd64.tar.gz" to create the container.

any solution for this? thanks

1669509099928.png
 
1669591784100.png


I saw this in eve-ng website. it says repo for Ubuntu16 were closed. is this the reason I get the "Clearsigned file isn't valid" error?
 
yeah, I guess it's source close , thanks for clarify it!
 
Last edited:
Hi Bro, I tried to used an ubuntu 20.4.5 container and install eve-ng on it and it worked, but I'm having problem in running QEMU devices like CISCO IOSv. They will not start.

It can start dynamips by the way. Only QEMU devices won't. Its like they freeze. It will started when you click start node but the device still in stopped.

I provided a screenshot of the error in eve-ng logs.

I hope you can help me make it work. thank you.
 

Attachments

  • Capture_125854.PNG
    Capture_125854.PNG
    37.7 KB · Views: 11
  • Capture1_125850.PNG
    Capture1_125850.PNG
    58.6 KB · Views: 11
  • Capture2_010308.PNG
    Capture2_010308.PNG
    17.6 KB · Views: 11

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!