{"action":"closed","issue":{"url":"https://api.github.com/repos/sandia-minimega/minimega/issues/1087","repository_url":"https://api.github.com/repos/sandia-minimega/minimega","labels_url":"https://api.github.com/repos/sandia-minimega/minimega/issues/1087/labels{/name}","comments_url":"https://api.github.com/repos/sandia-minimega/minimega/issues/1087/comments","events_url":"https://api.github.com/repos/sandia-minimega/minimega/issues/1087/events","html_url":"https://github.com/sandia-minimega/minimega/issues/1087","id":310849440,"node_id":"MDU6SXNzdWUzMTA4NDk0NDA=","number":1087,"title":"Launch VM using qemu-system-aarch64","user":{"login":"SeanDHeath","id":6528011,"node_id":"MDQ6VXNlcjY1MjgwMTE=","avatar_url":"https://avatars2.githubusercontent.com/u/6528011?v=4","gravatar_id":"","url":"https://api.github.com/users/SeanDHeath","html_url":"https://github.com/SeanDHeath","followers_url":"https://api.github.com/users/SeanDHeath/followers","following_url":"https://api.github.com/users/SeanDHeath/following{/other_user}","gists_url":"https://api.github.com/users/SeanDHeath/gists{/gist_id}","starred_url":"https://api.github.com/users/SeanDHeath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeanDHeath/subscriptions","organizations_url":"https://api.github.com/users/SeanDHeath/orgs","repos_url":"https://api.github.com/users/SeanDHeath/repos","events_url":"https://api.github.com/users/SeanDHeath/events{/privacy}","received_events_url":"https://api.github.com/users/SeanDHeath/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-03T14:00:26Z","updated_at":"2018-09-05T19:17:33Z","closed_at":"2018-09-05T19:17:32Z","author_association":"NONE","body":"I've been working on messing around with MiniMega to launch a VM using qemu-system-aarch64 but I'm running into issues and I believe it's related to qmp.\r\n\r\nThis is my script so far:\r\n```\r\n#!/bin/bash\r\nIMAGES=\"/home/user/qemu-virt\"\r\nMM=\"sudo minimega -e\"\r\nNET=\"10.0.0.1/24\"\r\n$MM quit\r\nsudo minimega -nostdin &\r\nsleep 2s\r\n$MM log level debug\r\n$MM log stderr true\r\n$MM tap create net0 ip $NET\r\n$MM dnsmasq start 10.0.0.1 10.0.0.2 10.0.0.254\r\n$MM vm config disk $IMAGES/debian-stretch-arm64.qcow2\r\n$MM vm config kernel $IMAGES/vmlinuz\r\n$MM vm config initrd $IMAGES/initrd.gz\r\n$MM vm config memory 1024\r\n$MM vm config net net0\r\n$MM vm config qemu $(which qemu-system-aarch64)\r\n$MM vm config qemu-override add \"'-cpu host' '-cpu cortex-a53'\"\r\n$MM vm config qemu-override add \"'-enable-kvm' ''\"\r\n$MM vm config qemu-override add \"'-usbdevice tablet' ''\"\r\n$MM vm config qemu-override add \"'-drive file=' '-hda '\"\r\n$MM vm config qemu-override add \"',media=disk' ''\"\r\n$MM vm config qemu-override add \"'-vga cirrus' ''\"\r\n$MM vm config qemu-override add \"'e1000' 'virtio-net-pci'\"\r\n$MM vm config qemu-append \"-M virt\"\r\n$MM vm config append '\"root=/dev/vda2\"'\r\n$MM vm launch kvm 1\r\n$MM vm start all\r\n$MM web root /opt/minimega/misc/web\r\n```\r\nFrom what I can tell this attempts to launch but gets stuck somewhere and doesn't provide any error messages. The following script does launch the VM (in the terminal):\r\n\r\n```\r\nqemu-system-aarch64 \\\r\n  -name 0 \\\r\n  -m 1024 \\\r\n  -nographic \\\r\n  -balloon none \\\r\n  -smp 1 \\\r\n  -rtc clock=vm,base=utc \\\r\n  -device virtio-serial \\\r\n  -k en-us \\\r\n  -cpu cortex-a53 \\\r\n  -hda /home/user/qemu-virt/debian-stretch-arm64.qcow2 \\\r\n  -snapshot \\\r\n  -kernel /home/user/qemu-virt/vmlinuz \\\r\n  -append \"root=/dev/vda2\" \\\r\n  -initrd /home/user/qemu-virt/initrd.gz \\\r\n  -device pci-bridge,id=pci.1,chassis_nr=1 \\\r\n  -device virtio-serial-pci,id=virtio-serial0,bus=pci.1,addr=0x2 \\\r\n  -chardev socket,id=charvserialCC,path=cc,server,nowait \\\r\n  -device virtserialport,nr=1,bus=virtio-serial0.0,chardev=charvserialCC,id=charvserialCC,name=cc \\\r\n  -M virt\r\n```\r\nIf I attempt to remove the qmp line using `vm config qemu-override` it just gets added in again automatically on VM launch when you check `ps -aux | grep qemu`\r\n\r\nFrom what I can tell when the VM launches through MiniMega this is what happens:\r\n```\r\nQEMU waiting for connection on: disconnected:unix:/tmp/minimega/0/qmp,server\r\n```\r\nand it just waits there indefinitely. Is there any workaround?\r\n\r\nThanks"}}
{"actor":{"display_login":"jcrussell"}}