Warm tip: This article is reproduced from serverfault.com, please click

Can't run a guest OS using QEMU in host Ubuntu

发布于 2020-12-30 11:55:13

I'd like to run a Debian OS .iso image for ARM processors using QEMU in a host running Ubuntu (over an x86 architecture).

I executed the following line in a terminal:

aaron@aaron-HP-ZBook-14:~/Descargas$ qemu-system-arm -machine sabrelite -cdrom debian-10.7.0-arm64-netinst.iso -m 1024

But then, the following window appears.

https://i.stack.imgur.com/rB2PZ.png

I don't know why Debian OS is not initiating after executing the previous line. Instead, a QEMU command line interface appears waiting for the user to enter some commands.

Thanks in advance!

Aarón.

Questioner
Aaron Acosta
Viewed
0
Lenna 2021-01-06 10:14:06

Generally if you try to run qemu and only see the monitor there is likely something wrong with your image.

In this case you are attempting to boot "debian-netinst" which is the debian network-install image. If you want to emulate a debian-arm image I would recommend following this tutorial to get debian-arm up and running.

Here is a script that will automate the process in that tutorial

The script runs two QEMU commands. The first is a lengthy install process that should extract a debian initrd/kernel. The second QEMU command will boot the actual image. After the second command runs you should see the QEMU monitor open in a window. Use ctrl+alt+(1 or 2) to switch to the terminal/gui display