nongiach / arm_now

arm_now is a qemu powered tool that allows instant setup of virtual machines on arm cpu, mips, powerpc, nios2, x86 and more, for reverse, exploit, fuzzing and programming purpose.
https://github.com/nongiach/arm_now/wiki
MIT License
867 stars 87 forks source link

aarch64 doesn't work #23

Open Grazfather opened 6 years ago

Grazfather commented 6 years ago
[root@gpwn:~/code/gef]$ arm_now start aarch64

Downloading /root/.config/arm_now/templates/aarch64.tar.xz from https://github.com/nongiach/arm_now_templates/raw/master/aarch64.tar.xz
 [*] 3.4 MB / 3.4 MB @ 2.8 MB/s [##################] [100%, 0s left]
[+] Installed
Tempdir /tmp/tmpuva7od7f
File not found by ext2_lookup
WARNING: e2rm file already suppressed
Starting qemu-system-aarch64
stty intr ^]
       export QEMU_AUDIO_DRV="none"
       qemu-system-aarch64 -M virt -cpu cortex-a57 -smp 1 -kernel arm_now/kernel -append 'root=/dev/vda console=ttyAMA0' -netdev user,id=eth0 -device virtio-net-device,netdev=eth0 -drive file=arm_now/rootfs.ext2,if=none,format=raw,id=hd0 -device virtio-blk-device,drive=hd0                -m 256M                -nographic                -serial stdio -monitor /dev/null                                  -no-reboot
       stty intr ^c

Hangs like this, taking 100% cpu

You can repro:

docker run --rm -it --privileged grazfather/pwndock arm_now start aarch64
nongiach commented 6 years ago

Hey, Thx. Sounds like other arch are working but only aarch64 is not working for you?

Grazfather commented 6 years ago

I haven't tested all of them, but I tested a few, and only aarch64 is a problem. It's a problem on my VPS as well as in my docker image above. I have not tested it on anything else.

bebo-dot-dev commented 5 years ago

I see this same problem when attempting to arm_now start aarch64 in Linux Mint 18.3 Cinnamon x64 running directly on the metal.