[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: Building a disk image?
From: |
Matt Lawrence |
Subject: |
Re: [Qemu-devel] Re: Building a disk image? |
Date: |
Tue, 5 Jul 2005 12:55:49 -0500 |
address@hidden wrote on 07/04/2005 10:34:35 AM:
> Le Sun, 03 Jul 2005 22:11:53 -0500, Matt Lawrence a écrit :
>
> > I'm trying to figure out how to script the creation of disk images for
> > qemu. I've already scripted file system creation with user-mode-linux, so
> > once I can get the partitions created correctly, the rest should be easy.
> > Right now, when I do a qemu-img create and run fdisk on the file, I get the
> > message "You must set cylinders". So, how to I figure out what to set them
> > to? And then, how do I convince mke2fs to create a filesystem in the
> > partition? Or, am I attacking this problem from the wrong direction?
>
> It's easier to use losetup to associate the image with a loop device ,
> then create the partitions with your favorite tool.
> Once the image is partitionned pass the offset option to losetup then
> create swap or filesystems on /dev/loop?.
I guess I don't don't quite understand how to get the partition table set up correctly with losetup. It looks like another issue. Also, how do I get the bootloader configured correctly in a disk image? I'm still a bit confused.
-- Matt
- [Qemu-devel] Building a disk image?, Matt Lawrence, 2005/07/03
- [Qemu-devel] Re: Building a disk image?, Ronald, 2005/07/04
- Re: [Qemu-devel] Re: Building a disk image?,
Matt Lawrence <=
- Re: [Qemu-devel] Re: Building a disk image?, Jim C. Brown, 2005/07/05
- Re: [Qemu-devel] Re: Building a disk image?, Magnus Damm, 2005/07/05
- Re: [Qemu-devel] Re: Building a disk image?, Jim C. Brown, 2005/07/06
- Re: [Qemu-devel] Re: Building a disk image?, Magnus Damm, 2005/07/06
- Re: [Qemu-devel] Re: Building a disk image?, Henrik Nordstrom, 2005/07/10