m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/qemu.md
blob: 74036ada4fed33bf06a31d5d31208194fc340ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>