Bare metal installation from on new ubuntu kernel 5.4.0-72-generic release step-by-step. cookbook doesn't work
Posted: Fri Apr 23, 2021 11:25 am
Dear Team,
I have searched the forum thru, but seem not to have any topic found, which would have answered my particular question.
therefore, I am opening this one, hope, it will help me by my problem.
I try to introduce the EVE NG to our company and have some kind of issue by the installation of it on bare metal.
in the past, and so far, the EVE NG was present here as the virtual machine, and recently we got the hardware for this, which is conform to HCL.
I am following up the cookbook for bare metal installation, but the description there seems to be dedicated to only old Ubuntu release.
Unfortunately, I am restricted to use a very new Ubuntu Server version as per Ubuntu official page, and not allowed to use old one in our environment, even at the beginning...
so I got the official ISO image from Ubuntu:
ubuntu-20.04.2-live-server-amd64.iso
and got it installed on my hardware:
\\\
root@eve-ng:~# uname -a
Linux eve-ng 5.4.0-72-generic #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root@eve-ng:~#
\\\
I have followed up the cookbook instructions up to following point:
\\\
3.3.2 EVE Community Installation Phase 2
VE Community installation with the following one-line command and hit enter
wget -O - http://www.eve-ng.net/repo/install-eve.sh | bash -i
\\\
but after the execution of the abovementioned script I am NOT getting the EVE-NG Application installed.
it seems to be, that the new UBUNTU Server release has kind of uncompatibility issues in compare with the old one.
following is the log of the script execution:
\\\
root@eve-ng:~# pwd
/root
root@eve-ng:~# wget -O - http://www.eve-ng.net/repo/install-eve.sh | bash -i
Redirecting output to ‘wget-log’.
root@eve-ng:~# #!/bin/sh
root@eve-ng:~# # On Azure attach data disk
root@eve-ng:~# azure_disk_tune () {
> ls -l /dev/disk/by-id/ | grep -q sdc && (
> echo o # Create a new empty DOS partition table
> echo n # Add a new partition
> echo p # Primary partition
> echo 1 # Partition number
> echo # First sector (Accept default: 1)
> echo # Last sector (Accept default: varies)
> echo w # Write changes
> ) | sudo fdisk /dev/sdc && (
> mke2fs -F /dev/sdc1
> echo /dev/sdc1 /opt ext4 defaults,discard 0 0 >> /etc/fstab
> mount /opt
> )
> }
root@eve-ng:~#
root@eve-ng:~# uname -a | grep -q -- "-azure " && azure_disk_tune
root@eve-ng:~#
root@eve-ng:~# #Modify /etc/ssh/sshd_config with: PermitRootLogin yes
root@eve-ng:~# sed -i -e "s/.*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
root@eve-ng:~# wget -O - http://www.eve-ng.net/repo/eczema@ecze.com.gpg.key | sudo apt-key add -
--2021-04-23 09:22:23-- http://www.eve-ng.net/repo/eczema@ecze.com.gpg.key
Resolving www.eve-ng.net (www.eve-ng.net)... 51.89.118.57, 2001:41d0:701:1000::352
Connecting to www.eve-ng.net (www.eve-ng.net)|51.89.118.57|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1702 (1.7K) [application/pgp-keys]
Saving to: ‘STDOUT’
- 100%[=====================================================================================================================================================================================================>] 1.66K --.-KB/s in 0s
2021-04-23 09:22:23 (342 MB/s) - written to stdout [1702/1702]
OK
root@eve-ng:~# apt-get update
Hit:1 http://www.eve-ng.net/repo xenial InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
root@eve-ng:~# apt-get -y install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version (0.98.9.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@eve-ng:~# #sudo add-apt-repository "deb [arch=amd64] http://www.eve-ng.net/repo xenial main"
root@eve-ng:~# echo "deb [arch=amd64] http://www.eve-ng.net/repo xenial main" > /etc/apt/sources.list.d/eve-ng.list
root@eve-ng:~# apt-get update
Hit:1 http://www.eve-ng.net/repo xenial InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
root@eve-ng:~# #DEBIAN_FRONTEND=noninteractive apt-get -y docker-engine
root@eve-ng:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
eve-ng : PreDepends: eve-ng-guacamole (>= 2.0.3-87) but it is not going to be installed
Depends: eve-ng-guacamole but it is not going to be installed
Depends: linux-headers-4.9.40-eve-ng-ukms+ but it is not going to be installed
Depends: eve-ng-qemu (>= 2.0.5-24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@eve-ng:~# /etc/init.d/mysql restart
bash: /etc/init.d/mysql: No such file or directory
root@eve-ng:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
eve-ng : PreDepends: eve-ng-guacamole (>= 2.0.3-87) but it is not going to be installed
Depends: eve-ng-guacamole but it is not going to be installed
Depends: linux-headers-4.9.40-eve-ng-ukms+ but it is not going to be installed
Depends: eve-ng-qemu (>= 2.0.5-24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@eve-ng:~# rm -fr /var/lib/docker/aufs
root@eve-ng:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
eve-ng : PreDepends: eve-ng-guacamole (>= 2.0.3-87) but it is not going to be installed
Depends: eve-ng-guacamole but it is not going to be installed
Depends: linux-headers-4.9.40-eve-ng-ukms+ but it is not going to be installed
Depends: eve-ng-qemu (>= 2.0.5-24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@eve-ng:~# cp /lib/firmware/bnx2/*.fw /lib/firmware/4.9.40-eve-ng-ukms-2+/bnx2/
cp: target '/lib/firmware/4.9.40-eve-ng-ukms-2+/bnx2/' is not a directory
root@eve-ng:~# # Detect cloud
root@eve-ng:~#
root@eve-ng:~#
root@eve-ng:~# gcp_tune () {
> sed -i -e 's/NAME="ens.*/NAME="eth0"/' /etc/udev/rules.d/70-persistent-net.rules
> sed -i -e 's/PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
> mv /boot/vmlinuz-*gcp /root
> update-grub2
> }
root@eve-ng:~#
root@eve-ng:~# azure_kernel_tune () {
> apt update
> apt install linux-image-4.20.17-eve-ng-azure+
> echo "options kvm_intel nested=1 vmentry_l1d_flush=never" > /etc/modprobe.d/qemu-system-x86.conf
> sed -i -e 's/PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
> }
root@eve-ng:~#
root@eve-ng:~#
root@eve-ng:~# # GCP
root@eve-ng:~# uname -a | grep -q -- "-gcp " && gcp_tune
root@eve-ng:~#
root@eve-ng:~# # Azure
root@eve-ng:~#
root@eve-ng:~# uname -a | grep -q -- "-azure " && azure_kernel_tune
root@eve-ng:~# exit
root@eve-ng:~#
\\\
I would say, that I need kind of step-by-step instruction with all packages, that need to be installed being listed separately.
than I will be able to install the necessary packages individually so, as it is compatible with the newest UBUNTU distribution.
thank you a lot in Advance!
I have searched the forum thru, but seem not to have any topic found, which would have answered my particular question.
therefore, I am opening this one, hope, it will help me by my problem.
I try to introduce the EVE NG to our company and have some kind of issue by the installation of it on bare metal.
in the past, and so far, the EVE NG was present here as the virtual machine, and recently we got the hardware for this, which is conform to HCL.
I am following up the cookbook for bare metal installation, but the description there seems to be dedicated to only old Ubuntu release.
Unfortunately, I am restricted to use a very new Ubuntu Server version as per Ubuntu official page, and not allowed to use old one in our environment, even at the beginning...
so I got the official ISO image from Ubuntu:
ubuntu-20.04.2-live-server-amd64.iso
and got it installed on my hardware:
\\\
root@eve-ng:~# uname -a
Linux eve-ng 5.4.0-72-generic #80-Ubuntu SMP Mon Apr 12 17:35:00 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
root@eve-ng:~#
\\\
I have followed up the cookbook instructions up to following point:
\\\
3.3.2 EVE Community Installation Phase 2
VE Community installation with the following one-line command and hit enter
wget -O - http://www.eve-ng.net/repo/install-eve.sh | bash -i
\\\
but after the execution of the abovementioned script I am NOT getting the EVE-NG Application installed.
it seems to be, that the new UBUNTU Server release has kind of uncompatibility issues in compare with the old one.
following is the log of the script execution:
\\\
root@eve-ng:~# pwd
/root
root@eve-ng:~# wget -O - http://www.eve-ng.net/repo/install-eve.sh | bash -i
Redirecting output to ‘wget-log’.
root@eve-ng:~# #!/bin/sh
root@eve-ng:~# # On Azure attach data disk
root@eve-ng:~# azure_disk_tune () {
> ls -l /dev/disk/by-id/ | grep -q sdc && (
> echo o # Create a new empty DOS partition table
> echo n # Add a new partition
> echo p # Primary partition
> echo 1 # Partition number
> echo # First sector (Accept default: 1)
> echo # Last sector (Accept default: varies)
> echo w # Write changes
> ) | sudo fdisk /dev/sdc && (
> mke2fs -F /dev/sdc1
> echo /dev/sdc1 /opt ext4 defaults,discard 0 0 >> /etc/fstab
> mount /opt
> )
> }
root@eve-ng:~#
root@eve-ng:~# uname -a | grep -q -- "-azure " && azure_disk_tune
root@eve-ng:~#
root@eve-ng:~# #Modify /etc/ssh/sshd_config with: PermitRootLogin yes
root@eve-ng:~# sed -i -e "s/.*PermitRootLogin .*/PermitRootLogin yes/" /etc/ssh/sshd_config
root@eve-ng:~# wget -O - http://www.eve-ng.net/repo/eczema@ecze.com.gpg.key | sudo apt-key add -
--2021-04-23 09:22:23-- http://www.eve-ng.net/repo/eczema@ecze.com.gpg.key
Resolving www.eve-ng.net (www.eve-ng.net)... 51.89.118.57, 2001:41d0:701:1000::352
Connecting to www.eve-ng.net (www.eve-ng.net)|51.89.118.57|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1702 (1.7K) [application/pgp-keys]
Saving to: ‘STDOUT’
- 100%[=====================================================================================================================================================================================================>] 1.66K --.-KB/s in 0s
2021-04-23 09:22:23 (342 MB/s) - written to stdout [1702/1702]
OK
root@eve-ng:~# apt-get update
Hit:1 http://www.eve-ng.net/repo xenial InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
root@eve-ng:~# apt-get -y install software-properties-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
software-properties-common is already the newest version (0.98.9.4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@eve-ng:~# #sudo add-apt-repository "deb [arch=amd64] http://www.eve-ng.net/repo xenial main"
root@eve-ng:~# echo "deb [arch=amd64] http://www.eve-ng.net/repo xenial main" > /etc/apt/sources.list.d/eve-ng.list
root@eve-ng:~# apt-get update
Hit:1 http://www.eve-ng.net/repo xenial InRelease
Hit:2 http://de.archive.ubuntu.com/ubuntu focal InRelease
Hit:3 http://de.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:4 http://de.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:5 http://de.archive.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
root@eve-ng:~# #DEBIAN_FRONTEND=noninteractive apt-get -y docker-engine
root@eve-ng:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
eve-ng : PreDepends: eve-ng-guacamole (>= 2.0.3-87) but it is not going to be installed
Depends: eve-ng-guacamole but it is not going to be installed
Depends: linux-headers-4.9.40-eve-ng-ukms+ but it is not going to be installed
Depends: eve-ng-qemu (>= 2.0.5-24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@eve-ng:~# /etc/init.d/mysql restart
bash: /etc/init.d/mysql: No such file or directory
root@eve-ng:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
eve-ng : PreDepends: eve-ng-guacamole (>= 2.0.3-87) but it is not going to be installed
Depends: eve-ng-guacamole but it is not going to be installed
Depends: linux-headers-4.9.40-eve-ng-ukms+ but it is not going to be installed
Depends: eve-ng-qemu (>= 2.0.5-24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@eve-ng:~# rm -fr /var/lib/docker/aufs
root@eve-ng:~# DEBIAN_FRONTEND=noninteractive apt-get -y install eve-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
eve-ng : PreDepends: eve-ng-guacamole (>= 2.0.3-87) but it is not going to be installed
Depends: eve-ng-guacamole but it is not going to be installed
Depends: linux-headers-4.9.40-eve-ng-ukms+ but it is not going to be installed
Depends: eve-ng-qemu (>= 2.0.5-24) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@eve-ng:~# cp /lib/firmware/bnx2/*.fw /lib/firmware/4.9.40-eve-ng-ukms-2+/bnx2/
cp: target '/lib/firmware/4.9.40-eve-ng-ukms-2+/bnx2/' is not a directory
root@eve-ng:~# # Detect cloud
root@eve-ng:~#
root@eve-ng:~#
root@eve-ng:~# gcp_tune () {
> sed -i -e 's/NAME="ens.*/NAME="eth0"/' /etc/udev/rules.d/70-persistent-net.rules
> sed -i -e 's/PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
> mv /boot/vmlinuz-*gcp /root
> update-grub2
> }
root@eve-ng:~#
root@eve-ng:~# azure_kernel_tune () {
> apt update
> apt install linux-image-4.20.17-eve-ng-azure+
> echo "options kvm_intel nested=1 vmentry_l1d_flush=never" > /etc/modprobe.d/qemu-system-x86.conf
> sed -i -e 's/PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config
> }
root@eve-ng:~#
root@eve-ng:~#
root@eve-ng:~# # GCP
root@eve-ng:~# uname -a | grep -q -- "-gcp " && gcp_tune
root@eve-ng:~#
root@eve-ng:~# # Azure
root@eve-ng:~#
root@eve-ng:~# uname -a | grep -q -- "-azure " && azure_kernel_tune
root@eve-ng:~# exit
root@eve-ng:~#
\\\
I would say, that I need kind of step-by-step instruction with all packages, that need to be installed being listed separately.
than I will be able to install the necessary packages individually so, as it is compatible with the newest UBUNTU distribution.
thank you a lot in Advance!