无法在主机 Ubuntu 中使用 QEMU 运行来宾操作系统 [英] Can't run a guest OS using QEMU in host Ubuntu

查看:32
本文介绍了无法在主机 Ubuntu 中使用 QEMU 运行来宾操作系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在运行 Ubuntu(基于 x86 架构)的主机中使用 QEMU 为 ARM 处理器运行 Debian 操作系统 .iso 映像.

我在终端中执行了以下行:

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

然后,出现以下窗口.

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

我不知道为什么 Debian 操作系统在执行上一行后没有启动.相反,QEMU 命令行界面会出现,等待用户输入一些命令.

提前致谢!

阿龙.

解决方案

通常,如果您尝试运行 qemu 并且只看到监视器,则您的图像可能有问题.

在这种情况下,您正在尝试启动debian-netinst".这是 debian 网络安装映像.如果您想模拟 debian-arm 图像,我建议您遵循 本教程 以启动和运行 debian-arm.

这里是一个可以自动执行该过程的脚本在那个教程中

脚本运行两个 QEMU 命令.第一个是一个冗长的安装过程,它应该提取 debian initrd/kernel.第二个 QEMU 命令将引导实际映像.在第二个命令运行后,您应该会看到 QEMU 监视器在一个窗口中打开.使用ctrl+alt+(1 or 2)切换到终端/gui显示

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.

解决方案

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

这篇关于无法在主机 Ubuntu 中使用 QEMU 运行来宾操作系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆