答案1
你需要确保控制台访问协议被定义为:
juju config nova-cloud-controller console-access-protocol=novnc
以下是描述此情况的 yaml 选项:
console-access-protocol:
description: |
Protocol to use when accessing virtual machine console. Supported types
are None, spice, xvpvnc, novnc and vnc (for both xvpvnc and novnc)
type: string
value: novnc
答案2
您还可以直接连接到虚拟机管理程序上的 lxc。
lxc exec lxc-name -- /bin/bash