2016年7月21日 星期四

IPMI Reset Password at Physical Server in CoreOS

IPMI_Reset_Password IPMI Reset Password at Physical Server in CoreOS
When you missing you IPMI Password, you still can reset the password using ipmi tool
Step
1.Install kernel module in CoreOS using root
sudo modprobe ipmi_msghandler
sudo modprobe ipmi_devintf
sudo modprobe ipmi_si```
2.Copy /usr/bin/toolbox to home cp /usr/bin/toolbox ~/dev-toolbox
3.Modify last line to mount /dev inside container
From
sudo systemd-nspawn --directory="${machinepath}" --capability=all --share-system --bind=/:/media/root --bind=/usr:/media/root/usr --bind=/run:/media/root/run --user="${TOOLBOX_USER}" "$@"
To
sudo systemd-nspawn --directory="${machinepath}" --capability=all --share-system --bind=/:/media/root --bind=/usr:/media/root/usr --bind=/run:/media/root/run --bind=/dev:/dev --user="${TOOLBOX_USER}" "$@"
4.Execute dev-toolbox
chmod +x dev-toolbox
./dev-toolbox
It will take some time to pull container image, default is Fedora.
5.Install ipmitool yum install ipmitool -y
6.Check which user id you want to change, the last number you need to try to fit your environment ipmitool user list 1
7.Change password. In this example we want to change user id 2 ipmitool user set password 2 SETTING_PASS