Cvetomir Denchev %!s(int64=9) %!d(string=hai) anos
pai
achega
5896ead73d
Modificáronse 1 ficheiros con 28 adicións e 0 borrados
  1. 28 0
      pages/common/qemu.md

+ 28 - 0
pages/common/qemu.md

@@ -0,0 +1,28 @@
+# qemu
+
+> Generic machine emulator and virtualizer.
+> Supports a large variety of CPU architectures.
+
+- Create disk image with a specific size (in gigabytes):
+
+`qemu-img create {{image_name.img}} {{gigabites}}G`
+
+- 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:
+
+`qemu-system-i386 -hda {{image_name.img}} -cdrom {{os-image.iso}} -boot d`
+
+- 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}}`