Closed wjhunter3 closed 1 year ago
Attempting to create a netboot image on a RHEL 8.8 system with xCAT installed fails:
# genimage rhels8.8.0-x86_64-netboot-compute Generating image: cd /opt/xcat/share/xcat/netboot/rh; ./genimage -a x86_64 -o rhels8.8.0 -p compute --permission 755 --srcdir "/mnt/storage/install/rhels8.8.0/x86_64" --pkglist /opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.pkglist --otherpkgdir "/mnt/storage/install/post/otherpkgs/rhels8.8.0/x86_64" --postinstall "/opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.postinstall" --rootimgdir /mnt/storage/install/netboot/rhels8.8.0/x86_64/compute --tempfile /tmp/xcat_genimage.15054 rhels8.8.0-x86_64-netboot-compute 147 blocks /opt/xcat/share/xcat/netboot/rh 147 blocks /opt/xcat/share/xcat/netboot/rh yum -y -c /tmp/genimage.15070.yum.conf --installroot=/mnt/storage/install/netboot/rhels8.8.0/x86_64/compute/rootimg/ --disablerepo=* --releasever=8 --setopt=module_platform_id=platform:el8 --enablerepo=rhels8.8.0-x86_64-0 --enablerepo=rhels8.8.0-x86_64-1 install "@minimal-environment" chrony kernel net-tools nfs-utils openssh-server rsync tar util-linux wget python3 tar bzip2 bc dracut dracut-network rsyslog hostname e2fsprogs ethtool parted openssl dhclient openssh-clients bash vim-minimal rpm iputils perl-interpreter xz Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. rhels8.8.0-x86_64-0 2.7 MB/s | 2.8 kB 00:00 rhels8.8.0-x86_64-1 3.1 MB/s | 3.2 kB 00:00 Package chrony-4.2-1.el8.x86_64 is already installed. Package kernel-4.18.0-477.10.1.el8_8.x86_64 is already installed. Package net-tools-2.0-0.52.20160912git.el8.x86_64 is already installed. Package nfs-utils-1:2.3.3-59.el8.x86_64 is already installed. Package openssh-server-8.0p1-17.el8.x86_64 is already installed. Package rsync-3.1.3-19.el8_7.1.x86_64 is already installed. Package tar-2:1.30-9.el8.x86_64 is already installed. Package util-linux-2.32.1-41.el8.x86_64 is already installed. Package wget-1.19.5-11.el8.x86_64 is already installed. Package python36-3.6.8-38.module+el8.5.0+12207+5c5719bc.x86_64 is already installed. Package bzip2-1.0.6-26.el8.x86_64 is already installed. Package bc-1.07.1-5.el8.x86_64 is already installed. Package dracut-049-223.git20230119.el8.x86_64 is already installed. Package dracut-network-049-223.git20230119.el8.x86_64 is already installed. Package rsyslog-8.2102.0-13.el8.x86_64 is already installed. Package hostname-3.20-6.el8.x86_64 is already installed. Package e2fsprogs-1.45.6-5.el8.x86_64 is already installed. Package ethtool-2:5.13-2.el8.x86_64 is already installed. Package parted-3.2-39.el8.x86_64 is already installed. Package openssl-1:1.1.1k-9.el8_7.x86_64 is already installed. Package dhcp-client-12:4.3.6-49.el8.x86_64 is already installed. Package openssh-clients-8.0p1-17.el8.x86_64 is already installed. Package bash-4.4.20-4.el8_6.x86_64 is already installed. Package vim-minimal-2:8.0.1763-19.el8_6.4.x86_64 is already installed. Package rpm-4.14.3-26.el8.x86_64 is already installed. Package iputils-20180629-10.el8.x86_64 is already installed. Package perl-interpreter-4:5.26.3-422.el8.x86_64 is already installed. Package xz-5.2.4-4.el8_6.x86_64 is already installed. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing Environment Groups: Minimal Install Installing Groups: Core Transaction Summary ================================================================================ Complete! Enter the dracut mode. Dracut version: 049. Dracut directory: dracut_047. Try to load drivers: tg3 bnx2 bnx2x e1000 e1000e igb mlx4_en virtio_net be2net ext3 ext4 to initrd. chroot /mnt/storage/install/netboot/rhels8.8.0/x86_64/compute/rootimg dracut -N --compress "/bin/pigz -p 24 " -f /tmp/initrd.15070.gz 4.18.0-477.10.1.el8_8.x86_64 /usr/lib/dracut/dracut-init.sh: line 41: /dev/null: Permission denied dracut: No '/dev/log' or 'logger' included for syslog logging /usr/lib/dracut/dracut-init.sh: line 90: /dev/null: Permission denied /usr/lib/dracut/dracut-functions.sh: line 55: /dev/null: Permission denied /bin/dracut: line 923: /dev/null: Permission denied /bin/dracut: line 990: /dev/null: Permission denied /bin/dracut: line 1000: /dev/null: Permission denied dracut: Kernel modules are compressed with xz, but xz is not available. Error: failed to generate the initial ramdisk for stateless. Error: [cstkxcat]: Command failed: cd /opt/xcat/share/xcat/netboot/rh; ./genimage -a x86_64 -o rhels8.8.0 -p compute --permission 755 --srcdir "/mnt/storage/install/rhels8.8.0/x86_64" --pkglist /opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.pkglist --otherpkgdir "/mnt/storage/install/post/otherpkgs/rhels8.8.0/x86_64" --postinstall "/opt/xcat/share/xcat/netboot/rh/compute.rhels8.x86_64.postinstall" --rootimgdir /mnt/storage/install/netboot/rhels8.8.0/x86_64/compute --tempfile /tmp/xcat_genimage.15054 rhels8.8.0-x86_64-netboot-compute 2>&1. Error message: 147 blocks /opt/xcat/share/xcat/netboot/rh 147 blocks /opt/xcat/share/xcat/netboot/rh yum -y -c /tmp/genimage.15070.yum.conf --installroot=/mnt/storage/install/netboot/rhels8.8.0/x86_64/compute/rootimg/ --disablerepo=* --releasever=8 --setopt=module_platform_id=platform:el8 --enablerepo=rhels8.8.0-x86_64-0 --enablerepo=rhels8.8.0-x86_64-1 install "@minimal-environment" chrony kernel net-tools nfs-utils openssh-server rsync tar util-linux wget python3 tar bzip2 bc dracut dracut-network rsyslog hostname e2fsprogs ethtool parted openssl dhclient openssh-clients bash vim-minimal rpm iputils perl-interpreter xz Updating Subscription Management repositories. Unable to read consumer identity This system is not registered with an entitlement server. You can use subscription-manager to register. rhels8.8.0-x86_64-0 2.7 MB/s | 2.8 kB 00:00 rhels8.8.0-x86_64-1 3.1 MB/s | 3.2 kB 00:00 Package chrony-4.2-1.el8.x86_64 is already installed. Package kernel-4.18.0-477.10.1.el8_8.x86_64 is already installed. Package net-tools-2.0-0.52.20160912git.el8.x86_64 is already installed. Package nfs-utils-1:2.3.3-59.el8.x86_64 is already installed. Package openssh-server-8.0p1-17.el8.x86_64 is already installed. Package rsync-3.1.3-19.el8_7.1.x86_64 is already installed. Package tar-2:1.30-9.el8.x86_64 is already installed. Package util-linux-2.32.1-41.el8.x86_64 is already installed. Package wget-1.19.5-11.el8.x86_64 is already installed. Package python36-3.6.8-38.module+el8.5.0+12207+5c5719bc.x86_64 is already installed. Package bzip2-1.0.6-26.el8.x86_64 is already installed. Package bc-1.07.1-5.el8.x86_64 is already installed. Package dracut-049-223.git20230119.el8.x86_64 is already installed. Package dracut-network-049-223.git20230119.el8.x86_64 is already installed. Package rsyslog-8.2102.0-13.el8.x86_64 is already installed. Package hostname-3.20-6.el8.x86_64 is already installed. Package e2fsprogs-1.45.6-5.el8.x86_64 is already installed. Package ethtool-2:5.13-2.el8.x86_64 is already installed. Package parted-3.2-39.el8.x86_64 is already installed. Package openssl-1:1.1.1k-9.el8_7.x86_64 is already installed. Package dhcp-client-12:4.3.6-49.el8.x86_64 is already installed. Package openssh-clients-8.0p1-17.el8.x86_64 is already installed. Package bash-4.4.20-4.el8_6.x86_64 is already installed. Package vim-minimal-2:8.0.1763-19.el8_6.4.x86_64 is already installed. Package rpm-4.14.3-26.el8.x86_64 is already installed. Package iputils-20180629-10.el8.x86_64 is already installed. Package perl-interpreter-4:5.26.3-422.el8.x86_64 is already installed. Package xz-5.2.4-4.el8_6.x86_64 is already installed. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing Environment Groups: Minimal Install Installing Groups: Core Transaction Summary ================================================================================ Complete! Enter the dracut mode. Dracut version: 049. Dracut directory: dracut_047. Try to load drivers: tg3 bnx2 bnx2x e1000 e1000e igb mlx4_en virtio_net be2net ext3 ext4 to initrd. chroot /mnt/storage/install/netboot/rhels8.8.0/x86_64/compute/rootimg dracut -N --compress "/bin/pigz -p 24 " -f /tmp/initrd.15070.gz 4.18.0-477.10.1.el8_8.x86_64 /usr/lib/dracut/dracut-init.sh: line 41: /dev/null: Permission denied dracut: No '/dev/log' or 'logger' included for syslog logging /usr/lib/dracut/dracut-init.sh: line 90: /dev/null: Permission denied /usr/lib/dracut/dracut-functions.sh: line 55: /dev/null: Permission denied /bin/dracut: line 923: /dev/null: Permission denied /bin/dracut: line 990: /dev/null: Permission denied /bin/dracut: line 1000: /dev/null: Permission denied dracut: Kernel modules are compressed with xz, but xz is not available. Error: failed to generate the initial ramdisk for stateless..
The /dev/null permission denied errors are due to me having moved the /install and /tftpboot directories to a partition mounted with "nodev".
Attempting to create a netboot image on a RHEL 8.8 system with xCAT installed fails: