Updating bare metal EVE-NG with no internet access

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
Sipart
Posts: 59
Joined: Sun Mar 19, 2017 9:20 pm

Updating bare metal EVE-NG with no internet access

Post by Sipart » Tue Aug 29, 2017 1:56 pm

Hi not a request just a query.

Is there a relatively simple way of updating EVE-NG with no internet access? I have read a little bit about updating Linux offline but not having the best Linux skills I thought I'd ask before taking lots of time researching, trying (and probably failing!).

I have one server in a lab room with no internet access, I can lift and shift it every time I need to update it but if an offline method exists then carrying a USB stick into the lab saves some heavy lifting :-)

The server is currently running 2-0.3.70

Thank you.

ecze
Posts: 533
Joined: Wed Mar 15, 2017 1:54 pm

Re: Updating bare metal EVE-NG with no internet access

Post by ecze » Tue Aug 29, 2017 3:53 pm

Well , using a local mirror is possible but needs some admin knowledge and a machine connected to internet to create mirror

Basically:

On the connected machine, you can use a apt-mirror
use an usb3 drive ( 500Gb )
mkdir /mnt/USBDISK
mount it ( see google how to format/mount disk ) on /mnt/USBDISK
install apt-mirror
edit /etc/apt/mirror.list and replace content with:

############# config ##################
#
set base_path /mnt/USBDISK/
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
# set run_postmirror 0


deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb http://fr.archive.ubuntu.com/ubuntu/ xenial universe
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
deb http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
deb http://www.eve-ng.net/repo xenial main

launch apt-mirror

Unmount usb disk: umount /mnt/USBDISK

On offline server, connect the usb drive
create directory for mount: mkdir /mnt/USBDISK

mount Usb Disk to /mnt/USBDISK
edit /etc/apt/sources.list and comment out all lines

then add lines

deb file:///mnt/USBDISK/mirror/ubuntu/ xenial main restricted
deb file:///mnt/USBDISK/mirror/ubuntu/ xenial-updates main restricted
deb file:///mnt/USBDISK/mirror/ubuntu/ xenial universe
deb file:///mnt/USBDISK/mirror/ubuntu/ xenial-updates universe
deb file:///mnt/USBDISK/mirror/ubuntu/ xenial multiverse
deb file:///mnt/USBDISK/mirror/ubuntu/ xenial-updates multiverse
deb file:///mnt/USBDISK/mirror/ubuntu xenial-security main restricted
deb file:///mnt/USBDISK/mirror/ubuntu xenial-security universe
deb file:///mnt/USBDISK/mirror/ubuntu xenial-security multiverse
deb [arch=amd64] file:///mnt/USBDISK/mirror/repo xenial main


use apt-update apt-upgrade etc add usual...

E.

PS: This is theory, I never used this mechanism myself

Sipart
Posts: 59
Joined: Sun Mar 19, 2017 9:20 pm

Re: Updating bare metal EVE-NG with no internet access

Post by Sipart » Tue Aug 29, 2017 5:23 pm

Brilliant - many thanks - if I get around to it I will try this week or next week and let you know how I get on :-)

Thanks again.

Post Reply