Bug 632020

Summary: Load live Image from network sources like AOE/NFS/NBD
Product: [Fedora] Fedora Reporter: G. Michael Carter <mikey>
Component: dracutAssignee: dracut-maint
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 15CC: adam.stokes, bruno, dhuff, harald, Jasper.Hartline, jonathan, katzj, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 19:30:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
parse script
none
aoeroot
none
module-setup.sh none

Description G. Michael Carter 2010-09-08 22:16:19 UTC
I'm trying to PXE boot a live image via nfs.  Problem is the current documentation give either NFS mount or LiveISO mount.  Not both.

ie: the following mounts the /sysroot live image perfectly fine.  But it can't mount the LiveOS/squashfs because the root tag needs live:{image} to work (at least that's what I've found)

LABEL F13-respin-20100725-i386
        kernel /images-livecds/F13-respin-20100725-i386-vmlinuz0
        MENU LABEL F13-respin-20100725-i386
        APPEND initrd=/images-livecds/F13-respin-20100725-i386-initrd0.img root=172.29.0.19:/var/www/netboot/images-squashfs/F13-respin-20100725-i386 rootfstype=auto ro vga=791 live_dir=/sysroot/LiveOS rdshell rdnetdebug rdlivedebug rdinitdebug ip=eth0:dhcp 


Not sure the best way to work this in.

Comment 1 Fedora Admin XMLRPC Client 2010-10-21 17:57:40 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Bug Zapper 2011-05-31 14:04:10 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 G. Michael Carter 2011-05-31 14:11:04 UTC
I haven't actually tried on Fedora 15 yet.  I know it still existed in Fedora 14.

The liveCD's have the option ndb: or livecd: or nfs:

What I need is a way to do ndb:livecd or nfs:livecd.

Comment 4 Brian Lane 2011-05-31 16:37:34 UTC
Ahh, I see. That bit is actually handled by dracut at boot time. I'm not sure that it is possible to do what you are trying to do.

Comment 5 G. Michael Carter 2011-05-31 17:31:03 UTC
Don't see why not.  Just have the ndb/nfs mount the drive first then have the livecd pull from /mnt/sys_whatever  instead of the /mnt/cdrom (or whatever)

Comment 6 G. Michael Carter 2011-07-05 16:03:03 UTC
Created attachment 511340 [details]
parse script

Comment 7 G. Michael Carter 2011-07-05 16:04:10 UTC
Created attachment 511341 [details]
aoeroot

Comment 8 G. Michael Carter 2011-07-05 16:08:57 UTC
Created attachment 511344 [details]
module-setup.sh

Managed to get this working how I want.  I basically created a dracut module to load the network and AOE stuff before the livecd dracut scripts (very ugly script I know).  Once the aoe stuff is running I can mount the livecd using:

vbladed 11 0 em1 /mnt/LiveCD/min-20110705-i386.iso

And using a PXE menu of:

LABEL register-test
        kernel /images-livecds/F15-test-vmlinuz
        MENU LABEL ^Test
        APPEND rootflags=loop initrd=/images-livecds/F15-test-initrd.img root=live:/dev/etherd/e11.0p1 rootfstype=auto ro liveimg ip=dhcp rd.luks=0 rd.md=0 rd.dm=0 aoe=/dev/etherd/e11.0p1 rdshell


I really think it would be a very useful feature to be able to load the livecd from various sources since a 4G livecd image isn't going to fit in a computer with 256MB or 512MB of ram.   LiveCD have the benefit of running read-only so I don't have to worry about someone mucking with the image.

Comment 9 Warren Togami 2011-07-14 23:22:05 UTC
You have implemented only LiveCD over AOE?  NBD would be fairly similar in that the file is served as a remote block device.

Comment 10 Fedora Admin XMLRPC Client 2011-10-20 16:20:42 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 11 Fedora End Of Life 2012-08-07 19:31:00 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping