Closed snoby closed 10 months ago
Fixed in 6.5.5 . Run hive-upgrade.sh or clean install.
What host version do you expect? Because this seems very broken.
root@remote1:/pxeserver# ./deploy_pxe ubuntu20 --build
dpkg-deb: error: failed to read archive 'kernel/linux-image-*.deb': No such file or directory
[10/01/2024 21:03:44][DEPLOY_PXE] Create Root Filesystem........................[OK]
[10/01/2024 21:06:26][DEPLOY_PXE] Mount needed folders (dev|proc|run|sys).......[OK]
[10/01/2024 21:06:26][DEPLOY_PXE] Add repo source.list..........................[OK]
[10/01/2024 21:06:26][DEPLOY_PXE] Upgrade FS....................................[OK]
[10/01/2024 21:09:09][DEPLOY_PXE] Install additional packages...................[OK]
[10/01/2024 21:09:25][DEPLOY_PXE] Compile locales...............................[OK]
[10/01/2024 21:09:27][DEPLOY_PXE] Install rtl_nic firmwares ....................[OK]
[10/01/2024 21:09:27][DEPLOY_PXE] Configure FS..................................[OK]
[10/01/2024 21:09:28][DEPLOY_PXE] Install Hiveon package........................[OK]
[10/01/2024 21:10:48][DEPLOY_PXE] Install linux kernel..........................cp: cannot stat 'kernel/*.deb': No such file or directory
[OK]
[10/01/2024 21:10:48][DEPLOY_PXE] Copy initramfs config.........................[OK]
[10/01/2024 21:10:48][DEPLOY_PXE] Create initramfs image........................W: missing /lib/modules/5.15.0-91-generic
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/5.15.0-91-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
cat: /var/tmp/mkinitramfs_W6W7uG/lib/modules/5.15.0-91-generic/modules.builtin: No such file or directory
depmod: WARNING: could not open modules.order at /var/tmp/mkinitramfs_W6W7uG/lib/modules/5.15.0-91-generic: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/mkinitramfs_W6W7uG/lib/modules/5.15.0-91-generic: No such file or directory
[OK]
[10/01/2024 21:11:03][DEPLOY_PXE] Create symlink................................cp: cannot stat '/pxeserver/build/ubuntu20/_fs/boot/vmlinuz-': No such file or directory
[OK]
[10/01/2024 21:11:03][DEPLOY_PXE] Clean FS......................................[OK]
[10/01/2024 21:11:03][DEPLOY_PXE] Umount needed folders (dev|proc|run|sys)......[OK]
[10/01/2024 21:11:03][DEPLOY_PXE] Directory size: 1558M.........................[OK]
[10/01/2024 21:11:03][DEPLOY_PXE] Saving to build/ubuntu20/ubuntu20.tar.xz .....[OK]
[10/01/2024 21:17:10][DEPLOY_PXE] Create symlink ...............................[OK]
root@remote1:/pxeserver# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
root@remote1:/pxeserver# ./deploy_pxe ubuntu20 --initrd
dpkg-deb: error: failed to read archive 'kernel/linux-image-*.deb': No such file or directory
[10/01/2024 22:02:10][DEPLOY_PXE] Copy initramfs config.........................[OK]
[10/01/2024 22:02:10][DEPLOY_PXE] Create initramfs image........................W: missing /lib/modules/5.15.0-91-generic
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/5.15.0-91-generic: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
cat: /var/tmp/mkinitramfs_kRPNg0/lib/modules/5.15.0-91-generic/modules.builtin: No such file or directory
depmod: WARNING: could not open modules.order at /var/tmp/mkinitramfs_kRPNg0/lib/modules/5.15.0-91-generic: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/mkinitramfs_kRPNg0/lib/modules/5.15.0-91-generic: No such file or directory
[OK]
[10/01/2024 22:02:25][DEPLOY_PXE] Create symlink................................cp: cannot stat '/pxeserver/build/ubuntu20/_fs/boot/vmlinuz-': No such file or directory
[OK]
root@remote1:/pxeserver# ls
build build-focal.log configs deploy_pxe hive-config hiveramfs hive-upgrade.sh pxe-config.sh server.conf tftp VER
root@remote1:/pxeserver# ./hive-upgrade.sh
Local version: 6.5.5
Remote version: 6.5.5
You package of Hiveos PXE server is up to date.
root@remote1:/pxeserver#
dpkg-deb: error: failed to read archive 'kernel/linux-image-*.deb': No such file or directory
you dont have kernel deb package it must be downloaded automaticaly via upgrade/setup script. check it
dpkg-deb: error: failed to read archive 'kernel/linux-image-*.deb': No such file or directory
you dont have kernel deb package it must be downloaded automaticaly via upgrade/setup script. check it
root@remote1:/pxeserver# ./hive-upgrade.sh Local version: 6.5.5 Remote version: 6.5.5 You package of Hiveos PXE server is up to date.
i completely deleted the install and ran the setup from fresh...
./pxe-setup.sh
Destination directory: /pxeserver
Press ENTER to continue with this destination or type a new one
> Download PXE-server package
--2024-01-11 00:15:43-- https://github.com/minershive/hiveos-pxe-diskless/archive/master.zip
Resolving github.com (github.com)... 140.82.112.4
Connecting to github.com (github.com)|140.82.112.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/minershive/hiveos-pxe-diskless/zip/refs/heads/master [following]
--2024-01-11 00:15:43-- https://codeload.github.com/minershive/hiveos-pxe-diskless/zip/refs/heads/master
Resolving codeload.github.com (codeload.github.com)... 140.82.114.10
Connecting to codeload.github.com (codeload.github.com)|140.82.114.10|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘master.zip’
master.zip [ <=> ] 21.90M 6.54MB/s in 3.4s
2024-01-11 00:15:46 (6.54 MB/s) - ‘master.zip’ saved [22968447]
> Extract PXE-server package.Please wait
> Copy PXE-server package to destination directory.
Install build-essential packages.
Please wait...
Done
Workers config
Type FARM_HASH: redeacted46676a1c
New FARM_HASH: a7e6redacted
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: 10.0.0.167
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)
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@remote1:/home/snoby# cd /pxeserver/
root@remote1:/pxeserver# ls
configs deploy_pxe hive-config hiveramfs hive-upgrade.sh pxe-config.sh server.conf tftp VER
root@remote1:/pxeserver# ./hive-upgrade.sh
Local version: 6.5.5
Remote version: 6.5.5
You package of Hiveos PXE server is up to date.
root@remote1:/pxeserver#
What step did i miss?
root@remote1:/pxeserver# ./deploy_pxe --help
dpkg-deb: error: failed to read archive 'kernel/linux-image-*.deb': No such file or directory
Usage:
deploy_pxe ubuntu20 --build create latest Ubuntu 20.04 image
deploy_pxe ubuntu20 --selfupgrade just upgrade Hive package and repack rootfs image
deploy_pxe ubuntu20 --upgrade upgrade all and repack rootfs image
deploy_pxe ubuntu20 --chroot chroot into rootfs (for manual actions)
deploy_pxe ubuntu20 --initrd rebuild initramfs image
deploy_pxe ubuntu20 --remove delete rootfs folder
Nvidia drivers:
deploy_pxe nvidia --list list available driver versions
deploy_pxe nvidia --build <VER> build driver specific version ( e.g. 515 or 515.105 or 515.105.01)
AMD OpenCL:
deploy_pxe opencl --list list available driver versions
deploy_pxe opencl --build <VER> build specific version (for now 5.4 only)
root@remote1:/pxeserver# ./deploy_pxe ubuntu20 --build
dpkg-deb: error: failed to read archive 'kernel/linux-image-*.deb': No such file or directory
dont run local pxe-setup use remote script
wget https://raw.githubusercontent.com/minershive/hiveos-pxe-diskless/master/pxe-setup.sh && sudo bash pxe-setup.sh
In the new 6.5.4 release the create root file system fails I used set -x to turn on some commands in the bash script.
So then i tried to run the commands myself
So i think in the chroot that locale is not being set
So i went in and in the chroot i set LANG to en_US.UTF-8 in /etc/locale.gen then generated the files. wiht locale-gen
Even after all that upgrading the FS failed.