如何开始实施虚拟机?
我最近对实现基本的 x86 虚拟机产生了兴趣。我认为这将是完全理解 x86 架构工作方式的最佳方式之一。
除了 bochs、QEMU、kvm 或 xen 等开源 VMM 的代码库之外,您会建议我查看哪些资源来开始使用?
I have recently become interested in implementing a basic x86 virtual machine. I think that it would be one the best ways to completely understand the way the x86 architecture works.
Other than the code base of open source VMMs like bochs, QEMU, kvm, or xen, what resources would you recommend that I look into to get started?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然查看简单的虚拟机管理程序似乎非常有趣,但我建议您从更简单的开始,只需将组装的指令直接写入磁盘映像的引导扇区(即引导加载程序,只是不一定加载另一个操作系统)。这样您就可以以“实模式”启动,并可以访问所有特权指令。我发现最好的起点是这里:MikeOS 手册。它为您提供了在短短几分钟内开始使用所需的一切,而且还提供了一个完全工作的操作系统。
While looking at the simple hypervisor seems very interesting, I would recommend you start even simpler, by just writing your assembled instructions directly to the bootsector of a disk image (i.e. a bootloader, just not necessarily one that loads another OS). This way you get to start in "real mode", with access to all privileged instructions. I found the best place to start was here: MikeOS handbook. It gives you everything you need to get started in just a few minutes, but also goes on to provide a fully working operating system.