sandia-minimega / minimega

minimega
GNU General Public License v3.0
148 stars 66 forks source link

Qemu 6.1+ Support #1485

Closed mdp3x closed 1 year ago

mdp3x commented 1 year ago

Describe your environment

  1. minimega version - latest source
  2. Linux distro/version - ubuntu 22.04 server
  3. Go compiler version - 1.19
  4. VM types - kvm

Describe the bug Qemu fails to launch images with snapshot

To Reproduce

vm config disk test.qcow2
vm launch kvm test
vm start test
vm info

Expected behavior Should boot.

https://github.com/GNS3/gns3-server/issues/1964 https://github.com/sandia-minimega/minimega/blob/4294142d1b37c18c0613456ec140df58b12b53c5/cmd/minimega/disk.go#L101

New qemu requires a backing file type this quick fix got my qcow2's booting again

out, err := processWrapper("qemu-img", "create", "-f", "qcow2", "-F", "qcow2", "-b", src, dst)
aherna commented 1 year ago

@mdp3x we will check it out, its on our list of TODOs