2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-03 03:50:08 +00:00

Merge pull request #349 from junxiawang/pkgmodify

Document for otherpkgs on ubuntu system
This commit is contained in:
tingtli 2015-12-15 14:53:53 +08:00
commit 0495555413
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,36 @@
Install Additional Other Packages with Ubuntu official mirror
==============================================================
The Ubuntu ISO used to install the compute nodes only include packages to run a minimal base operating system, it is likely that users will want to install additional Ubuntu packages from the internet Ubuntu repositories or local repositories, this section describes how to install additional Ubuntu packages.
Compute nodes can access the internet
-------------------------------------
#. Specify the repository
Define the **otherpkgdir** attribute in osimage to use the internet repository directly.: ::
chdef -t osimage <osimage name> otherpkgdir="http://us.archive.ubuntu.com/ubuntu/ \
$(lsb_release -sc) main,http://us.archive.ubuntu.com/ubuntu/ $(lsb_release -sc)-update main"
#. Define the otherpkglist file
create an otherpkglist file,**/install/custom/install/ubuntu/compute.otherpkgs.pkglist**. Add the packages' name into thist file. And modify the otherpkglist attribute for osimage object. ::
chdef -t osimage <osimage name> otherpkglist=/install/custom/install/ubuntu/compute.otherpkgs.pkglist
#. Run ``updatenode <noderange> -S`` or ``updatenode <noderange> -P otherpkgs``
Run ``updatenode -S`` to **install/update** the packages on the compute nodes ::
updatenode <noderange> -S
Run ``updatenode -P`` otherpkgs to **install/update** the packages on the compute nodes ::
updatenode <noderange> -P otherpkgs
Compute nodes can not access the internet
------------------------------------------
If compute nodes cannot access the internet, there are two ways to install additional packages:use apt proxy or use local mirror according to :ref:`ubuntu-install-non-internet`

View File

@ -7,3 +7,4 @@ Add Additional Software Packages
../../../common/deployment/additionalpkg/additional_pkg_overview.rst
../../../common/deployment/additionalpkg/nonubuntu_os_pkg.rst
../../../common/deployment/additionalpkg/nonubuntu_os_other_pkg.rst
../../../common/deployment/additionalpkg/ubuntu_os_other_pkg.rst