-
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
![Quote](images/misc/quote_icon.png)
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
![New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C picture](/store/img/g/tqEAAOSwkbxmR-l8/s-l225/New-Precision-DWDM-SFP-10G-80km-Tunable-Transceive.jpg)
New Precision DWDM SFP+ 10G 80km Tunable Transceiver 50GHz C-Temp DWDM-SFP10G-C
$90.00
![SFP-10G-SR CISCO 10G SR SFP+ C-CLASS TRANSCEIVER 10 PACK picture](/store/img/g/qxMAAOSwBBFl62ur/s-l225/SFP-10G-SR-CISCO-10G-SR-SFP-C-CLASS-TRANSCEIVER-10.jpg)
SFP-10G-SR CISCO 10G SR SFP+ C-CLASS TRANSCEIVER 10 PACK
$99.00
![Lot (10) Dell 0N8TDR 850nm SFP-10G-SR-85C 10Gbs sfp+ FTLX8574D3BNL-FC N8TDR NEW picture](/store/img/g/E7cAAOSw98tljuIT/s-l225/Lot-10-Dell-0N8TDR-850nm-SFP-10G-SR-85C-10Gbs-sfp-.jpg)
Lot (10) Dell 0N8TDR 850nm SFP-10G-SR-85C 10Gbs sfp+ FTLX8574D3BNL-FC N8TDR NEW
$68.00
![Green Label Hologram SFP-10G-T-X 10GBASE-TSFP+ Transceiver Module RJ45 30m picture](/store/img/g/WIAAAOSw1yJmar4I/s-l225/Green-Label-Hologram-SFP-10G-T-X-10GBASE-TSFP-Tran.jpg)
Green Label Hologram SFP-10G-T-X 10GBASE-TSFP+ Transceiver Module RJ45 30m
$69.00
![CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty picture](/store/img/g/FkQAAOSwtBZbqRX9/s-l225/CISCO-SFP-10G-LR-SFP-TRANSCEIVER-MODULE-GBIC-10G-1.jpg)
CISCO SFP-10G-LR SFP TRANSCEIVER MODULE GBIC 10G 10GB SFP - 1 Year Warranty
$39.99
![ProLabs 10GBase-TX SFP+ RJ-45 Copper Transceiver Module P/N: SFP-10GBASE-T-C NEW picture](/store/img/g/NbQAAOSws1xmRieZ/s-l225/ProLabs-10GBase-TX-SFP-RJ-45-Copper-Transceiver-Mo.jpg)
ProLabs 10GBase-TX SFP+ RJ-45 Copper Transceiver Module P/N: SFP-10GBASE-T-C NEW
$34.99
![Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC picture](/store/img/g/aIgAAOSwXWNi1sm1/s-l225/Brand-New-Cisco-GLC-LH-SMD-1000BASE-LX-LH-SFP-Modu.jpg)
Brand New Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Module 1310nm 10km SMF LC
$10.99
![Genuine Cisco SFP-10G-SR Transceiver Module (10-2415-03) picture](/store/img/g/EGsAAOSwOLplBoX9/s-l225/Genuine-Cisco-SFP-10G-SR-Transceiver-Module-10-241.jpg)
Genuine Cisco SFP-10G-SR Transceiver Module (10-2415-03)
$5.85
![New Sealed Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Transceiver Module *US Shipping* picture](/store/img/g/aXUAAOSwHGZmCWqv/s-l225/New-Sealed-Cisco-GLC-LH-SMD-1000BASE-LX-LH-SFP-Tra.jpg)
New Sealed Cisco GLC-LH-SMD 1000BASE-LX/LH SFP Transceiver Module *US Shipping*
$9.50
![New HP Aruba J9150D 10GBASE-SR SFP+ Transceiver Module picture](/store/img/g/yQcAAOSweShmasBL/s-l225/New-HP-Aruba-J9150D-10GBASE-SR-SFP-Transceiver-Mod.jpg)
New HP Aruba J9150D 10GBASE-SR SFP+ Transceiver Module
$35.88