通过qemu-nbd方式挂载qcow2镜像格式
一、查看NBD(Network Block Device)信息
[root@localhost ~]# modinfo nbd
filename: /lib/modules/3.11.10-301.fc20.x86_64/kernel/drivers/block/nbd.ko
license: GPL
description: Network Block Device
depends:
intree: Y
vermagic: 3.11.10-301.fc20.x86_64 SMP mod_unload
signer: Fedora kernel signing key
sig_key: 03:59:1D:C5:7A:69:07:41:40:1A:1C:20:2E:2B:3D:9F:4F:ED:2A:0E
sig_hashalgo: sha256
parm: nbds_max:number of network block devices to initialize (default: 16) (int)
parm: max_part:number of partitions per device (default: 0) (int)
parm: debugflags:flags for controlling debug output (int)
[root@localhost ~]# modprobe nbd max_part=16
[root@localhost ~]# lsmod | grep nbd
nbd 17554