qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: Building a disk image?


From: Ronald
Subject: [Qemu-devel] Re: Building a disk image?
Date: Mon, 04 Jul 2005 17:34:35 +0200
User-agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.)

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?. 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]