[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] How to boot the ARM server ISO on QEMU?
From: |
Ciro Santilli |
Subject: |
[Qemu-discuss] How to boot the ARM server ISO on QEMU? |
Date: |
Mon, 14 Jan 2019 10:18:02 +0000 |
https://askubuntu.com/questions/797599/how-to-run-ubuntu-16-04-arm-in-qemu
I wanted to test out the ISO from:
https://www.ubuntu.com/download/server/arm on QEMU, but haven't managed to
run it, has anyone ever done that?
I've tried the setup below from Ubuntu 18.04, and GRUB does start, then the
installer, but after language selection it hangs and then complains:
> Your installation CD-ROM couldn't be mounted. This probably means that
the CD-ROM was not in the drive. If so you can insert it and try again.
This is my script, which I'm running on an Ubuntu 18.04 amd64 host:
#!/usr/bin/env bash
id=ubuntu-18.04.1-server-arm64
img="${id}.img.qcow2"
iso="${id}.iso"
flash0="${id}-flash0.img"
flash1="${id}-flash1.img"
# Images.
if [ ! -f "$iso" ]; then
wget "http://cdimage.ubuntu.com/releases/18.04/release/${iso}"
fi
if [ ! -f "$img" ]; then
qemu-img create -f qcow2 "$img" 1T
fi
if [ ! -f "$flash0" ]; then
dd if=/dev/zero of="$flash0" bs=1M count=64
dd if=/usr/share/qemu-efi/QEMU_EFI.fd of="$flash0" conv=notrunc
fi
if [ ! -f "$flash1" ]; then
dd if=/dev/zero of="$flash1" bs=1M count=64
fi
# Run.
# TODO where to put this?
#-drive "file=${img},format=qcow2" \
qemu-system-aarch64 \
-M virt \
-cdrom "$iso" \
-cpu cortex-a57 \
-device virtio-net-device,netdev=net0,mac=11:11:11:11:11:11 \
-m 2G \
-netdev type=tap,id=net0 \
-nographic \
-pflash "$flash0" \
-pflash "$flash1" \
;
- [Qemu-discuss] How to boot the ARM server ISO on QEMU?,
Ciro Santilli <=