HPE Setup script for POC PVE install

unsichtbarre

New Member
Oct 1, 2024
23
3
3
Howdy all, NOOB here.

I have created a simple setup script for the HPE G9 servers I am using in POC. I thought it might be useful, and also soliciting input/additions?
Code:
#!/bin/bash
#After uploading or pasting make script executable by running "chmod u+x pvesetup.sh"
#The following lines are for HPE servers
echo "deb http://downloads.linux.hpe.com/SDR/repo/mcp stretch/current non-free" > /etc/apt/sources.list.d/hp-mcp.list
wget -q -O - http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add -
wget -q -O - http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
wget -q -O - http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
wget -q -O - http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -
#The following lines add no-subscription repositories to APT configuration https://pve.proxmox.com/wiki/Package_Repositories
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" >> /etc/apt/sources.list
echo "deb http://download.proxmox.com/debian/ceph-reef bookworm no-subscription" >>/etc/apt/sources.list.d/ceph.list
#The following lines update the server, expect some errors/warnings as Enterprise repositories (paid) are still included in APT configuration
#There will be Y/n prompts
apt update
apt upgrade
#The following line installs HPE Smart Storage Administrator SSA
apt install ssacli
#the following line sets many HPE raid controllers to "HBA Mode", replace X with your correct slot
ssacli ctrl slot=X modify hbamode=on
#The following lines install dependencies
#There will be Y/n prompts
apt install lshw
apt install openvswitch-switch
apt install multipath-tools
 
Last edited:
Fine!

Have you chosen HPE/stretch on purpose? bookworm exists ;-)

Code:
deb [signed-by=/usr/share/keyrings/hpePublicKey2048-archive-keyring.gpg] http://downloads.linux.hpe.com/SDR/repo/mcp bookworm/current non-free
Code:
~# apt policy ssacli
ssacli:
  Installed: (none)
  Candidate: 6.15-11.0
  Version table:
     6.15-11.0 500
        500 http://downloads.linux.hpe.com/SDR/repo/mcp bookworm/current/non-free amd64 Packages
 
Last edited:
  • Like
Reactions: unsichtbarre
Fine!

Have you chosen HPE/stretch on purpose? bookworm exists ;-)

Code:
deb [signed-by=/usr/share/keyrings/hpePublicKey2048-archive-keyring.gpg] http://downloads.linux.hpe.com/SDR/repo/mcp bookworm/current non-free
Code:
~# apt policy ssacli
ssacli:
  Installed: (none)
  Candidate: 6.15-11.0
  Version table:
     6.15-11.0 500
        500 http://downloads.linux.hpe.com/SDR/repo/mcp bookworm/current/non-free amd64 Packages
Thanks for the suggestion @UdoB ! I was actually building on a number of other posts from this forum and hpe forums.
I have six more G9 and G10 hosts to POC, I will test bookworm and update/advice.

-NOOB
 
  • Like
Reactions: UdoB