From: Luciano Miguel Ferreira Rocha Subject: Re: skimmed version of xen Date: Tue, 17 Oct 2006 14:36:15 +0100 Message-ID: <20061017133615.GA24280@nsk.no-ip.org> References: <20061017111438.81369.qmail@web34104.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1111016779==" Return-path: In-Reply-To: <20061017111438.81369.qmail@web34104.mail.mud.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1111016779== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 17, 2006 at 04:14:38AM -0700, Sanjam Garg wrote: > Hi > =20 > I just need to run one virtual machine on top of xen and want to use th= e dom0 to support the minimum functionality.Anybody has some ideas on it? > =20 I'll be making a system like that, also with DRBD, OCFS2 and a Xen cluster control system using group communication for the next couple of months. This will be on my spare time and I can give no guarantee on anything, including ETAs. Nevertheless, I'm going to use as base a initramfs system that I've been developing for other purposes. It includes bash, busybox, dropbear (ssh client/server), screen, vim, perl, lvm and other things. See http://gsd.di.uminho.pt/luciano/rd/ for package listing, initramfs and sources. It consists on various packages, on separate cpios[1] or on a single one: * btfs.init contains the base /init, that creates a tmpfs[2] filesystem, unpacks all cpio archives /*.co, /*.cgz and /*.cbz2 to that tmpfs, moves any remaining files in / to the tmpfs and then executes the real init. * base.cgz contains the base utilities, listed in http://gsd.di.uminho.pt/luciano/rd/base_list.txt, and boot/shutdown scripts. The boot scripts will: 1. auto-detect most pci modules 2. move all /etc/add.d/* to / 3. execute /etc/rc.d/S* on shutdown: 1. execute /etc/rc.d/K* 2. kill all processes 3. umount all filesystems The system is to be built combining the required packages for the target system. On a single cpio, or by using a boot loader that supports loading multiple cpios. Syslinux is a case of the latter, so here's what I use (see also http://gsd.di.uminho.pt/luciano/rd/mkiso.sample): 1. init - the btfs.init, 2. pkgs - an uncompressed cpio of the cpios of the other packages (the decompression of those is done by btfs) isolinux.cfg: label linux kernel vmlinuz append initrd=3Dinit,pkgs Don't forget to include in a pkg the modules for the kernel you'll be using. Regards, Luciano Rocha [1] initramfs cpios have to be in the new portable format, so don't forget to add the option -Hnewc to cpio when creating them. [2] initramfs is an instance of ramfs, that keeps all data in memory. Tmpfs adds the ability to swap out unused data, so the move to tmpfs will allow some memory to be regained after a swapon. --=20 lfr 0/0 --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQFFNNxPinSul6a7oB8RAixKAJ0SQc9IZd+BELaVwHi5j6deFpFXMgCfVQlr bjR/4TJJ/Xwyucpj8flL3Kc= =aB46 -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24-- --===============1111016779== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1111016779==--