OpenBSD 的 virsh 关闭 (libvirt/kvm)

发布于 2024-11-26 18:29:56 字数 285 浏览 6 评论 0原文

是否可以正确关闭 openbsd 4.7 或 4.9

virsh shutdown OpenBSD

openbsd 位于从 libvirt 配置的 kvm/qemu 下。

shutdown 应该发送一个 ACPI 信号“按下电源按钮”,但我的 openbsd guest 对此没有反应。

另外,我可以配置 OpenBSD 在执行 halt 时真正关闭虚拟机的电源吗?现在它会要求控制台用户“按任意键重新启动”并且不要关闭电源。

Is it possible to correctly shutdown a openbsd 4.7 or 4.9 with

virsh shutdown OpenBSD

The openbsd is under kvm/qemu configured from libvirt.

shutdown should send an ACPI signal "Power button pressed", but my openbsd guest does not react to this.

Also, can I configure OpenBSD to really turn off power of virtual machine when doing halt? Now it asks user from console "press any key to reboot" and don't switch power off.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

香草可樂 2024-12-03 18:29:56

你尝试了吗?

# shutdown -hp now

我在我的 openbsd 机器上这样做了,通过 ssh 登录,它工作得很好。机器已关闭,virsh 也显示了这一点。

virsh # list --all
 Id Name                 State
----------------------------------
  - CentOS_6             shut off
  - openbsd              shut off

希望有帮助。

did you try?

# shutdown -hp now

I did that in my openbsd machine, logged through ssh and it works fine. The machine is shutdown and virsh shows that too.

virsh # list --all
 Id Name                 State
----------------------------------
  - CentOS_6             shut off
  - openbsd              shut off

Hope it helps.

§普罗旺斯的薰衣草 2024-12-03 18:29:56

您可以在操作系统停止后使用“halt -p”关闭虚拟机电源。

我无法让 OpenBSD 4.7 或 4.9 响应 Ubuntu Jaunty (9.04) 附带的 KVM/QEMU 上的 ACPI 信号。

You can use "halt -p" to power down the VM after the OS is halted.

I have not been able to get OpenBSD 4.7 or 4.9 to respond to ACPI signals on KVM/QEMU that ships with Ubuntu Jaunty (9.04).

风轻花落早 2024-12-03 18:29:56

OpenBSD 中既没有 paravirt 驱动程序,也没有代理(qemu 来宾代理)。但请参阅 acpibtn(4),它指出是否通过 sysctl< 设置值/code> 它会对 acpi 调用做出反应。

There's neither paravirt driver nor agent (qemu guest agent) in OpenBSD. But see acpibtn(4), it states if a value is set via sysctl it would react to acpi call.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文