aboutsummaryrefslogtreecommitdiff
path: root/content/blog/commands/qemu-nbd.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/blog/commands/qemu-nbd.md')
-rw-r--r--content/blog/commands/qemu-nbd.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/content/blog/commands/qemu-nbd.md b/content/blog/commands/qemu-nbd.md
new file mode 100644
index 0000000..ea09658
--- /dev/null
+++ b/content/blog/commands/qemu-nbd.md
@@ -0,0 +1,17 @@
+---
+title: "qemu-nbd"
+linkTitle: "qemu-nbd"
+date: 2019-07-01
+description: >
+ qemu-nbd
+---
+
+{{< highlight sh >}}
+modprobe nbd max_part=8
+qemu-nbd -c /dev/nbd0 image.img
+mount /dev/nbd0p1 /mnt # or vgscan && vgchange -ay
+[...]
+umount /mnt
+qemu-nbd -d /dev/nbd0
+{{< /highlight >}}
+