Ubuntu – How to create images from iso for KVM


Hi all 🙂 I want to create a KVM image from an existing iso file (for glance on OpenStack), but I didn't find how to do it. Can you help me please?

Best Answer

  • Create a VM with a size (6G below) (it will be small until the install is done into it)

    qemu-img create myvm.img -f qcow2 6G

    Then install the iso into your vm

    kvm -m 750 -cdrom ${PWD}/whatever.iso -boot d myvm.img

    And run it in 990M of memory:

    kvm -m 990 myvm.img
  • Related Question