24.3.3. 使用 console.vv 文件启动 SPICE 客户端的 SPICE 日志
对于 Linux 客户端机器:
使用
--spice-debug
选项运行remote-viewer
命令来启用 SPICE 调试。出现提示时,输入连接 URL,例如 spice://virtual_machine_IP :端口。remote-viewer --spice-debug
Copy to clipboardCopied# remote-viewer --spice-debug
要使用 debug 参数运行 SPICE 客户端并将 .vv 文件传递给该文件,请下载 console.vv 文件,并使用
--spice-debug
选项运行remote-viewer
命令并指定 console.vv 文件的完整路径。remote-viewer --spice-debug /path/to/console.vv
Copy to clipboardCopied# remote-viewer --spice-debug /path/to/console.vv
对于 Windows 客户端机器:
-
在版本
virt-viewer
2.0-11.el7ev 或更高版本中,virt-viewer.msi 会安装virt-viewer
和debug-viewer.exe
。 使用
spice-debug
参数运行remote-viewer
命令,并在控制台的路径上指示命令:remote-viewer --spice-debug path\to\console.vv
Copy to clipboardCopiedremote-viewer --spice-debug path\to\console.vv
-
要查看日志、连接到虚拟机,您会看到运行 GDB 的命令提示,该提示打印了
remote-viewer
的标准输出和标准错误。