Changes between Version 13 and Version 14 of UsersGuide/RunningInQEMU
- Timestamp:
- 2016-04-19T16:28:08Z (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersGuide/RunningInQEMU
v13 v14 2 2 [[PageOutline]] 3 3 4 This page describes how to use [http://qemu.org QEMU] to run various HelenOS images you either [ http://www.helenos.org/download downloaded] or [wiki:UsersGuide/CompilingFromSource built yourself].4 This page describes how to use [http://qemu.org QEMU] to run various HelenOS images you either [wiki:Download downloaded] or [wiki:UsersGuide/CompilingFromSource built yourself]. 5 5 6 The following text describes how to run the emulator manually. That is necessary if you download the image, but if you build the image by yourself, you may use our wrapper script instead. The script is started using following command: 6 The following text describes how to run the emulator manually. That is necessary if you download the image, but if you build the image by yourself, you may use our wrapper script instead. The script is started using the following command: 7 7 8 {{{ 8 9 ./tools/ew.py 9 10 }}} 10 It detects used configuration (e.g. whether you built for `ia32` or `mips`) and start the appropriate emulator (for some architectures, it would also set-up networking in the emulator). Please note that this ''does not work'' for [http://www.helenos.org/download downloaded images]. 11 12 It detects emulator options to use from the used HelenOS configuration (e.g. whether you built for `ia32` or `mips`) and starts the appropriate emulator. For some architectures, it also sets-up networking, sound, USB and disk options. See `./tools/ew.py -h` for more information. Please note that this ''does not work'' for the prebuilt [wiki:Download images]. 11 13 12 14 == Basics == 13 15 16 We are assuming a sufficiently recent version of QEMU, such as 2.5.0 and newer. Older version may or may not work. You should be able to install a prepackaged version of QEMU from your distribution or you can build QEMU from scratch using a simple [browser:mainline/contrib/qemu/build-from-scratch.sh script] which comes with HelenOS sources: 17 18 {{{ 19 ./contrib/qemu/build-from-scratch.sh 20 }}} 21 14 22 === ia32 === 15 16 For QEMU 1.0.1 and newer:17 23 18 24 {{{ 19 25 qemu-system-i386 -cdrom image.iso 20 }}}21 22 For QEMU 1.0.0 and older:23 24 {{{25 qemu -cdrom image.iso26 26 }}} 27 27 … … 65 65 }}} 66 66 67 == KVM == 68 69 QEMU supports two modes of operation: binary translation and hardware virtualization. It uses [http://www.linux-kvm.org/page/Main_Page KVM] for the latter. If circumstances are right, it is possible to choose the second mode and benefit from better performance by appending the `-enable-kvm` option to the QEMU command line. 70 71 In general, KVM can only be used, if the following criteria are met: 72 73 * KVM is supported by the host operating system, e.g. Linux 74 * the host CPU supports hardware virtualization and this support is enabled in it 75 * hardware virtualization is not already in use, i.e. there is no running instance of !VirtualBox or Xen 76 * the guest and host CPUs are compatible (ia32 vs. amd64 is okay) 67 77 68 78 == Serial ports == … … 72 82 == Networking == 73 83 74 For general information about networking in HelenOS, please see UsersGuide/Networking84 For general information about networking in HelenOS, please see [wiki:UsersGuide/Networking]. 75 85 76 86 To use networking, a network interface card must be presented to the guest system. … … 140 150 141 151 142 === Working with USB devices in the control console 152 === Working with USB devices in the control console === 143 153 144 154 TODO