[libvirt-users] mkfs fails on qemu-nbd device

Peter Krempa pkrempa at redhat.com
Thu Jun 27 11:38:56 UTC 2019

On Thu, Jun 27, 2019 at 16:22:27 +0530, Tanmoy Sinha wrote:
> Hi All,
> I am unable to figure out the issue here, when I try to create a filesystem
> (ext4) on a virtual disk using qemu-nbd. This happens intermittently.
> Following is the sequence of commands:-
> $> qemu-img create -f qcow2 test.qcow2 30G
> $> qemu-nbd --connect=/dev/nbd0 test.qcow2

I think you forgot to use -f  qcow2 in this command line.

Also the qemu mailing list will probably be better target for this
question since your examples are not using libvirt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20190627/ec39c481/attachment.sig>

More information about the libvirt-users mailing list