QEMU: Difference between revisions
(Collecting the pages that are Qemu-specific discussions) |
(Need to make this more useful as a page, and clean up the quick start stuff) |
||
Line 1: | Line 1: | ||
{{Translations}} |
{{Translations}} |
||
{{emulation-nav}} |
|||
<< [[Emulating the XO]] |
<< [[Emulating the XO]] |
||
Line 7: | Line 8: | ||
QEMU is an Open Source processor emulator which can run the official OLPC ext3 images directly. This means that no extra conversion or processing is required to run the images. As a result, a much wider range to images is available immediately than is seen with other emulation packages (such as [[VMWare]] or [[VirtualBox]]). |
QEMU is an Open Source processor emulator which can run the official OLPC ext3 images directly. This means that no extra conversion or processing is required to run the images. As a result, a much wider range to images is available immediately than is seen with other emulation packages (such as [[VMWare]] or [[VirtualBox]]). |
||
= Getting Started = |
|||
The [[Emulating the XO/Quick Start]] page is a tutorial on how to set up Qemu for emulating the OLPC environment. |
|||
== Platform Specific Instructions == |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
= Images = |
|||
QEMU can work directly with the official OLPC ext3-variants of images (note, ''not'' the JFFS2 images). |
|||
** [http://xs-dev.laptop.org/~cscott/olpc/streams/ship.2 Ship.2] -- patch releases for Official Releases |
|||
** [http://xs-dev.laptop.org/~cscott/olpc/streams/joyride Joyride] -- Bleeding Edge/Development Releases |
|||
= Qemu Tips = |
|||
== Sharing Files == |
|||
Sharing files with the client machine can be done using any general IP networking solution (scp, sftp, source-code-control). The host machine is normally located at IP address 10.0.2.2 as seen from the emulated machine. |
|||
== Overlays == |
|||
Qemu's "Copy on Write" overlays can be used to create (temporary) "scratch spaces" in which you can accomplish risky or messy tasks. The overlays work by specifying a read-only root disk image (such as the one that you downloaded above) and a second overlay image into which all writes will be performed (including deletions). |
|||
qemu-img create -f qcow -b olpc-649.img olpc-649-test.qcow |
|||
You can then use the olpc-649-test.qcow as your primary storage without causing any writes to the base image. |
|||
See also: |
See also: |
||
Line 17: | Line 50: | ||
* [[Emulating the XO/Quick Start]] -- describes the basic setup process to get a working QEMU environment |
* [[Emulating the XO/Quick Start]] -- describes the basic setup process to get a working QEMU environment |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
* [[Virtualization Common Room]] |
|||
* [[Ask_OLPC_a_Question/New#QEMU_emulation_of_XO_-_how_can_I_copy_files.3F|How to share files]] |
|||
* [[Remote_display#Fourth_Method_.28if_you_don.27t_have_an_XO.29]] -- use QEMU to provide VNC server for remote Sugar access |
* [[Remote_display#Fourth_Method_.28if_you_don.27t_have_an_XO.29]] -- use QEMU to provide VNC server for remote Sugar access |
||
Revision as of 04:58, 17 December 2007
modify |
QEMU is the best supported emulation system for emulating the OLPC-XO's Sugar environment. Many developers will use QEMU to help set up their development environment, whether for testing or development work.
You will almost certainly want to get the KQemu accelerator if you intend to use QEMU, as without it performance can be quite poor. On Windows and Mac, there are GUI wrappers available. Most Linux users tend to use the command-line approach to the program.
QEMU is an Open Source processor emulator which can run the official OLPC ext3 images directly. This means that no extra conversion or processing is required to run the images. As a result, a much wider range to images is available immediately than is seen with other emulation packages (such as VMWare or VirtualBox).
Getting Started
The Emulating the XO/Quick Start page is a tutorial on how to set up Qemu for emulating the OLPC environment.
Platform Specific Instructions
- Emulating the XO/Quick_Start/Linux
- Using QEMU on Windows
- How_to_set_up_for_development_on_linux_emulation
- Sugar on MacOS X
Images
QEMU can work directly with the official OLPC ext3-variants of images (note, not the JFFS2 images).
Qemu Tips
Sharing Files
Sharing files with the client machine can be done using any general IP networking solution (scp, sftp, source-code-control). The host machine is normally located at IP address 10.0.2.2 as seen from the emulated machine.
Overlays
Qemu's "Copy on Write" overlays can be used to create (temporary) "scratch spaces" in which you can accomplish risky or messy tasks. The overlays work by specifying a read-only root disk image (such as the one that you downloaded above) and a second overlay image into which all writes will be performed (including deletions).
qemu-img create -f qcow -b olpc-649.img olpc-649-test.qcow
You can then use the olpc-649-test.qcow as your primary storage without causing any writes to the base image.
See also:
Pages discussing QEMU:
- Emulating the XO/Quick Start -- describes the basic setup process to get a working QEMU environment
- Remote_display#Fourth_Method_.28if_you_don.27t_have_an_XO.29 -- use QEMU to provide VNC server for remote Sugar access