QEMU,无可引导设备,适用于 Linux 的 Windows 子系统 [英] QEMU, No bootable device, Windows Subsystem for Linux

查看:171
本文介绍了QEMU,无可引导设备,适用于 Linux 的 Windows 子系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习如何使用 https://intermezzos.github.io

我已经创建了我的 .iso 文件,现在我正在运行 qemu-system-x86_64 -cdrom os.iso当我按下 Enter 键时,QEMU 运行一个窗口,输出如下:

I've create my .iso file and I'm at the point where I am runnning qemu-system-x86_64 -cdrom os.iso When I press enter, QEMU runs a window with the following output:

Booting from Floppy...
Boot failed: could not read the boot disk

Booting from DVD/CD...
Boot failed: Could not read from CDROM (code 0004)
Booting from ROM...
iPXE (PCI 00:03.0) starting execution...ok
iPXE initializing devices...ok

iPXE 1.0.0+git-20131111.c3d1e78-2ubuntu1.1 -- Open Source Network Boot Firmware
-- http://ipxe.org
Features: HTTP HTTPS iSCSI DNS TFTP AoE bzImage ELF MBOOT PXE Menu

net0: 52:54:00:12:34:56 using 82549em on PCI00:03.0 (open)
  [Link:up, TX:0 TXE:0 RX:0 RXE:01]
Configuring (net0 52:54:00:12:34:56)...ok
net0: 10.0.2.15/255.255.255.0 gw 10.0.2.2
Nothing to boot: No such file for directory (http://ipxe.org/2d03e13b)
No more network devices

No bootable device.

我访问了输出中列出的网站 (http://ipxe.org/2d03e13b) 和一个提示之一是我可能使用 iPXE 命令行手动执行 DHCP,但是当我按 CTRL + B 访问 cli 时,我无法这样做.

I went to the website listed in the output (http://ipxe.org/2d03e13b) and one of the tips is that I might Use the iPXE command line to perform DHCP manually, however when I press CTRL + B to access cli, I'm not able to do so.

接下来我应该在哪里解决无法启动我的 .iso 的问题?
如何让 QEMU 可以访问键盘输入?

Where do I look next to troubleshoot this problem of not being able to boot my .iso?
How do I make QEMU have access to keyboard input?

更新
我不知道怎么做,但我现在可以使用 CTRL + B 访问 iPXE 命令行.

UPDATE
I don't know how, but I'm am now able to use CTRL + B to access iPXE command line.

这似乎是开始诊断无法启动 .iso 的问题的好地方.

This seems like a good place to start diagnosing my problem of not being able to boot my .iso.

我在找什么?

更新 2
感谢下面 Peter Maydell 的建议,我测试了一个已知良好的 iso 图像(https://alpinelinux.org/),运行 qemu-system-x86_64 -cdrom alpine-3.4.3-x86_64.iso 并按照我的预期完美启动.

UPDATE 2
Thanks to Peter Maydell's suggestion below, I've tested a known-good iso image (https://alpinelinux.org/), running qemu-system-x86_64 -cdrom alpine-3.4.3-x86_64.iso and it booted perfectly just as I expected.

我从 https://intermezzos.github.io 重写了我的文件以创建一个新的 iso 图像,这次从存储库复制并粘贴代码,以防我之前输入错别字.

I've rewritten my files from https://intermezzos.github.io to create a new iso image, this time copy and pasting the code from the repository, just in case I was previously inputting typos.

仍然无法启动.进入下一个线索...

Still not booting. On to the next clue...

推荐答案

问题的简单解决方案.与使用 EFI 启动的系统有关.

Simple solution to the problem. Has to do with systems that use EFI to boot.

来源

我需要apt-get install grub-pc-bin然后重建镜像.

这篇关于QEMU,无可引导设备,适用于 Linux 的 Windows 子系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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