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

2016年3月2日 星期三

Ubuntu15 and below's NIC naming problem

http://askubuntu.com/questions/689070/network-interface-name-changes-after-update-to-15-10-udev-changes

After Ubuntu 15.10 (Wily Werewolf) the NIC naming rule are changed.

 If you want to keep the naming rule as ethX You need to do following steps.
  1.  Edit /etc/default/grub 
  2.  GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" 
  3. Run command "update-grub" as root 

Final, reboot the machine, the NIC name will use ethX