June 2017
Intermediate to advanced
340 pages
8h 22m
English
We take advantage of the functionality that the nbd kernel module provides by allowing us to associate a raw image file to a block device using the qemu-nbd utility. To get more information about the kernel module run the following code:
root@kvm:~# modinfo nbdfilename: /lib/modules/4.4.0-62-generic/kernel/drivers/block/nbd.kolicense: GPLdescription: Network Block Devicesrcversion: C67096AF2AE3C738DBE0B7Edepends:intree: Yvermagic: 4.4.0-62-generic SMP mod_unload modversionsparm: nbds_max:number of network block devices to initialize (default: 16) (int)parm: max_part:number of partitions per device (default: 0) (int)root@kvm:~#
We can examine the block device metadata created in step 2 by running the following command:
Read now
Unlock full access