Changes between Version 18 and Version 19 of UsersGuide/RunningInQEMU
- Timestamp:
- 2016-04-20T19:06:37Z (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UsersGuide/RunningInQEMU
v18 v19 4 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 the following command:6 Here you will learn how to start the emulator manually, which is necessary if you download the image. But if you build the image by yourself, you may use our emulator wrapper script instead. The script is started using the following command: 7 7 8 8 {{{ … … 29 29 * the guest and host CPUs are compatible (ia32 vs. amd64 is okay) 30 30 31 == Basic s==31 == Basic usage == 32 32 33 The following subsections show the minimum QEMU command lines needed to run HelenOS on the respective QEMU machine. When spawned like this, the simulated QEMU machine may be missing some simulated hardware which in turn limits what you can do with the system. The nextsections will show you how to configure additional hardware.33 The following subsections show the minimum QEMU command lines needed to run HelenOS on the respective QEMU machine. When spawned like this, the simulated QEMU machine may be missing some hardware which limits what hardware HelenOS can detect on it and in turn what you can do with it. The later sections will show you how to configure additional hardware. 34 34 35 35 === amd64 === 36 37 QEMU can emulate a generic PC equipped with a 64-bit processor. For an `image.iso` built for the '''amd64''' or '''ia32''' profile, simply run: 36 38 37 39 {{{ … … 41 43 === arm32 === 42 44 43 QEMU can emulate [http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0159b/Cegeadbj.html ARM Integrator/CP]. For an `image.boot` built for '''arm32/integratorcp''' profile, do:45 QEMU can emulate [http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0159b/Cegeadbj.html ARM Integrator/CP]. For an `image.boot` built for the '''arm32/integratorcp''' profile, do: 44 46 45 47 {{{ 46 qemu-system-arm - kernel image.boot48 qemu-system-arm -M integratorcp -kernel image.boot 47 49 }}} 48 50 49 51 === ia32 === 52 53 QEMU can emulate a generic PC. For an `image.iso` built for the '''ia32''' profile, just run: 50 54 51 55 {{{ … … 72 76 === ppc32 === 73 77 78 QEMU can emulate [https://support.apple.com/kb/SP130 Power Macintosh G3]. For an `image.iso` built for the '''ppc32''' profile, do: 79 74 80 {{{ 75 qemu-system-ppc -cdrom image.iso -boot d 81 qemu-system-ppc -cdrom image.iso -boot d -m 256 76 82 }}} 77 83 78 84 === sparc64 === 79 85 80 QEMU can emulate a custom sun4u [http://qemu.weilnetz.de/qemu-doc.html#Sparc64-System-emulator machine] . For an `image.iso` built for the '''sparc64/ultra''' profile, do:86 QEMU can emulate a custom sun4u [http://qemu.weilnetz.de/qemu-doc.html#Sparc64-System-emulator machine] and HelenOS partially supports it. For an `image.iso` built for the '''sparc64/ultra''' profile, do: 81 87 82 88 {{{ 83 89 qemu-system-sparc64 -cdrom image.iso -boot d 84 90 }}} 91 92 Note that the system will boot into a GUI, but it will not be possible to control it using mouse or keyboard. 85 93 86 94 == Serial ports == … … 95 103 96 104 To add a virtual network card, add one of the following command-line options: 105 97 106 ||= Device =||= Option =|| 98 107 || Intel PRO/1000 || `-device e1000,vlan=0` || … … 110 119 -redir udp:8080::8080 -redir tcp:8181::8181 111 120 }}} 112 113 A script to run QEMU this way is present in source:mainline/contrib/conf/net-qe.sh114 121 115 122 === Bridging virtual network device with host's network interface === … … 140 147 QEMU will grab the device from your OS and you will no longer be able to use it in the host system (rather do not try it). When QEMU terminates, it releases the control. Depending on your OS and QEMU version you are using, it might be needed to physically reattach the device, before the host OS can work with it again. 141 148 142 143 149 === Emulated devices === 144 150