m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/qemu.md
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-11-25 21:19:43 +0100
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2020-11-25 21:19:43 +0100
commit6f13c3180c4a64b7cd3a0c7108f3069f1d29dcf8 (patch)
tree2d36a67b83d85c473663fd349ceb39c2858f4348 /qemu.md
parent30d042cec2c5ff85f859e3e6564be176479a9cfb (diff)
Add qemu sheet
Diffstat (limited to 'qemu.md')
-rw-r--r--qemu.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/qemu.md b/qemu.md
new file mode 100644
index 0000000..74036ad
--- /dev/null
+++ b/qemu.md
@@ -0,0 +1,19 @@
+# The Qemu Hypervisor
+
+## Create an image from ISO
+
+ qemu-img create -f qcow2 <image name> <disk space>
+
+ qemu-system-x86_64 \
+ -cdrom <iso> \
+ -drive "file=<image created above>,format=qcow2" \
+ -enable-kvm \
+ -m <memory> \
+ -smp <# processors>"
+
+Run the second command to e.g. go through the Ubuntu installer provided on the
+ISO.
+
+## Create a copy-on-write image from another image
+
+ qemu-img create -f qcow2 -b <source image> <new image file name>