本文介绍了如何使用 qemu 在终端上运行非 gui 操作系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我部门的高性能计算机(带有 8 核处理器)上运行一些程序.现在我使用终端通过 ssh 使用该机器.机器上安装了Red Hat linux.但是我的程序需要在 Solaris 上运行.我在 x86 上使用 Nexenta Solaris.

I want to run some programs on the High Performance Computer (With 8-core processor) in my department. Now I use that machine with ssh using terminal. The machine has Red Hat linux installed on it. But my programs need to run on Solaris. I use Nexenta Solaris for x86.

可以使用 qemu 通过终端在该机器上运行 Nexenta Solaris.我需要说服管理员它可以,否则他不会在那台机器上安装 qemu,因此允许我通过虚拟机使用 Solaris.另请注意,我不将 GUI 与 Nexenta Solaris 一起使用,仅使用命令行.在我的机器上,我使用 VMware 来运行它.

Can qemu be used to run Nexenta Solaris on that machine through terminal. I need to convince the administrator that it can, otherwise he won't install qemu on that machine and therefore allow me to use Solaris through a virtual machine. Also note that I don't use GUI with the Nexenta Solaris, just command line. In my machine, I use VMware to run it.

推荐答案

您可以自己编译 qemu 并将其安装到您的主目录中.不会有内核模式的qemu加速器,但是qemu会工作,速度会比较高.

You can compile qemu for youself and install it into your home directory. There will be no kernel-mode qemu accelerator, but the qemu will work and the speed will be rather high.

Qemu 有两个非 gui 启动选项:http://wiki.qemu.org/download/qemu-doc.html

Qemu has two options for non-gui start: http://wiki.qemu.org/download/qemu-doc.html

2.3.4 显示选项:

-nographic

  • 通常,QEMU 使用 SDL 来显示 VGA 输出.使用此选项,您可以完全禁用图形输出,使 QEMU 成为一个简单的命令行应用程序.模拟串行端口在控制台上重定向.因此,您仍然可以使用 QEMU 来调试带有串行控制台的 Linux 内核.

-curses

  • 通常,QEMU 使用 SDL 来显示 VGA 输出.使用此选项,QEMU 可以在文本模式下使用 Curses/ncurses 界面显示 VGA 输出.图形模式下不显示任何内容.

也可以通过VNC协议(-vnc 选项)将图形输出发送到另一台机器

Also it can send graphic output to another machine via VNC protocol (-vnc option)

这篇关于如何使用 qemu 在终端上运行非 gui 操作系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-24 20:51