Questions tagged [nbd]

NBD Linux's network block device implementation.

NBD is a Linux network block device, i.e. a storage media that is implemented via commands over TCP to a daemon running on a remote machine. It uses the nbd kernel module and the nbd-client daemon on the client side (where the block device is), and the nbd-server daemon on the server side (where the underlying storage is).

External links

11 questions
42
votes
5 answers

How to mount qcow2 image

I've read that with qemu-nbd and the network block device kernel module, I can mount a qcow2 image. I haven't seen any tutorials on mounting a qcow2 via a loop device. Is it possible? If not, why? I don't really understand the difference between a…
onlyanegg
  • 975
  • 2
  • 8
  • 9
3
votes
2 answers

Check which network block devices are in use

How can I tell if a /dev/nbd* device is in use? Will "lsof" tell me? Or is there a better way? Is there an equivalent to "losetup -a" which will tell me the next free one?
Lorin Hochstein
  • 8,077
  • 17
  • 50
  • 56
2
votes
0 answers

Mounting read only snapshots of qcow2 images

I'm looking for a way to mount a read only snapshot of a qcow2 disk image so I can back up files from it. Based on the manpages for qemu-nbd a command like the following ought to work: qemu-nbd -x myimage --read-only --snapshot…
1
vote
0 answers

`qemu-nbd` list phantom partitions

When I mount a qcow2, like qemu-nbd --connect=/dev/nbd0 /path/image.qcow2, fdisk /dev/nbd0 -l lists me partition non visible on /dev/. And when I mount /dev/nbd0 /path It only mount what should be the first partition. And partx -a /dev/nbd0 gives…
aaa
  • 157
  • 1
  • 9
0
votes
0 answers

Backup encrypted disk without mounting

I would like to be able to backup an encrypted disk without having to mount the disk. The purpose is to allow an insecure automated system to backup the data without it ever having access to the data it is archiving. I really like BTRFS snapshots…
A. Que
  • 573
  • 1
  • 3
  • 14
0
votes
0 answers

Unable to mount network block device using nbd-client

I am quite new to using nbd in general. I have written an nbdkit plugin in Rust that I have been using as an nbd server to read from a backing store, and have been using guestfish, a filesystem shell, as my client. #!/bin/bash - guestfish --ro…
zdh5
  • 1
  • 1
0
votes
2 answers

nbd-client and nbd-server in docker container: "Couldn't resolve the nbd netlink family"

I am trying to build a docker image incorporating this github repo: https://github.com/javgh/sia-nbdserver This is an nbd-server that caches files locally and then writes them to the sia distributed storage network. I ran modprobe nbd on the host…
jesta
  • 1
0
votes
1 answer

Mount virtual disk device and access to it without being root

I am trying to create a virtual disk to share data with a VirtualBox VM not connected to the Internet. I proceed like follows qemu-img create -f qcow2 hdd.img 2G sudo modprobe nbd max_part=16 sudo qemu-nbd -c /dev/nbd0 hdd.img sudo mkfs.vfat…
antonio
  • 1,381
  • 3
  • 16
  • 37
0
votes
0 answers

Can I mount and local repartition / encryption to the nbd?

I am looking for a way to mount a network disk and encrypt it on my local PC, in the way that the server won't be able to know the content of my files. After searching I found nbd, a way to mount a block device over the network. I can't, however,…
Dr_Bunsen
  • 135
  • 5
0
votes
1 answer

qemu-nbd vs vdfuse for mounting vdi images

What's faster, qemu-nbd or vdfuse? Which support differencing images (snapshots)? I suspect fuse to be slow, but nbd seems to be some old stuff.
basin
  • 1,931
  • 4
  • 20
  • 36
-1
votes
2 answers

Cannot get NBD to work

According to this blog post, it should be easy: # nbd-server MyFile.dat # nbd-client localhost /dev/nbd0 Trouble is... that doesn't actually work. First of all, nbd-server whinges and whines about "no configured exports", unless I explicitly…
MathematicalOrchid
  • 5,664
  • 7
  • 35
  • 62