aboutsummaryrefslogtreecommitdiff
path: root/content/blog/commands/qemu-nbd.md
blob: a9a5cebf1f28f4cad24b769e766cc7dc62b1f29e (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

```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
```