Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rhel instructions #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@

This repository contains installation scripts for HPC images in Azure Marketplace.

## Preparing HPC Red Hat Enterprise Linux Image

Red Hat publishes a collection of marketplace images for different
applications and licensing models. To use RHEL and get all the software and drivers
included in the azhpc-images we recommend that you build a custom image using
the scripts in this repository.

The following usage has been verified using the RHEL 7.9 marketplace image
`RedHat:RHEL:79-gen2:7.9.2021121602`
and a Standard_NC6s_v2 VM. Create a VM with this configuration
and use the script contained in this project.

```bash
sudo ./rhel-hpc-7_9-install.sh
```

Once this command is run successfully, then you can use the documented procedure
for [capturing a linux image](https://docs.microsoft.com/azure/virtual-machines/linux/capture-image).

>Note: Accelerated Networking with IB networking isn't
supported in the RHEL-HPC prepared image. Use `AcceleratedNetworking = False`.


# Contributing

Expand Down
25 changes: 25 additions & 0 deletions rhel-hpc-7_9-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -ex

lvextend -L +5G /dev/mapper/rootvg-optlv
lvextend -L +5G /dev/mapper/rootvg-usrlv
lvextend -L +8G /dev/mapper/rootvg-tmplv

xfs_growfs /dev/mapper/rootvg-optlv
xfs_growfs /dev/mapper/rootvg-usrlv
xfs_growfs /dev/mapper/rootvg-tmplv

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the lines 4-10 not image version specific? is the RHEL image guaranteed to be built as such?

cd /mnt/

wget https://github.com/Azure/azhpc-images/archive/refs/heads/master.zip
unzip master.zip

cd azhpc-images-master/centos/centos-7.x/centos-7.9-hpc/

# Allows to install to proceed without NVLink.
sed -i 's/systemctl start nvidia-fabricmanager/systemctl start nvidia-fabricmanager || echo "systemctl start nvidia-fabricmanager failed. Does this machine have NVSwitch?"/g' ../common/install_nvidiagpudriver.sh

# AccelNet with IB is not supported for RedHat
sed -i 's/^$COMMON_DIR\/install_azure_persistent_rdma_naming.sh/#$COMMON_DIR\/install_azure_persistent_rdma_naming.sh/g' install.sh

bash ./install.sh