From 6f13c3180c4a64b7cd3a0c7108f3069f1d29dcf8 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 25 Nov 2020 21:19:43 +0100 Subject: Add qemu sheet --- qemu.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 qemu.md 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 + + qemu-system-x86_64 \ + -cdrom \ + -drive "file=,format=qcow2" \ + -enable-kvm \ + -m \ + -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 -- cgit v1.2.3