Changes

718 bytes added ,  18:02, 22 April 2009
→‎HOWTO: Add creating disk images
Line 40: Line 40:     
You can run qemu on a variety of disk images, including .iso (CD image format), .img (raw disk images), .qcow2 (qemu Copy-On-Write).
 
You can run qemu on a variety of disk images, including .iso (CD image format), .img (raw disk images), .qcow2 (qemu Copy-On-Write).
 +
 +
===Creating disk images===
 +
 +
To create an empty, compressed, expandable hard drive image of 300 GB capacity, enter
 +
 +
$ qemu-img create my.img 300G
 +
 +
using the name of the image file you want to create. The file will be in qcow2 format unless you specify another option.
 +
 +
300 GB is what the School Server installation program wants. After installation, the image file will expand to 6.8 GB.
 +
 +
$ qemu-img info XS.img<br>
 +
image: XS.img<br>
 +
file format: qcow2<br>
 +
virtual size: 300G (322122547200 bytes)<br>
 +
disk size: 6.8G<br>
 +
cluster_size: 4096
    
===Minimum Command===
 
===Minimum Command===
Line 49: Line 66:  
$ kvm -hda hda.img
 
$ kvm -hda hda.img
   −
where you will substitute the name of your .img, .iso, or other disk image file.
+
where you will substitute the name of your .img or other disk image file.
 +
 
 +
Similarly for .iso images such as a Sugar LiveCD.
 +
 
 +
$ kvm -cdrom cd.iso
   −
This may well boot your image and run, letting you log in and try out your software, assuming that your image file is valid. Depending on what your purpose is, you may prefer to add other options. For full details, consult the qemu documentation. Here are some examples.
+
This may well boot your image and run, letting you log in and try out your software, assuming that your image file is valid and your processor is not too old. Depending on what your purpose is, you may prefer to add other options. Here are some examples. For full details, consult the qemu documentation.
    
===Virtual Hardware===
 
===Virtual Hardware===
Line 58: Line 79:  
$ kvm -m 512 -soundhw es1370  -net user -net nic,model=rtl8139 -hda hda.img -hdb hdb.img -cdrom cd.iso
 
$ kvm -m 512 -soundhw es1370  -net user -net nic,model=rtl8139 -hda hda.img -hdb hdb.img -cdrom cd.iso
   −
===Install School Server===
+
===Install [http://wiki.laptop.org/go/School_server School Server]===
    
$ kvm -m 512 -hda hda.img -cdrom XS.iso
 
$ kvm -m 512 -hda hda.img -cdrom XS.iso
   −
Pay attention to the boot sequence. Press F12 when instructed to get to the boot menu, and tell it to boot from CD. Follow on-screen instructions. The process is almost completely automated. You will then have to set up networking to make this image accessible to jabber users and the like.
+
Pay attention to the boot sequence or it will just skip to its defaults. Press F12 when instructed to get to the boot menu, and tell it to boot from CD. Follow on-screen instructions. The process is almost completely automated. You will then have to set up networking to make this image accessible to jabber users and the like.
    
===Command Line===
 
===Command Line===
1,009

edits