2016-03-30 10:58:06 +03:00
|
|
|
# qemu
|
|
|
|
|
|
|
|
> Generic machine emulator and virtualizer.
|
|
|
|
> Supports a large variety of CPU architectures.
|
2019-06-03 03:06:36 +03:00
|
|
|
> More information: <https://www.qemu.org>.
|
2016-03-30 10:58:06 +03:00
|
|
|
|
|
|
|
- Boot from image emulating i386 architecture:
|
|
|
|
|
|
|
|
`qemu-system-i386 -hda {{image_name.img}}`
|
|
|
|
|
|
|
|
- Boot from image emulating x64 architecture:
|
|
|
|
|
|
|
|
`qemu-system-x86_64 -hda {{image_name.img}}`
|
|
|
|
|
|
|
|
- Boot QEMU instance with a live ISO image:
|
|
|
|
|
2016-09-21 18:35:46 +03:00
|
|
|
`qemu-system-i386 -hda {{image_name.img}} -cdrom {{os_image.iso}} -boot d`
|
2016-03-30 10:58:06 +03:00
|
|
|
|
|
|
|
- Specify amount of RAM for instance:
|
|
|
|
|
|
|
|
`qemu-system-i386 -m 256 -hda image_name.img -cdrom os-image.iso -boot d`
|
|
|
|
|
|
|
|
- Boot from physical device (e.g. from USB to test bootable medium):
|
|
|
|
|
|
|
|
`qemu-system-i386 -hda /dev/{{storage_device}}`
|