nbd-server no config file

Bug #381766 reported by bartounet
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
nbd (Ubuntu)
Won't Fix
Undecided
Unassigned
Nominated for Lucid by MattFinck21
Nominated for Maverick by MattFinck21

Bug Description

Binary package hint: nbd-server

When i install the package nbd-server on Ubuntu Jaunty x86_64, the daemon can not starting because missing conf file.
root@bartounet:/etc# /etc/init.d/nbd-server start

** (process:10007): WARNING **: Could not parse config file: Could not open config file.
** Message: Nothing to do! Bye!
 nbd-server.

I have created this file in /etc/nbd-server/config, but whitout success...

In ubuntu dapper nbd-server start at first time....

Revision history for this message
Alexey Maximov (amax) wrote :

same problem, ltsp on amd64 are broken

Revision history for this message
Richard Huddleston (rhuddusa) wrote :

same problem

Karmic
Linux 2.6.32-02063209-generic #02063209 SMP Wed Feb 24 10:09:53 UTC 2010 x86_64 GNU/Linux

Revision history for this message
Wouter Verhelst (wouter-debian) wrote :

Try "dpkg-reconfigure nbd-server". That should ask some questions and generate a correct config file.

If it doesn't, remove the config file and try again.

Revision history for this message
Richard Huddleston (rhuddusa) wrote :

dpkg-reconfigure nbd-server correctly generated the config file

Revision history for this message
Nicolas Roussi (nroussi) wrote :

I am running Lucid 64 and there is no config file either. What should the correct values for the reconfigure command be?
Linux edubuntuLynx 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:09:38 UTC 2010 x86_64 GNU/Linux

Revision history for this message
Wouter Verhelst (wouter-debian) wrote : Re: [Bug 381766] Re: nbd-server no config file

On Mon, May 10, 2010 at 04:09:26PM -0000, Nicolas Roussi wrote:
> I am running Lucid 64 and there is no config file either. What should the
> correct values for the reconfigure command be?

In the future, please don't send mail to me directly. Instead, use the
bug report. That way, other people can also benefit from what I may or
may not be able to answer.

In this particular case, you need to just call 'dpkg-reconfigure
nbd-server', and fill out what files you wish to serve to your clients.

Alternatively, just read 'man 5 nbd-server', which documents the
configuration file format.

--
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
  http://www.schneier.com/blog/archives/2009/01/biometrics.html

Revision history for this message
Wouter Verhelst (wouter-debian) wrote :

On Tue, May 11, 2010 at 03:55:27PM +0200, Wouter Verhelst wrote:
> In the future, please don't send mail to me directly. Instead, use the
> bug report. That way, other people can also benefit from what I may or
> may not be able to answer.

Actually, you did do that. Never mind, sorry about that.

--
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
  http://www.schneier.com/blog/archives/2009/01/biometrics.html

Revision history for this message
Andrew Scott (andrew-aammscott) wrote :

Could you please provide a sample config file for comparison, for use with LTSP on Lucid Lynx?

I have attempted to fill in what I think are correct answers [1 server, serve /opt/ltsp/i386 and port 2000] but this does not seem to be making much difference and I still get blank screens on my clients.

Revision history for this message
Wouter Verhelst (wouter-debian) wrote :

On Fri, Jun 04, 2010 at 03:13:16PM -0000, Andrew Scott wrote:
> Could you please provide a sample config file for comparison, for use
> with LTSP on Lucid Lynx?

The output of

man 5 nbd-server

contains two at the end.

Also, if you call 'dpkg-reconfigure -plow nbd-server', you should get a
set of questions that help you generate a config file.

--
The biometric identification system at the gates of the CIA headquarters
works because there's a guard with a large gun making sure no one is
trying to fool the system.
  http://www.schneier.com/blog/archives/2009/01/biometrics.html

Changed in nbd (Ubuntu):
status: New → Confirmed
Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Actually, /var/lib/tftpboot/ltsp/i386/pxelinux.cfg/default includes the following line by default:

  append ro initrd=initrd.img quiet splash nbdport=2001

So which port number should I use: 2000 or 2001? Using one or another doesn't seems to be a difference, because all works exactly equal in both cases.

Aside from that, I got messages like the following from inetd into the syslog:

  Jul 16 21:43:17 servidor inetd[2095]: 2001/tcp: bind: Address already in use

Any clues?

Revision history for this message
MattFinck21 (finkeboy16) wrote :

Also Causes "NBD Server Not Found" while booting Thin Clients??

description: updated
description: updated
Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

For those in this bug report that are using LTSP:
LTSP in Ubuntu doesn't use a configuration file for nbd-server. It launches it via inetd instead:
$ grep nbd /etc/inetd.conf
9572 stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/nbdswapd
2000 stream tcp nowait nobody /usr/sbin/tcpd /usr/sbin/nbdrootd /opt/ltsp/images/i386.img

The nbdswapd and nbdrootd wrapper scripts then launch nbd-server with a "-C /dev/null" option, so user configuration files are ignored.

Anyone using LTSP who is having a problem with the nbd-server configuration should file a bug report under LTSP (ubuntu) instead, or just visit the IRC #ltsp channel in freenode or use its mailing list to get help in troubleshooting his problems.

Revision history for this message
Juan Pablo (juanps90) wrote :

Like he said, nbd in Ubuntu should run under inetd ( sudo apt-get install openbsd-inetd ), and the lack of a configuration file for nbd-server shouldn't be an issue.

Revision history for this message
David McNeill (davemc) wrote :

The message about no config file happens because you accepted the default of 0 number of servers to run in the ncurses dialog 'Configuring nbd-server', hence no config file is written, since no servers were requested.

Number of nbd-server instances to run: 0 <<<< change this to 1 for example, and then specify the file and port.

Then you will get a config file that you can look at and modify.

If you run dpkg-reconfigure nbd-server and still specify 0 servers, you will still get no config file.

Revision history for this message
Alkis Georgopoulos (alkisg) wrote :

Jaunty is EOL, closing this bug report.

Changed in nbd (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.