sandia-minimega / minimega

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

Bug: Can't launch vms #1435

Closed mkunz7 closed 3 years ago

mkunz7 commented 3 years ago

Describe your environment

  1. minimega version - latest
  2. Linux distro/version - ubuntu 18.04
  3. Go compiler version - 1.12.15
  4. VM types - vm

Describe the bug Unable to launch vms with latest Minimega

To Reproduce Steps to reproduce the behavior:

minimega
vm config disk /home/ubuntu/win10ltsb.qcow2
vm config memory 4096
vm config vcpus 2
vm launch kvm w10
vm info
host   | id | name | state | uptime       | type | uuid                                 | cc_active | pid   | vlan   | bridge        | tap         | mac                 | ip | ip6 | qos | memory | vcpus | disks                        | snapshot | initrd | kernel | cdrom                    | migrate | append | serial-ports | virtio-ports | vnc_port | filesystem | hostname | init | preinit | fifo | volume | console_port | tags
cyan53 | 2  | w10  | ERROR | 6.968050365s | kvm  | d0bd74b6-ed1a-4ed1-86f4-210c812c53b3 | false     | 27230 | [3003] | [mega_bridge] | [mega_tap2] | [e4:6f:13:6d:79:37] | [] | []  | []  | 4096   | 2     | /home/ubuntu/win10ltsb.qcow2 | false    |        |        | |         | []     | 0            |              | 0        | N/A        | N/A      | N/A  | N/A     | N/A  | N/A    | N/A          | {"error":"qemu killed: exit status 1 qemu-system-x86_64: -qmp unix:/tmp/minimega/2/qmp,server: info: QEMU waiting for connection on: disconnected:unix:/tmp/minimega/2/qmp,server\nqemu-system-x86_64: -drive file=/home/ubuntu/win10ltsb.qcow2,media=disk,if=ide,cache=writeback: Could not open backing file: Could not open '/root/win10ltsb.qcow2': No such file or directory\n"}
info: QEMU waiting for connection on: disconnected:unix:/tmp/minimega/2/qmp,server\nqemu-system-x86_64: -drive file=/home/ubuntu/win10ltsb.qcow2,media=disk,if=ide,cache=writeback: Could not open backing file: Could not open '/root/win10ltsb.qcow2': No such file or directory

Expected behavior vm should boot

EDIT: Works better don't use a broken image. It's been a long week.