-
nbd in knoppix 6.7.1 (boot: knoppix64)
I would like to mount a kvm qcow2 image (Windows XP) via nbd, but 'modprobe nbd' returns nil. Nothing obvious (to me
) in debian package repository for the missing kernel module. Pointers (instructions, reading materials) on how to achieve the image mount would be greatly appreciated. thanks in advance.
-
Senior Member
registered user
If you look inside the the kernel's configuration file, you will see that the support for network block devices was already compiled into the Knoppix kernel. There is no need to load a kernel module using modprobe. The device names are /dev/nbd[0..15].
I do not use network block devices myself, but I found a short tutorial on the Debian Administration web site: Working with network block devices
-
Thank you very much Klaus for the details on nbd, and also the tutorial (which would help bridge the gaps in my knowledge and get me going). Very much appreciated.
-
Continuing on getting nbd to work in Knoppix 6.7.1 (boot:knoppix64) - now with the knowledge that kernel has nbd -
the nbd server appears to start OK ("kvm-nbd -c /dev/nbd0 xp-disk.qcow2"), and fdisk shows partition 1 (as expected for the disk image xp-disk.qcow2). however, the device fails to mount ~ "mount /dev/nbd0p1 /mnt/xp-disk" gives the error message "mount: special device /dev/nbd0p1 does not exist").
A quick search points to the max_part parameter for nbd devices: "cat /sys/module/nbd/parameters/max_part" gives 0 (thus the failed mount). Had nbd been compiled as a module, it is said that "rmmod nbd" followed by "modprobe nbd max_part=16" would re-set the max_part parameter for mount to proceed. Given that nbd is compiled into the kernel in x86_64 in Knoppix 6.7.1, is it possible to change the parameter, and how? (it couldn't be editing directly the file in /sys/module/nbd/parameters/ - could it?)
-
Senior Member
registered user

Originally Posted by
boryeu.mao
Had nbd been compiled as a module, it is said that "rmmod nbd" followed by "modprobe nbd max_part=16" would re-set the max_part parameter for mount to proceed. Given that nbd is compiled into the kernel in x86_64 in Knoppix 6.7.1, is it possible to change the parameter, and how?
You can set the parameter using this "nbd.max_part=16", and this can be specified when you are prompted at boot parameter (in the exact same manner as you specify a cheatcode ), or you can specify it inside the file /mnt-system/boot/syslinux/syslinux.cfg.
Have fun with nbd, though I haven't used it before !
-
Thanks much for the solution(s) - and the help in improving my knowledge on all things kernel. It makes sense to have to reboot since the parameter is meant for the kernel. My first encounter with nbd as well. PS - correcting myself, max_part ought to be 15 (and not 16).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Lot of 32 IBM 32GB SERVER MEMORY MT80KHF4G72M3DZ-1G6E4B50A 00LP736 4Gx72 = DW
$17000.00

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU
$225.00

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1599.99

IBM Power 8 S822L Server 8247-22L POWER8 Enterprise 256GB RAM 2x 00KV626 CPU
$999.99

IBM Storwize V5000E V5030E SAN Storage Control Enclosure Server w/ Dual 02PX517
$1249.99

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$110.30

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

IBM EMC 091-000-091 17 Inch Rackmount LCD Keyboard KVM Console 03N7012
$109.99