Fix NBD Live CD Support in Ubuntu casper
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
casper (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: casper
== Description
This patches /scripts/casper within initrd.lz to support booting Ubuntu Live CDs by exporting the .iso directly from nbd-server by adding netboot=nbd as a kernel command-line option. Tested under Ubuntu 10.04.
== Patch Details
The patch is simple and applies clean with one point to note: nbd-client must be included in the initrd for the distribution. The latest nbd-client and nbd-server source are available here: http://
== Usage Example
Prepare the server as:
nbd-server -r 2000 /mnt/data/
And then add the following to the Live CD kernel command line:
netboot=nbd nbdsrv=
In addition, this script fixes the NetworkManager netboot challenge (noted here: https:/
== NBD Kernel Command Line Options
The following list kernel command-line options that are available with their default values:
=== nbdrootdev=
The default nbd device to use for mounting the ISO (or other format) source image. You probably will not need to use this, however, you might be able to hack this to work with another blockdevice if the LiveCD does not probe your device for CD images.
=== nbdfstype=iso9660
The filesystem to mount $nbdrootdev as
=== nbdsrv=
The server to connect to with nbd-client
=== nbdport=2000
Default server port to connect
=== nbdblocksize=1024
nbdblocksize=1024 is default for backward-
=== nbdiface=eth0
This is the Ethernet interface that is to be ignored by NetworkManager. It is critical that this matches the interface to which there is an IP route to the nbd-server or NetworkManager will hang the system when it attempts to re-initialize eth0.
tags: | added: lucid |
Changed in casper (Ubuntu): | |
importance: | Undecided → Low |
importance: | Low → Wishlist |
Changed in casper (Ubuntu): | |
assignee: | Stéphane Graber (stgraber) → nobody |
Pre-built i386 and x86_64 initrd's with the nbdboot patch and a static-compiled i386/x86_64 nbd-client are available here: www.PortlandLin uxSupport. com/src/ ubuntu- live-nbdboot/
http://
pxeboot.cfg/default might contain something like the following for pxeboot+nbd of Ubuntu 10.04 Lucid:
LABEL lucid-x86_64 10.04-live/ vmlinuz ubuntu/ 10.04-live/ initrd. lz boot=casper netboot=nbd nbdsrv= 192.168. 102.101 nbdport=2000 nbdblocksize=4096 ip
kernel ubuntu/
append initrd=
LABEL lucid-i386 10.04-live- i386/vmlinuz ubuntu/ 10.04-live- i386/initrd- i386.lz boot=casper netboot=nbd nbdsrv= 192.168. 102.101 nbdport=2001 nbdblocksize=4096 ip
kernel ubuntu/
append initrd=