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: Wed, 25 Sep 2013 08:31:15 -0700
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

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