m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>