|
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 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |