WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [Fwd: Installing from distribution CDs]

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [Fwd: Installing from distribution CDs]
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 11 Jan 2005 14:48:09 -0600
Cc: niv@xxxxxxxxxx
Delivery-date: Tue, 11 Jan 2005 19:42:23 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Organization: IBM
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Sorry, hit send instead of attach again.  Rest of patches included.
-- 
Anthony Liguori
Samba, Linux/Windows Interoperability
Linux Technology Center (LTC) - IBM Austin
E-mail: aliguori@xxxxxxxxxx
Phone: (512) 838-1208
Tie Line: 678-1208
--- Begin Message ---
To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: Installing from distribution CDs
From: Anthony Liguori <aliguori@xxxxxxxxxx>
Date: Tue, 11 Jan 2005 14:47:15 -0600
Cc: niv@xxxxxxxxxx
Organization: IBM
Hi,

I recently tried to see what it would take in Xen to install a
distribution from a CD in domain > 0.  Here's my findings along with a
couple patches I used to find this.  These patches are proof of concepts
and quite ugly.

1) initrd support

Xen currently implements the ramdisk option which seems to simply pull
in a gzip'd file to a ramdisk and set that as the root.  Looking at the
initrd code in the kernel and reading through the man page, initrd is a
bit more complicated than that.

Among other things, the initrd process will check for a /linuxrc file
and execute it.  After execution, it will remount a new root and then
fall through to the normal init process.

SLES-9 at least uses linuxrc.  I imagine most distros do since it was
added specifically to help out distros.

2) CDROM support.  SLES-9 at least expects to have been booted from a
CDROM and looks for a /proc/sys/ entry to find out where that CDROM is. 
Right now Xen doesn't really support CDROMs.

The attached patches add /linuxrc to the init list (this will at least
let you get a bit into the installation process), add an old hack from
2.4 Xen to enable at least some response to MULTISESSION ioctls
(otherwise isofs won't mount the device), and also add a CDROM entry to
/proc/sys for hdc1.

A couple questions did come up though:

1) why isn't xen using the Linux initrd code?  The man page says that
initrd has unspecified features.  My fear is that some distros rely on
these features so reusing the initrd code would probably be best.

2) Have there been thoughts on how removable devices like CDROMs are
going to be supported?

BTW, you have to increase the ramdisk size to 64MB and add support for
minix to the kernel in order to boot off of  SLES cd.

Regards,

-- 
Anthony Liguori
Samba, Linux/Windows Interoperability
Linux Technology Center (LTC) - IBM Austin
E-mail: aliguori@xxxxxxxxxx
Phone: (512) 838-1208
Tie Line: 678-1208

Attachment: xen-sles9-fakecd.diff
Description: Text Data


--- End Message ---

Attachment: xen-sles9-linuxrc.diff
Description: Text Data

Attachment: xen-sles9-multisession.diff
Description: Text Data

Attachment: slesboot
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [Fwd: Installing from distribution CDs], Anthony Liguori <=