From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyH6N-00089N-Tw for qemu-devel@nongnu.org; Tue, 09 Dec 2014 04:29:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XyH6H-0008IZ-0j for qemu-devel@nongnu.org; Tue, 09 Dec 2014 04:29:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45437) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XyH6G-0008IN-Of for qemu-devel@nongnu.org; Tue, 09 Dec 2014 04:28:56 -0500 Date: Tue, 9 Dec 2014 10:28:46 +0100 From: Kevin Wolf Message-ID: <20141209092846.GA4088@noname.str.redhat.com> References: <1417768674.2432.1.camel@greffrath.com> <1418054074.3085.1.camel@greffrath.com> <5485CBE8.4000405@redhat.com> <1418057677.8306.6.camel@greffrath.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1418057677.8306.6.camel@greffrath.com> Subject: Re: [Qemu-devel] suggestion for the QEMU advent calendar List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabian Greffrath Cc: Stefan Hajnoczi , John Snow , qemu-devel Am 08.12.2014 um 17:54 hat Fabian Greffrath geschrieben: > PS: I am a bit shocked by the fact how complicated it is to install GRUB > on a disk image. And, John, even if the approach you outlined worked, I > guess GRUB will find its device.map puzzled when it will get rebooted > from inside an image file instead of an actual hard-drive partition the > next time. As long as you don't say which version of GRUB, it's easy. Install GRUB Legacy, copy stage[12] and menu.lst to the image and do this in the GRUB shell: device (hd0) $IMAGE_PATH root (hd0,0) install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.lst Or boot from a floppy/CD with GRUB in the VM and run the same thing without the "device" command. Syslinux is relatively easy as well. Just avoid GRUB 2 if you want to set up disk images from the host. I've done it before, but it's ugly... Kevin