Quantcast
Channel: A summer with pwntools
Viewing all articles
Browse latest Browse all 14

Setting up Aarch64 and QEMU

$
0
0
This is a short quick post on how I set up Aarch64 with a NAT connection.
For the most part, the process is similar to what is described here and here. Here is the command line I ended up using to start the VM.

HOST=ubuntu; mac=52:54:00:00:00:00; sshport=22000
sudo qemu-system-aarch64 -machine virt -cpu cortex-a57 -nographic -smp 1 -m 512 \
-global virtio-blk-device.scsi=off -device virtio-scsi-device,id=scsi \
-drive file=ubuntu-core-14.04.1-core-arm64.img,id=coreimg,cache=unsafe,if=none -device scsi-hd,drive=coreimg \
-kernel vmlinuz-3.13.0-55-generic \
-initrd initrd.img-3.13.0-55-generic \
-netdev user,hostfwd=tcp::${sshport}-:22,hostname=$HOST,id=net0 \
-device virtio-net-device,mac=$mac,netdev=net0 \
--append "console=ttyAMA0 root=/dev/sda"

The tricky part here is that ping was disabled on the image I used(this might also have been the case with a couple of other images I tried), even if it had a functional NAT connection. Try apt-get update or something to test your connection.

Viewing all articles
Browse latest Browse all 14

Trending Articles