[pve-devel] [PATCH qemu-server v4 14/27] module config: load nbd module at boot
Fiona Ebner
f.ebner at proxmox.com
Thu Nov 14 16:07:41 CET 2024
Adapt the existing modules-load.d configuration, to also include the
'nbd' kernel module. By default, it is only possible to expose 16
NBDs, so add a modprobe.d configuration file as well, with a higher
limit, i.e. 128.
This is in preparation for supporting external backup providers,
giving them access to a QEMU block layer snapshot of the VM's disk
images that are exported as NBD devices and then exposed as regular
block devices.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
New in v4.
Makefile | 1 +
modprobe.conf | 1 +
modules-load.conf | 1 +
3 files changed, 3 insertions(+)
create mode 100644 modprobe.conf
diff --git a/Makefile b/Makefile
index 133468da..419b8c8e 100644
--- a/Makefile
+++ b/Makefile
@@ -70,6 +70,7 @@ install: $(PKGSOURCES)
install -m 0755 qm $(DESTDIR)$(SBINDIR)
install -m 0755 qmrestore $(DESTDIR)$(SBINDIR)
install -D -m 0644 modules-load.conf $(DESTDIR)/etc/modules-load.d/qemu-server.conf
+ install -D -m 0644 modprobe.conf $(DESTDIR)/etc/modprobe.d/qemu-server.conf
install -m 0755 qmextract $(DESTDIR)$(LIBDIR)
install -m 0644 qm.1 $(DESTDIR)/$(MAN1DIR)
install -m 0644 qmrestore.1 $(DESTDIR)/$(MAN1DIR)
diff --git a/modprobe.conf b/modprobe.conf
new file mode 100644
index 00000000..b9c973df
--- /dev/null
+++ b/modprobe.conf
@@ -0,0 +1 @@
+options nbd nbds_max=128
diff --git a/modules-load.conf b/modules-load.conf
index aee7d42a..0c6bdf14 100644
--- a/modules-load.conf
+++ b/modules-load.conf
@@ -1 +1,2 @@
+nbd
vhost_net
--
2.39.5
More information about the pve-devel
mailing list