From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C6CGs-0007Dq-Lp for qemu-devel@nongnu.org; Sat, 11 Sep 2004 14:06:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C6CGo-0007De-RK for qemu-devel@nongnu.org; Sat, 11 Sep 2004 14:06:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C6CGo-0007Db-Og for qemu-devel@nongnu.org; Sat, 11 Sep 2004 14:06:42 -0400 Received: from [213.80.72.10] (helo=kubrik.opensource.se) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C6CAt-0001Vm-LU for qemu-devel@nongnu.org; Sat, 11 Sep 2004 14:00:39 -0400 Subject: Re: [Qemu-devel] installing a boot loader into the disk images From: Magnus Damm In-Reply-To: <200409111611.21969.mark.williamson@cl.cam.ac.uk> References: <200409111456.42032.elcuco@kdemail.net> <200409111418.14548.mark.williamson@cl.cam.ac.uk> <200409111744.02985.elcuco@kdemail.net> <200409111611.21969.mark.williamson@cl.cam.ac.uk> Content-Type: text/plain Message-Id: <1094925991.1024.76.camel@kubu.opensource.se> Mime-Version: 1.0 Date: Sat, 11 Sep 2004 20:06:31 +0200 Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mark.williamson@cl.cam.ac.uk, qemu-devel@nongnu.org Hello, > You'll have to figure out a way of getting files onto this disk image at some > stage :-) Some possibilities: > * Use a distro running in QEmu to copy the files across (which it could in > turn get from NFS, SAMBA, etc.) > * Patch your host kernel so that it understands partitions in loop devices > * Use losetup to individually map the partitions to loop devices, using the -o > (offset) switch, then mount those. (I saw a script for doing this on a > mailing list somewhere - Google knows) I've created a tool that makes it possible to create and populate filesystems (ext2/ext3/reiserfs right now) on a disk image. Scriptable without root permissions. This tool is actually a small custom linux distribution (< 3 Mbytes) desigend to be executed in the QEMU environment. It is possible to pass a set of commands or a script to the QEMU environment for easy scripting. Files are transfered from the host to the guest with TFTP. Busybox fdisk is included (if I remember correctly that is), but no lilo/grub yet. You need a recent CVS snapshot of QEMU or 0.6.0 with a patch to get the tftp support. I really would like to get this project out of my closet, one big problem right now is that the entire source code is so damn large (> 100 Mbytes) and I need a way to distribute that amount of data. I was thinking bittorrent, does anyone know a good tracker for FOSS? Thanks! / magnus