欢迎光临散文网 会员登陆 & 注册

[QEMU]显示选项

2022-07-24 17:38 作者:-小白之家-  | 我要投稿
  • -display type

  • 选择要使用的显示类型。用于列出可用的显示类型。类型的有效值为-display help

    • spice-app[,gl=on|off]

    • 将 QEMU 作为 Spice 服务器启动,并启动默认的 Spice 客户端应用程序。Spice 服务器将重定向串行控制台和 QEMU 监视器。(自 4.0 起)

    • dbus

    • 通过 D 总线接口导出显示。(自 7.0 起)

      连接使用“org.qemu”名称注册(并在已拥有时排队)。

      addr=<dbusaddr>:要连接到的 D 总线地址。

      p2p=yes|no:使用通过 QMP 接受的对等连接。add_client

      gl=on|off|core|es:使用 OpenGL 进行渲染(D-Bus 接口将与 DMABUF 文件描述符共享帧缓冲器)。

    • sdl

    • 通过 SDL 显示视频输出(通常在单独的图形窗口中;有关其他可能性,请参阅 SDL 文档)。有效参数包括:

      grab-mod=<mods>:用于选择修饰键,以便与“g”键一起切换鼠标抓取。 可以是 或 。<mods>lshift-lctrl-laltrctrl

      gl=on|off|core|es:使用 OpenGL 进行显示

      show-cursor=on|off:强制显示鼠标光标

      window-close=on|off:允许退出 qemu 与窗口关闭按钮

    • gtk

    • 在 GTK 窗口中显示视频输出。此接口提供下拉菜单和其他 UI 元素,用于在运行时配置和控制 VM。有效参数包括:

      full-screen=on|off:以全屏模式启动

      gl=on|off:使用 OpenGL 进行显示

      grab-on-hover=on|off:鼠标悬停时抓取键盘输入

      show-cursor=on|off:强制显示鼠标光标

      window-close=on|off:允许退出 qemu 与窗口关闭按钮

    • curses[,charset=<encoding>]

    • 通过诅咒显示视频输出。对于支持文本模式的图形设备型号,QEMU 可以使用 curses/ncurses 接口显示此输出。当图形设备处于图形模式或图形设备不支持文本模式时,不显示任何内容。通常只有 VGA 设备型号支持文本模式。客户机使用的字体字符集可以使用该选项指定,例如,用于 IBM CP850 编码。缺省值为 。charsetcharset=CP850CP437

    • cocoa

    • 在可可窗口中显示视频输出。仅限 Mac。此接口提供下拉菜单和其他 UI 元素,用于在运行时配置和控制 VM。有效参数包括:

      show-cursor=on|off:强制显示鼠标光标

      left-command-key=on|off:禁用将左命令键转发到主机

    • egl-headless[,rendernode=<file>]

    • 将所有 OpenGL 操作卸载到本地 DRI 设备。对于任何图形显示器,此显示器需要与 VNC 或 SPICE 显示器配对。

    • vnc=<display>

    • 在显示<显示>启动 VNC 服务器

    • none

    • 不显示视频输出。来宾仍将看到模拟图形卡,但其输出不会显示给 QEMU 用户。此选项与 -nographic 选项的不同之处在于,它只影响视频输出的操作。-nographic 还会更改串行和并行端口数据的目标。

  • -nographic

  • 通常,如果 QEMU 是使用图形窗口支持进行编译的,则会在窗口中显示输出,例如客户机图形、客户机控制台和 QEMU 监视器。使用此选项,您可以完全禁用图形输出,以便QEMU是一个简单的命令行应用程序。模拟的串行端口在控制台上重定向,并与监视器进行多路复用(除非明确重定向到其他位置)。因此,您仍然可以使用 QEMU 通过串行控制台调试 Linux 内核。使用 C-a h 获取有关在控制台和监视器之间切换的帮助。

  • -spice option[,option[,...]]

  • Enable the spice remote desktop protocol. Valid options are

    • port=<nr>

    • Set the TCP port spice is listening on for plaintext channels.

    • addr=<addr>

    • Set the IP address spice is listening on. Default is any address.

    • ipv4=on|offipv6=on|offunix=on|off

    • Force using the specified IP version.

    • password=<string>

    • Set the password you need to authenticate.

      This option is deprecated and insecure because it leaves the password visible in the process listing. Use instead.password-secret

    • password-secret=<secret-id>

    • Set the ID of the object containing the password you need to authenticate.secret

    • sasl=on|off

    • Require that the client use SASL to authenticate with the spice. The exact choice of authentication method used is controlled from the system / user’s SASL configuration file for the ‘qemu’ service. This is typically found in /etc/sasl2/qemu.conf. If running QEMU as an unprivileged user, an environment variable SASL_CONF_PATH can be used to make it search alternate locations for the service config. While some SASL auth methods can also provide data encryption (eg GSSAPI), it is recommended that SASL always be combined with the ‘tls’ and ‘x509’ settings to enable use of SSL and server certificates. This ensures a data encryption preventing compromise of authentication credentials.

    • disable-ticketing=on|off

    • Allow client connects without authentication.

    • disable-copy-paste=on|off

    • Disable copy paste between the client and the guest.

    • disable-agent-file-xfer=on|off

    • Disable spice-vdagent based file-xfer between the client and the guest.

    • tls-port=<nr>

    • Set the TCP port spice is listening on for encrypted channels.

    • x509-dir=<dir>

    • Set the x509 file directory. Expects same filenames as -vnc $display,x509=$dir

    • x509-key-file=<file>x509-key-password=<file>x509-cert-file=<file>x509-cacert-file=<file>x509-dh-key-file=<file>

    • The x509 file names can also be configured individually.

    • tls-ciphers=<list>

    • Specify which ciphers to use.

    • tls-channel=[main|display|cursor|inputs|record|playback]plaintext-channel=[main|display|cursor|inputs|record|playback]

    • Force specific channel to be used with or without TLS encryption. The options can be specified multiple times to configure multiple channels. The special name “default” can be used to set the default mode. For channels which are not explicitly forced into one mode the spice client is allowed to pick tls/plaintext as he pleases.

    • image-compression=[auto_glz|auto_lz|quic|glz|lz|off]

    • Configure image compression (lossless). Default is auto_glz.

    • jpeg-wan-compression=[auto|never|always]zlib-glz-wan-compression=[auto|never|always]

    • Configure wan image compression (lossy for slow links). Default is auto.

    • streaming-video=[off|all|filter]

    • Configure video stream detection. Default is off.

    • agent-mouse=[on|off]

    • Enable/disable passing mouse events via vdagent. Default is on.

    • playback-compression=[on|off]

    • Enable/disable audio stream compression (using celt 0.5.1). Default is on.

    • seamless-migration=[on|off]

    • Enable/disable spice seamless migration. Default is off.

    • gl=[on|off]

    • Enable/disable OpenGL context. Default is off.

    • rendernode=<file>

    • DRM render node for OpenGL rendering. If not specified, it will pick the first available. (Since 2.9)

  • -portrait

  • Rotate graphical output 90 deg left (only PXA LCD).

  • -rotate deg

  • Rotate graphical output some deg left (only PXA LCD).

  • -vga type

  • Select type of VGA card to emulate. Valid values for type are

    • cirrus

    • Cirrus Logic GD5446 Video card. All Windows versions starting from Windows 95 should recognize and use this graphic card. For optimal performances, use 16 bit color depth in the guest and the host OS. (This card was the default before QEMU 2.2)

    • std

    • Standard VGA card with Bochs VBE extensions. If your guest OS supports the VESA 2.0 VBE extensions (e.g. Windows XP) and if you want to use high resolution modes (>= 1280x1024x16) then you should use this option. (This card is the default since QEMU 2.2)

    • vmware

    • VMWare SVGA-II compatible adapter. Use it if you have sufficiently recent XFree86/XOrg server or Windows guest with a driver for this card.

    • qxl

    • QXL paravirtual graphic card. It is VGA compatible (including VESA 2.0 VBE support). Works best with qxl guest drivers installed though. Recommended choice when using the spice protocol.

    • tcx

    • (sun4m only) Sun TCX framebuffer. This is the default framebuffer for sun4m machines and offers both 8-bit and 24-bit colour depths at a fixed resolution of 1024x768.

    • cg3

    • (sun4m only) Sun cgthree framebuffer. This is a simple 8-bit framebuffer for sun4m machines available in both 1024x768 (OpenBIOS) and 1152x900 (OBP) resolutions aimed at people wishing to run older Solaris versions.

    • virtio

    • Virtio VGA卡。

    • none

    • 禁用显卡。

  • -full-screen

  • 全屏启动。

  • -g 宽度高度深度x[x]

  • 设置初始图形分辨率和深度(仅限 PPC、SPARC)。

    对于 PPC,默认值为 800x600x32。

    对于带有 TCX 图形设备的 SPARC,默认值为 1024x768x8,选项为 1024x768x24。对于 cgthree,默认值为 1024x768x8,对于希望使用 OBP 的用户,选项为 1152x900x8。

  • -vnc display[,option[,option[,...]]]

  • 通常,如果 QEMU 是使用图形窗口支持进行编译的,则会在窗口中显示输出,例如客户机图形、客户机控制台和 QEMU 监视器。使用此选项,您可以让 QEMU 侦听 VNC 显示器显示器,并将 VGA 显示器重定向到 VNC 会话上。使用此选项时启用USB平板电脑设备非常有用(选项 )。使用 VNC 显示器时,如果未使用 en-us,则必须使用该参数来设置键盘布局。显示的有效语法为-device usb-tablet-k

    在显示值之后,可能有一个或多个用逗号分隔的选项标志。有效选项包括

    • reverse=on|off

    • 通过“反向”连接连接到侦听 VNC 客户端。客户端由显示器指定。对于反向网络连接(host:d,'reverse''),d 参数是 TCP 端口号,而不是显示号。

    • websocket=on|off

    • 打开专用于 VNC Websocket 连接的附加 TCP 侦听端口。如果给出了裸 websocket 选项,则 Websocket 端口为 5700+display。可以使用语法 =port 指定备用端口。websocket

      如果指定了主机,则仅允许来自此主机的连接。可以使用语法 =host:port 独立控制 websocket 侦听地址。websocket

      如果未提供 TLS 凭据,则 websocket 连接将在未加密模式下运行。如果提供了 TLS 凭据,则 websocket 连接需要加密的客户端连接。

    • password=on|off

    • 要求对客户端连接使用基于密码的身份验证。

      必须使用 QEMU 监视器中的命令单独设置密码。更改密码的语法是:其中<protocol>可以是“vnc”或“spice”。set_passwordset_password <protocol> <password>

      如果要更改<protocol>密码过期,则应使用过期时间可以是以下选项之一的位置:now、never、+seconds 或 UNIX 过期时间,例如 +60 使密码在 60 秒后过期,或者1335196800使密码在“Mon 23 12:00:00 EDT 2012”(此日期和时间的 UNIX 时间)过期。expire_password <protocol> <expiration-time>

      您还可以使用关键字“now”或“never”作为过期时间,以允许<protocol>密码立即过期或永不过期。

    • password-secret=<secret-id>

    • 要求使用 由 标识的对象提供的密码对客户端连接使用基于密码的身份验证。secretsecret-id

    • tls-creds=ID

    • 提供一组用于保护 VNC 服务器的 TLS 凭据的 ID。它们将同时应用于正常的 VNC 服务器套接字和 websocket 套接字(如果已启用)。设置 TLS 凭据将导致 VNC 服务器套接字启用 VeNCrypt 身份验证机制。凭据应以前使用该参数创建。-object tls-creds

    • tls-authz=ID

    • 提供将验证客户端的 x509 可分辨名称的 QAuthZ 授权对象的 ID。此对象仅在使用时解析,因此可以在 VNC 服务器处于活动状态时动态删除和重新创建。如果丢失,它将默认拒绝访问。

    • sasl=on|off

    • 要求客户端使用 SASL 向 VNC 服务器进行身份验证。所使用的身份验证方法的确切选择由系统/用户的 SASL 配置文件控制,用于“qemu”服务。这通常可以在 /etc/sasl2/qemu.conf 中找到。如果以非特权用户身份运行 QEMU,则可以使用环境变量SASL_CONF_PATH来使其搜索服务配置的备用位置。虽然一些 SASL 身份验证方法也可以提供数据加密(例如 GSSAPI),但建议 SASL 始终与“tls”和“x509”设置结合使用,以启用 SSL 和服务器证书。这可确保数据加密,防止身份验证凭据泄露。有关使用 SASL 身份验证的详细信息,请参阅《系统仿真用户指南》中的“VNC 安全性”部分。

    • sasl-authz=ID

    • 提供将验证客户端的 SASL 用户名的 QAuthZ 授权对象的 ID。此对象仅在使用时解析,因此可以在 VNC 服务器处于活动状态时动态删除和重新创建。如果丢失,它将默认拒绝访问。

    • acl=on|off

    • 用于针对 x509 可分辨名称和 SASL 用户名启用客户端授权的旧方法。它会导致创建两个 ID 为 和 的对象。这些对象的规则必须使用 HMP ACL 命令进行配置。authz-listvnc.usernamevnc.x509dname

      此选项已弃用,不应再使用。新的和选项是替代的。sasl-authztls-authz

    • lossy=on|off

    • 启用有损压缩方法(渐变、JPEG 等)。如果设置了此选项,VNC 客户端可能会收到有损帧缓冲器更新,具体取决于其编码设置。启用此选项可以节省大量带宽,但会牺牲质量。

    • non-adaptive=on|off

    • 禁用自适应编码。默认情况下,自适应编码处于启用状态。自适应编码将尝试检测频繁更新的屏幕区域,并使用有损编码(如 JPEG)在这些区域中发送更新。这对于在播放视频时节省带宽非常有帮助。禁用自适应编码会恢复编码(如 Tight)的原始静态行为。

    • share=[allow-exclusive|force-shared|ignore]

    • 设置显示共享策略。“允许-独占”允许客户端请求独占访问。正如 rfb 规范所建议的那样,这是通过删除其他连接来实现的。并行连接多个客户端需要所有客户端请求共享会话(vncviewer:-shared switch)。这是默认设置。“强制共享”禁用独占客户端访问。对于共享桌面会话很有用,您不希望有人忘记指定 - 共享断开其他所有人的连接。“忽略”完全忽略共享标志,并允许每个人无条件连接。不符合 rfb 规范,但属于传统的 QEMU 行为。

    • key-delay-ms

    • 设置键盘延迟,用于按键关闭和键上事件,以毫秒为单位。默认值为 10。键盘是低带宽设备,因此这种减速可以帮助设备和来宾跟上速度,并且在事件批量到达时不会丢失事件。后者的可能原因是不稳定的网络连接或用于自动测试的脚本。

    • audiodev=audiodev

    • 当 VNC 客户端请求音频传输时,请使用指定的音频开发。不使用 -audiodev 参数时,必须省略此选项,否则必须存在此选项并指定有效的 audiodev。

    • power-control=on|off

    • 允许远程客户端发出关机、重新启动或重置电源控制请求。

    • to=L

    • 使用此选项,QEMU将尝试下一个可用的VNC显示器,直到数字L,如果原始定义的“-vnc显示器”不可用,例如端口5900 +显示器已被另一个应用程序使用。默认情况下,to=0。

    • host:d

    • 仅允许来自显示 d 的主机的 TCP 连接。按照惯例,TCP 端口为 5900+d。(可选)可以省略 host,在这种情况下,服务器将接受来自任何主机的连接。

    • unix:path

    • 将允许通过 UNIX 域套接字进行连接,其中 path 是用于侦听连接的 unix 套接字的位置。

    • none

    • VNC 已初始化但未启动。监视命令可用于稍后启动 VNC 服务器。change


[QEMU]显示选项的评论 (共 条)

分享到微博请遵守国家法律