ubuntu18.04: ipmitool failed: Could not open device at /dev/ipmi0 : No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipmitool (Ubuntu) |
Opinion
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
ipmitool failed in-band
#ipmitool lan print
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
And it work out-band:
# ipmitool -H {theip} -I lanplus -U {user} -P {passwd} lan print
Set in Progress : Set Complete
Auth Type Support : NONE MD2 MD5 PASSWORD
Auth Type Enable : Callback : MD2 MD5 PASSWORD
IP Address Source : DHCP Address
...
But the file exist:
# ls -al /dev/ipmi0
crw------- 1 root root 240, 0 Jul 16 13:55 /dev/ipmi0
# cat /proc/devices | grep ipmidev
240 ipmidev
packages that I installed:
# dpkg -l | grep ipmi
ii freeipmi-common 1.4.11-1.1ubuntu4.1 amd64 GNU implementation of the IPMI protocol - common files
ii ipmitool 1.8.18-5ubuntu0.1 amd64 utility for IPMI control with kernel driver or LAN interface (daemon)
ii libfreeipmi16 1.4.11-1.1ubuntu4.1 amd64 GNU IPMI - libraries
ii libopenipmi0 2.0.22-1.1ubuntu2.1 amd64 Intelligent Platform Management Interface - runtime
ii openipmi 2.0.22-1.1ubuntu2.1 amd64 Intelligent Platform Management Interface (for servers)
the mods:
# lsmod| grep ipmi_
ipmi_devintf 20480 0
ipmi_poweroff 16384 0
ipmi_watchdog 28672 0
ipmi_ssif 32768 0
ipmi_si 61440 0
ipmi_msghandler 53248 6 ipmi_devintf,
the kernel:
# uname -a
Linux A16969628514217 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
the ubuntu version:
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
description: | updated |
description: | updated |
affects: | apport (Ubuntu) → openipmi (Ubuntu) |
description: | updated |
summary: |
- ipmitool failed: Could not open device at /dev/ipmi0 : No such file or - directory + ubuntu18.04: ipmitool failed: Could not open device at /dev/ipmi0 : No + such file or directory |
Changed in ipmitool (Ubuntu): | |
status: | Invalid → Opinion |
Thanks for your report. Let's rule out the simplest hypothesis: are you running the command as root? I can reproduce the error you observe running ipmitool as an unprivileged user:
$ ls -l /dev/ipmi0
: User :
: Operator :
: Admin :
: OEM :
crw------- 1 root root 239, 0 May 30 13:39 /dev/ipmi0
$ ipmitool lan print
Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
$ sudo ipmitool lan print
Set in Progress : Set Complete
Auth Type Support :
Auth Type Enable : Callback :
IP Address Source : Static Address
[...]
Can you please verify this? I'm marking this report as "Incompete" for the moment, please change the status back to "New" after providing the additional information. Thanks!