Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-16-2018, 09:26 PM   #1
LQ Newbie
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Problems getting nbd to work

I have a CentOS (4.15) target with an nvme drive connected to a Ubuntu (4.14) initiator. I have installed nbd-server on CentOs and nbd-client on Ubuntu and I having trouble exporting the drive. I think I have followed all the steps but the error does not make any sense. Can you please help? Here are the details about the server and client. I have shown the error messages on both the server and client when attempting to connect.

nbd-server - CentOS 7.4/4.15 kernel
[root@10 nbd-3.17]# cat /etc/system-release
CentOS Linux release 7.4.1708 (AltArch)
[root@10 nbd-3.17]# uname -a
Linux 4.15.0+g59a32b5d #1 SMP Tue Mar 6 16:17:18 PST 2018 aarch64 aarch64 aarch64 GNU/Linux
[root@10 nbd-3.17]# nbd-server --version
This is nbd-server version 0.unknown
[root@10 nbd-3.17]# cat /etc/nbd-server/config
allowlist = true
includedir = /etc/nbd-server

exportname = /dev/nvme0n1
port = 9000
[root@10 nbd-3.17]# lsblk|grep nvme0n1; ls /dev/nvme0n1
nvme0n1 259:3 0 465.8G 0 disk
[root@10 nbd-3.17]# ifconfig enP8p1s0f0
enP8p1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet netmask broadcast
inet6 fe80::210:18ff:fead:500 prefixlen 64 scopeid 0x20<link>
ether 00:10:18:ad:05:00 txqueuelen 1000 (Ethernet)
RX packets 28167 bytes 9931391 (9.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 586 bytes 45633 (44.5 KiB)
TX errors 0 dropped 0 overruns 4667 carrier 0 collisions 0

[root@10 nbd-3.17]#
root@10 nbd-3.17]# nbd-server -C /etc/nbd-server/config -d
Error: Negotiation failed/8a: Requested export not found, or is TLS-only and client did not negotiate TLS

nbd-client - Ubuntu 16.04.4/4.14 kernel
root@ubuntu:~# cat /etc/os-release |grep PRETT
PRETTY_NAME="Ubuntu 16.04.4 LTS"
root@ubuntu:~# uname -a
Linux ubuntu 4.14.0-fix #8 SMP Thu Nov 16 11:45:49 PST 2017 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:~# nbd-client --help
nbd-client version 3.13-262-g69a15c0-dirty
root@ubuntu:~# ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=0.081 ms
64 bytes from icmp_seq=2 ttl=64 time=0.042 ms

root@ubuntu:~# nbd-client -name /dev/nvme0n1 /dev/nbd0
Negotiation: ..Error: Read failed: End of file


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems loading root NBD device on LTSP dcroxton Linux - Server 1 08-28-2018 03:55 AM
[SOLVED] slackware-current: nbd-3.16.1 error marrowsuck Slackware 2 07-09-2017 04:42 PM
[SOLVED] Writing lilo in a nbd mount. nolretou Linux - Virtualization and Cloud 19 02-27-2015 11:58 AM
nbd troubles marco.hahn Linux - Networking 6 06-27-2013 05:50 PM
[SOLVED] NBD 2.9.17 - 2010-08-06 release Chuck56 Linux - Server 1 08-09-2010 11:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration