qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] No useful documentation.


From: Nathaniel McCallum
Subject: Re: [Qemu-devel] No useful documentation.
Date: Wed, 05 Jul 2006 17:29:53 -0400

To create an empty Hard Drive image do:
    qemu-img create <filename> <size>
for example:
    qemu-img create windows.img 2G

You can also use the preferred ("qcow") image format by doing:
    qemu-img create -f qcow windows.img 2G

That gives you the ability to save snapshots, encrypt the image, etc.

Now we'll use this image:
    qemu -hda windows.img -cdrom /dev/cdrom -m 256 -boot d

That says:
    "-hda windows.img" == Use the file windows.img for the first disk
    "-cdrom /dev/cdrom" == Use /dev/cdrom for the CDROM
    "-m 256" == Use 256MB of memory
    "-boot d" == "Boot off of drive 'd', aka the cdrom"

Nathaniel


On Wed, 2006-07-05 at 22:19 +0100, Daniel Carrera wrote:
> On Wed, 2006-05-07 at 17:12 -0400, Nathaniel McCallum wrote:
> > A person who is in your position (frustrated for lack of documentation)
> > is actually the most qualified person to write documentation.  Feel free
> > to ask any questions you have on this list.
> 
> I would be happy to contribute a section. First I need to learn how qemu
> works though. Just the basics. On another list someone told me that the
> way qemu works is by first creating a blank image, then booting a CD
> from the virtual machine and installing.
> 
> At this point I know how to make a blank image, and I know how to boot a
> CD:
> 
> qemu -cdrom /dev/cdrom
> 
> Now I need to figure out how to put these together so that if this CD
> can install an operating system, qemu will know to use the blank image I
> made (call it c.img) as a hard drive for its virtual machine.
> 
> Could someone tell me how to do that?
> 
> I'll be happy to write an intro tutorial for new users with the
> knowledge I gain.
> 
> Cheers,
> Daniel.
> _______________________________________________
> Qemu-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/qemu-devel





reply via email to

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