diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 31c132b94e..9ade5072bd 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -1992,8 +1992,9 @@
the type attribute selects the primary
backend driver name, while the format
attribute provides the format type. For example, LXC
- supports a type of "loop", with a format of "raw". QEMU
- supports a type of "path" or "handle", but no formats.
+ supports a type of "loop", with a format of "raw" or
+ "nbd" with any format. QEMU supports a type of "path"
+ or "handle", but no formats.
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 6078b7a758..800442896e 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -1675,6 +1675,7 @@
pathhandleloop
+ nbd
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index ddf9ace16e..862b9970cb 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -343,7 +343,8 @@ VIR_ENUM_IMPL(virDomainFSDriverType, VIR_DOMAIN_FS_DRIVER_TYPE_LAST,
"default",
"path",
"handle",
- "loop")
+ "loop",
+ "nbd")
VIR_ENUM_IMPL(virDomainFSAccessMode, VIR_DOMAIN_FS_ACCESSMODE_LAST,
"passthrough",
diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h
index b5a0db83d2..a9d34105d9 100644
--- a/src/conf/domain_conf.h
+++ b/src/conf/domain_conf.h
@@ -801,6 +801,7 @@ enum virDomainFSDriverType {
VIR_DOMAIN_FS_DRIVER_TYPE_PATH,
VIR_DOMAIN_FS_DRIVER_TYPE_HANDLE,
VIR_DOMAIN_FS_DRIVER_TYPE_LOOP,
+ VIR_DOMAIN_FS_DRIVER_TYPE_NBD,
VIR_DOMAIN_FS_DRIVER_TYPE_LAST
};
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index 372e1a3215..eddc263680 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -140,6 +140,7 @@ VIR_ENUM_IMPL(qemuDomainFSDriver, VIR_DOMAIN_FS_DRIVER_TYPE_LAST,
"local",
"local",
"handle",
+ NULL,
NULL);
diff --git a/tests/lxcxml2xmldata/lxc-disk-formats.xml b/tests/lxcxml2xmldata/lxc-disk-formats.xml
index da53cf22b0..e9530650b4 100644
--- a/tests/lxcxml2xmldata/lxc-disk-formats.xml
+++ b/tests/lxcxml2xmldata/lxc-disk-formats.xml
@@ -19,6 +19,11 @@
+
+
+
+
+