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
orupdatenode <noderange> -P otherpkgs
Run
updatenode -S
to install/update the packages on the compute nodesupdatenode <noderange> -S
Run
updatenode -P
otherpkgs to install/update the packages on the compute nodesupdatenode <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
- use local mirror