Hi John, John Hughes wrote about a year ago: > When creating a new domU with xen-create-image the template > '/etc/xen-tools/xm.tmpl' does not ensure that the "root[/]" file > system/drive occurs first in the "disk" stanza in the domU.cfg that is > created at '/etc/xen/domU.cfg'. Often(always) when the "root[/]" drive does > not come first in the config the following common error occurs: > > # xm create domU.cfg > Using config file "/etc/xen/domU.cfg". > Error: Boot loader didn't return any data!
I noticed this error message myself once or twice, too, but it took quite a while to find the real reason -- because sorting of the partitions by length of the mountpoint (i.e. "/" always first) is in the code since 3.x times. As far as I can tell now, the problem is that if no partitions file is used, there are only two (more or less hardcoded) partitions: the swap partition and the root partition. And the swap partition comes first. This seems no problem in general as there are no mount points which could overlap in that case. > The common fix is to manually edit the domU.cfg file to reorder the > "disk" stanza to allow the "root[/]" disk/file to come first. Yes. > This may be pyGrub related, but this fix appears to cleanly avoid > generating the issue. Yes, it seems to be an issue only for pygrub and hence a more modern issue caused by old code. :-) A fix should be part of the next xen-tools release which is due soon. > Here is a patch for the '/etc/xen-tools/xm.tmpl' file that fixes this > issue. Thanks for the patch, but (I hope) I fixed it now by reordering the default partitions when there meta data is gathered, i.e. as early as possible to avoid similar situations elsewhere. > P.S. This is the first patch I have created. Sorry if it is > incorrect. No, it was fine. Only you mail program added some additional line breaks so it no more had proper patch syntax, when I tried to apply it the first time. Regards, Axel -- ,''`. | Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/ : :' : | Debian Developer, ftp.ch.debian.org Admin `. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE `- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org