aboutsummaryrefslogtreecommitdiff
path: root/content/blog/commands/qemu-nbd.md
blob: 04028760e3cd6254514ae467b12e9a37a5b9ce8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
title: "qemu-nbd"
date: 2019-07-01
description: qemu-nbd usage example
tags:
  - linux
  - virtualization
---

## Usage example

{{< 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 >}}