gpt4 book ai didi

centos - qemu-sparc 与 qemu-system-sparc

转载 作者:行者123 更新时间:2023-12-04 19:30:44 27 4
gpt4 key购买 nike

我安装了 CentOS 7.6,然后在我的机器上安装了所有 QEMU。我有一个 SPARC 镜像,需要在 VM 中调出。我一直在使用 qemu-system-sparc .

$ qemu-system-sparc -m 256 -hda solaris_v2-qemu_v2.2.0.disk -nographic -bios ./openbios-sparc32

这是在我安装了 Fedora-30 的盒子上。

我可以使用 qemu-sparc 调出我的 Solaris 镜像: solaris_v2-qemu_v2.2.0.disk ?

如果是这样,怎么做?

顺便说一句, qemu-sparc 附带(在 CentOS 7.6 上):
$ sudo yum install qemu*

PS> 我试过安装 qemu-system-sparc 在我的 CentOS 机器上,但最终陷入了一场永无止境的依赖游戏。

最佳答案

经过大量的网络搜索,我找到了this :

QEMU as an userspace emulator

QEMU usually comes in two flavors: qemu-system-* are system emulators(able to run entire operating systems as seen in the previoussection), while qemu-* are userspace emulators (only able to runuserspace applications).

QEMU as an userspace emulator is thus able to directly execute a SPARCapplication, by emulating the syscalls that the application requests.

Among the greatest features of this approach are:

The output of application is directly displayed in the terminal,Arguments to applications are directly given through the command line,QEMU returns the return code of applications, etc. QEMU really justacts as a wrapper around the application, as time or nice do.

The only complicated thing you have to do in this approach is tocompile a cross-toolchain for SPARC, so SPARC programs can be compiledon the host computer. Such a cross-toolchain can be generated by usingthe fabulous crosstool-ng.


所以答案似乎是:不,你 不能 使用 qemu-sparc 在虚拟机中运行你的镜像。

关于centos - qemu-sparc 与 qemu-system-sparc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57065230/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com