aboutsummaryrefslogtreecommitdiff
path: root/content/blog/commands/qemu-nbd.md
blob: ea0965863ef7e330a6bd8648bb041c9333974128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 >}}