minershive / hiveos-pxe-diskless

Network boot for diskless rigs
35 stars 25 forks source link

Is Ubuntu20 fresh install working ? #27

Closed JBaptisme33 closed 3 weeks ago

JBaptisme33 commented 6 months ago

Hello, Thanks for hard work, I've follow installation guidelines,

PXE boot working as expected (It start ubuntu 20 image). During image build, i've notice error, probably related to issue:

[17/02/2024 11:11:35][DEPLOY_PXE] Install Hiveon package........................chroot: failed to run command ‘/hive/bin/repover-touch’: No such file or directory
[OK]

After pxe boot done, i seem have an empty fresh ubuntu 20 server with no hive reated binaries.

I think, there is issue regarding non present /hive/bin/repover-touch

root@ubuntuserver:/pxeserver# ./deploy_pxe ubuntu20 --build

`Do you want to config Hiveos PXE server package? [Y/n] y
Install  build-essential packages.
Please wait...
Done

Workers config
Type FARM_HASH: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
New FARM_HASH: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hive server URL: http://api.hiveos.farm
Press ENTER to continue with this URL or type a new one

++++++++++++++++++
Server config
Hive repo URL: http://download.hiveos.farm/repo/binary/
Press ENTER to continue with this URL or type a new one

Current server IP-address: 192.168.2.232
Press ENTER to continue with this IP-address or type a new one

TMPFS size: 3000 MB
Press ENTER to continue with this TMPFS size or type a new one (in MB)
5000
New TMPFS size: 5000 MB
Default dist: ubuntu20

Config complete
++++++++++++++++++
net.core.somaxconn = 65535
> Restart DNSMASQ server. OK
> Restart Nginx server. 
OK
> Restart Atftp server. OK
Netboot directory for x86_64-efi created. Configure your DHCP server to point to /pxeserver/tftp/efi/x86_64-efi/core.efi

Server ready to work

root@ubuntuserver:~# wget https://raw.githubusercontent.com/minershive/hiveos-pxe-diskless/master/pxe-setup.sh && sudo bash pxe-setup.sh^C
root@ubuntuserver:~# cd /pxeserver/
root@ubuntuserver:/pxeserver# ./deploy_pxe ubuntu20 --build

[17/02/2024 11:07:02][DEPLOY_PXE] Create Root Filesystem........................[OK]
[17/02/2024 11:09:35][DEPLOY_PXE] Mount needed folders (dev|proc|run|sys).......[OK]
[17/02/2024 11:09:35][DEPLOY_PXE] Add repo source.list..........................[OK]
[17/02/2024 11:09:35][DEPLOY_PXE] Upgrade FS....................................[OK]
[17/02/2024 11:11:10][DEPLOY_PXE] Install additional packages...................[OK]
[17/02/2024 11:11:32][DEPLOY_PXE] Compile locales...............................[OK]
[17/02/2024 11:11:34][DEPLOY_PXE] Install rtl_nic firmwares ....................[OK]
[17/02/2024 11:11:34][DEPLOY_PXE] Configure FS..................................[OK]
[17/02/2024 11:11:35][DEPLOY_PXE] Install Hiveon package........................chroot: failed to run command ‘/hive/bin/repover-touch’: No such file or directory
[OK]
[17/02/2024 11:11:36][DEPLOY_PXE] Install linux kernel..........................[OK]
[17/02/2024 11:12:45][DEPLOY_PXE] Copy initramfs config.........................[OK]
[17/02/2024 11:12:45][DEPLOY_PXE] Create initramfs image........................[OK]
[17/02/2024 11:13:46][DEPLOY_PXE] Create symlink................................[OK]
[17/02/2024 11:13:46][DEPLOY_PXE] Clean FS......................................[OK]
[17/02/2024 11:13:47][DEPLOY_PXE] Umount needed folders (dev|proc|run|sys)......[OK]
[17/02/2024 11:13:47][DEPLOY_PXE] Directory size: 1131M.........................[OK]
[17/02/2024 11:13:47][DEPLOY_PXE] Saving to build/ubuntu20/ubuntu20.tar.xz .....[OK]
[17/02/2024 11:24:36][DEPLOY_PXE] Create symlink ...............................[OK]
root@ubuntuserver:/pxeserver# 
HaloGenius commented 6 months ago

I think problem is solved. Repository was accessible so it triggered such issue.