开发者

virsh shutdown for OpenBSD (libvirt/kvm)

开发者 https://www.devze.com 2023-03-24 00:49 出处:网络
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.

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?开发者_StackOverflow中文版 Now it asks user from console "press any key to reboot" and don't switch power 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.


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).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消