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

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

问题描述

我想在运行Ubuntu(通过x86架构)的主机中使用QEMU为ARM处理器运行Debian OS .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 OS无法启动.而是显示QEMU命令行界面,等待用户输入一些命令.

提前谢谢!

Aarón.

解决方案

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

在这种情况下,您尝试启动"debian-netinst"服务器.这是debian网络安装映像.如果要模拟debian-arm映像,我建议遵循此处是可自动执行该过程的脚本在该教程中

该脚本运行两个 QEMU命令.第一个是冗长的安装过程,应该提取一个debian initrd/kernel.第二个QEMU命令将引导实际映像.运行第二条命令后,您应该会在一个窗口中看到QEMU监视器已打开.使用 ctrl + alt +(1或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运行来宾OS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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