Gentoo Archives: gentoo-user

From: Grant Taylor <gtaylor@×××××××××××××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] qemu / nbd
Date: Thu, 05 Dec 2019 19:02:05
Message-Id: 79c6fdd4-d1c2-5a07-ad53-e283708e6576@spamtrap.tnetconsulting.net
In Reply to: Re: [gentoo-user] qemu / nbd by Walter Dnes
1 On 12/4/19 11:03 PM, Walter Dnes wrote:
2 > nbd is a "Network Block Device" driver along the lines of NFS, but
3 > it doesn't handle concurrency. https://nbd.sourceforge.io/
4
5 I think I'd liken NBD to iSCSI more so than NFS. Primarily because both
6 NBD and iSCSI provide local block devices that are backed by something
7 across the network. Conversely, NFS provides access to regular files
8 from across the network.
9
10 You can put a file system on an NBD / iSCSI block device if you want,
11 but you don't have to. Conversely, NFS is a file system and doesn't
12 require putting a file system on top of it.
13
14 > But it's generic, and can handle any *REGULAR* file system, not just NFS.
15
16 NFS is not a file system in the /typical/ sense. There is no mkfs.nfs.
17 NFS is a file system in the sense that it is mounted and provides access
18 to files.
19
20 > QCOW2, or raw, or whatever, is a special QEMU format. So it requires
21 > QEMU libs (i.e. qemu-nbd) to decode QCOW2/RAW.
22 >
23 > Why doesn't qemu have a dependency on NFS?
24
25 It doesn't, nor does it need to.
26
27 > Same answer; they're both remote network block device systems that most
28 > linux users don't need,
29
30 NFS is not a block device.
31
32 > and they're both unrelated to the core functionality of QEMU.
33
34 QEMU can use image files (qcow(2) or raw) on any mounted file system.
35
36 NFS qualifies as a mounted file system, but that is completely outside
37 of QEMU.
38
39 Normal file systems can be put on NBD & iSCSI devices and mounted, but
40 that is also completely outside of QEMU.
41
42 QEMU proper will not use NBD devices (directly) itself.
43
44 qemu-nbd is a utility to act as a NBD server to allow the Linux kernel
45 to be an NBD client to access qcow(2) image files.
46
47 qemu-nbd is not /needed/ for normal QEMU operation.
48
49
50
51 --
52 Grant. . . .
53 unix || die
54
55
56
57
58
59 --
60 Grant. . . .
61 unix || die

Replies

Subject Author
Re: [gentoo-user] qemu / nbd n952162 <n952162@×××.de>
Re: [gentoo-user] qemu / nbd Neil Bothwick <neil@××××××××××.uk>