Bug 9546 - XEN driver autodetection support
Summary: XEN driver autodetection support
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-26 23:11 CET by AL13N
Modified: 2013-04-05 12:41 CEST (History)
4 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
Xen netinstall xvda alt F3 (25.67 KB, image/png)
2013-04-04 22:01 CEST, AL13N
Details
Xen netinstall xvda alt F4 (37.24 KB, image/png)
2013-04-04 22:01 CEST, AL13N
Details

Description AL13N 2013-03-26 23:11:32 CET
autodetection needs to be fixed:
- stage1
- rescue (drvinst/mount partitions/...)
- stage2 installer
- running system (udev?)

check xenbus and find out if this somehow autoloads required modules and there's also the xen platform device...

Reproducible: 

Steps to Reproduce:
AL13N 2013-03-26 23:11:53 CET

Assignee: bugsquad => alien

AL13N 2013-03-26 23:12:36 CET

CC: (none) => alien, mageia, thierry.vignaud, tmb

Comment 1 Thierry Vignaud 2013-03-31 00:27:26 CET
Fixed (tested stage1 fetching stage2 from net + stage2 installing on hd)
stage1 fetching stage2 from hd is known to be broken but that's not such an usefull case for virtualising

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 2 AL13N 2013-03-31 21:16:38 CEST
is this due to stage1 not having xen-blkfront autodetected/loaded ?

did you select the module xen-netfront manually, or chose a different driver? or wrote some code that detects xen-netfront like it does virtio ? or it's been compiled in kernel, or does it actually load from udev? or ... ?

i'm interested in the how...

btw: if you wrote detection code, you could load xen-blkfront together with xen-netfront...
Comment 3 Thierry Vignaud 2013-04-01 00:16:41 CEST
ldetect:
http://svnweb.mageia.org/soft?view=revision&revision=7728

stage1:
http://svnweb.mageia.org/soft?view=revision&sortby=date&revision=7731

stage2:
http://svnweb.mageia.org/soft?view=revision&sortby=date&revision=7732
http://svnweb.mageia.org/soft?view=revision&sortby=date&revision=7733

rescue would need sg like this in rc.sysinit:
if [ -e /sys/bus/xen/ ]; then
   modprobe xen-blkfront
   modprobe xen-netfront
fi
Comment 5 Thierry Vignaud 2013-04-01 16:11:00 CEST
media_type is a drakx field and we only put 'hd' for hard disks.
Anything else means they won't be recognized as hd.
as for the first one, if xen presents them as regulard ide/scsi disks, they should be detected the regular way.
this piece of code is only for paravirtualized block devices, not for emulated ones.
Comment 6 AL13N 2013-04-01 20:03:33 CEST
yes, but in paravirtualised drivers, you can choose the device name in the configuration, and it uses that device... you can pick xvda or sda or hda in paravirtualisation and it will use that one due to the net-blkfront driver...
Comment 7 AL13N 2013-04-01 22:34:59 CEST
to clarify, this could mean that hda or sda could need xen-blkfront, it's not because it's hda or sda that it's emulated device... pv device doesn't mean you're limited to using xvdX
Comment 8 Thierry Vignaud 2013-04-01 22:57:34 CEST
Feel free to test :-)
Comment 9 AL13N 2013-04-01 23:19:07 CEST
will do, (if i don't forget)
Comment 10 AL13N 2013-04-04 08:27:17 CEST
stage1 worked for me.

but i've heard from a user on IRC that he gets a message in installer:

"insmod: xen-blkfront failed" or something similar...


problem is, he has a nonxen physical machine, so something is wrong there.
Comment 11 AL13N 2013-04-04 08:29:32 CEST
i forgot to mention he used nonfree boot.iso
Comment 12 AL13N 2013-04-04 21:22:54 CEST
reopening the bug for that...

rescue should indeed also have some kind of xen-blkfront during drvinst or something

not sure this is to be in rc.sysinit though...

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 13 Thierry Vignaud 2013-04-04 21:40:51 CEST
rebuilding rescue with latest ldetect should be enough

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 14 AL13N 2013-04-04 21:45:59 CEST
@tv: btw: are you sure to close this?

i reopened because some user reports that a netinstall on a physical machine (NO XEN) reports in the beginning of stage2 that "xen-blkfront fails to insmod"
Comment 15 AL13N 2013-04-04 22:01:00 CEST
Created attachment 3694 [details]
Xen netinstall xvda alt F3

installation on HVM failed with this errormessage
AL13N 2013-04-04 22:01:14 CEST

Status: RESOLVED => REOPENED
Resolution: FIXED => (none)

Comment 16 AL13N 2013-04-04 22:01:41 CEST
Created attachment 3695 [details]
Xen netinstall xvda alt F4
Comment 17 AL13N 2013-04-04 22:02:48 CEST
these IO errors look pretty weird... and cannot find superblock things... xen-blkfront was loaded... i used LVM as backend
AL13N 2013-04-05 07:54:41 CEST

Assignee: alien => thierry.vignaud

Comment 18 Thierry Vignaud 2013-04-05 09:55:33 CEST
Please don't mix issues.
This is another issue.
Open another bug report.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 19 Thierry Vignaud 2013-04-05 12:41:33 CEST
(In reply to AL13N from comment #14)
probing xen-*front on bare metal is fixed with new ldetect

Note You need to log in before you can comment on or make changes to this bug.