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

nvmetcli failed to run unbunt 22.10 after installed configshell-fb and configure configfs well #4

Open
gaowayne opened this issue Feb 25, 2023 · 1 comment

Comments

@gaowayne
Copy link

below is more detail information in my enviroment, and error message nvmetcli showed

root@wayne-VirtualBox:~/wayne/nvmetcli# ./nvmetcli
-bash: ./nvmetcli: cannot execute: required file not found




root@wayne-VirtualBox:~/wayne/nvmetcli# ls
bump-ver.sh  COPYING  debian  Documentation  examples  fc.json  loop.json  Makefile  nvmet  nvmetcli  nvmet.service  rdma.json  README  rpm  setup.cfg  setup.py
root@wayne-VirtualBox:~/wayne/nvmetcli# uname
Linux
root@wayne-VirtualBox:~/wayne/nvmetcli# uname -a
Linux wayne-VirtualBox 5.19.0-31-generic #32-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 20 15:20:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
root@wayne-VirtualBox:~/wayne/nvmetcli# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.10"
NAME="Ubuntu"
VERSION_ID="22.10"
VERSION="22.10 (Kinetic Kudu)"
VERSION_CODENAME=kinetic
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=kinetic
LOGO=ubuntu-logo
root@wayne-VirtualBox:~/wayne/nvmetcli# 

@bramotten
Copy link

Note that this is a very outdated mirror of http://git.infradead.org/?p=users/hch/nvmetcli.git, but I'll leave a few remarks for search engine users.

The issue you ran into is probably that the /usr/bin/python referenced in the shebang of ./nvmetcli does not exist.

Then you most likely at least need to install https://github.com/open-iscsi/configshell-fb. The code can handle a lack of https://github.com/cnanakos/kmodpy but without it you will need to load the nvmet kernel module manually.

Do not trust me on this, but users of recent Debian-y distributions might be able to get away with sudo apt install python3-configshell-fb && sudo modprobe nvmet && sudo python3 ./nvmetcli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants