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:
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:
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:
save, exit and reboot, done!
here is Chinese version
http://note.zn2.us/eveng.htm
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
here is Chinese version
http://note.zn2.us/eveng.htm
Last edited: