2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-21 01:42:15 +00:00

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.
This commit is contained in:
Vinícius Ferrão
2026-10-30 16:23:57 -03:00
parent c0698fa253
commit 2b8eb6a5fd
@@ -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``: ::