From 2b8eb6a5fdaf22942a0ba9fe7ceb22157899bc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Ferr=C3=A3o?= <2031761+viniciusferrao@users.noreply.github.com> Date: Fri, 30 Oct 2026 16:23:57 -0300 Subject: [PATCH] docs(mixed-cluster): copy the xCAT Perl library to the image build node genimage loads the xCAT Perl library and the Perl modules it uses. The procedure that builds an image on a node of the target architecture copied only /opt/xcat/share/xcat/netboot, so genimage stopped with "Can't locate xCAT/SvrUtils.pm". The procedure now also copies /opt/xcat/lib/perl and installs the Perl modules. EL7 packages Digest::SHA and Sys::Syslog apart from perl, so the command names them. --- .../advanced/mixed_cluster/building_stateless_images.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/source/advanced/mixed_cluster/building_stateless_images.rst b/docs/source/advanced/mixed_cluster/building_stateless_images.rst index 590829abd6..9f20d51dc8 100644 --- a/docs/source/advanced/mixed_cluster/building_stateless_images.rst +++ b/docs/source/advanced/mixed_cluster/building_stateless_images.rst @@ -70,10 +70,15 @@ The following describes creating stateless images of the same Operating System, mkdir /install mount -o soft xcatmn:/install /install - #. Copy the executable files from the ``/opt/xcat/share/xcat/netboot`` from the xCAT Management node to the target node: :: + #. Copy ``/opt/xcat/share/xcat/netboot`` and the xCAT Perl library ``/opt/xcat/lib/perl`` from the xCAT Management node to the target node: :: - mkdir -p /opt/xcat/share/xcat/ + mkdir -p /opt/xcat/share/xcat/ /opt/xcat/lib/ scp -r xcatmn:/opt/xcat/share/xcat/netboot /opt/xcat/share/xcat/ + scp -r xcatmn:/opt/xcat/lib/perl /opt/xcat/lib/ + + #. Install the Perl modules that the xCAT Perl library uses: :: + + yum install perl perl-DBI perl-Digest-SHA perl-JSON perl-Sys-Syslog perl-XML-Simple #. Execute the ``genimage`` command obtained from the ``--dryrun``: ::