qemu-discuss
[Top][All Lists]
Advanced

[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: Phil Ehrens
Subject: Re: [Qemu-discuss] qemu-nbd: knowing which nbd device number to connect
Date: Thu, 26 Sep 2013 09:00:29 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

Does this help?:

 udevadm info -q all -n /dev/nbdN

Raphael Bauduin wrote:
> Hi,
> 
> thanks for your answer.
> 
> But this lists all nbd devices, even those not connected, so it doesn't do
> what I need.
> 
> Raph
> 
> 
> 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

-- 
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



reply via email to

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