scitas-mini-cluster/linux-image470660abdce6master
scitas-mini-cluster/linux-image
470660abdce6master
README
README
Creating and debugging the node linux image
Debug using Qemu
- Install qemu: Debian >= 9
apt-get install qemu-system-arm qemu-efi
- Run
DISK_EFI='efi.img' DISK_SYS='node.img' IMAGE='c4.img'
cloud-localds cloud.img cloud.txt
wget -O $IMAGE https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-arm64-uefi1.img
dd if=/dev/zero of=$DISK_EFI bs=1M count=64 dd if=/usr/share/qemu-efi/QEMU_EFI.fd of=$DISK_EFI conv=notrunc dd if=/dev/zero of=$DISK_SYS bs=1M count=64
sudo qemu-system-aarch64 -m 1024 -cpu cortex-a57 -M virt -nographic -pflash $DISK_EFI -pflash $DISK_SYS -drive if=none,id=cloud,file=cloud.img -drive if=none,file=$IMAGE,id=hd0 -device virtio-blk-device,drive=hd0 -netdev type=tap,id=net0 -device virtio-net-device,netdev=net0
c4science · Help