[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] qemu-nbd: knowing which nbd device number to connect

From: Raphael Bauduin
Subject: Re: [Qemu-discuss] qemu-nbd: knowing which nbd device number to connect
Date: Thu, 26 Sep 2013 08:50:46 +0200


thanks for your answer.

But this lists all nbd devices, even those not connected, so it doesn't do what I need.


On Wed, Sep 25, 2013 at 5:31 PM, Phil Ehrens <address@hidden> wrote:
This may be all you need:

 ls /dev/nbd*

Unless the nbd model supports disconnection and reuse
of an existing device. Sorry, again I'm just guessing.

Please tell me if I'm being a nuisance.

Raphael Bauduin wrote:
> Hi,
> I'm accessing qcow2 images via nbd. This is done with a command as
> qemu-nbd -c /dev/nbd0 /path/to/image.qcow
> When making several images available, I use subsequent numbers for the
> /dev/nbd device to attach to. Is there a way to get the first available nbd
> device number ?
> Thanks
> Raph

Phil Ehrens <address@hidden> |              mm
The LIGO Laboratory, MS 100-36     |           /^(  )^\
California Institute of Technology |           \,(..),/
1200 East California Blvd.         |             V~~V
Pasadena, CA 91125 USA             | My gpg public key:
Phone:(626)395-8518                | http://www.imbe.net/peligo.asc

Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]