NBD

# https://gist.github.com/shamil/62935d9b456a6f9877b5
# setup
# 默认 16
# modprobe nbd max_part=8
modprobe nbd
qemu-img create -f qcow2 alpine.qcow2 40G
qemu-nbd --connect=/dev/nbd0 alpine.qcow2
# 磁盘信息
fdisk /dev/nbd0 -l
mount /dev/nbd0p1 /mnt
# cleanup
umount /mnt/somepoint/
qemu-nbd --disconnect /dev/nbd0
#
rmmod nbd