Re: shutdown/reboot on acpi/qemu signals
On 13/10/14 22:50, Mike Larkin wrote: On Mon, Oct 13, 2014 at 07:42:34PM +0100, Nux! wrote: Hello, I'm having an issue with my OpenBSD cloud instance in that it completely ignores the signals sent to it by qemu-kvm, so instead of getting shut down or rebooted gracefully it has to be reset. Anyone hit this issue before and can advise on the matter? Thanks, Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro What version of OpenBSD? We fixed this in April. I can also verify that in at least one of my vms (current / i386 / SP) acpi shutdown now works (on ovirt/RHEV). This was not the case a couple of months ago and I was also using disabled mpbios. Thanks for the change :) G
shutdown/reboot on acpi/qemu signals
Hello, I'm having an issue with my OpenBSD cloud instance in that it completely ignores the signals sent to it by qemu-kvm, so instead of getting shut down or rebooted gracefully it has to be reset. Anyone hit this issue before and can advise on the matter? Thanks, Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro
Re: shutdown/reboot on acpi/qemu signals
On 13-10-2014 15:42, Nux! wrote: I'm having an issue with my OpenBSD cloud instance in that it completely ignores the signals sent to it by qemu-kvm, so instead of getting shut down or rebooted gracefully it has to be reset. Anyone hit this issue before and can advise on the matter? Yes, this is a know issue. You need to disable mpbios on your kernel: config -ef /bsd ulc disable mpbios ukc quit This will permanently disable mpbios on your kernel. If you follow current and recompile you kernel often, then you'll need to run this command every time you install a new kernel. Reboot your system and check if mpbios is disabled: dmesg | grep mpbios You should get this: mpbios at bios0 not configured Now you can try issue virsh shutdown domain of shutting it down from virt-manager. It will also correctly shutdown the OpenBSD guest in the event of a host shutdown. Cheers, Giancarlo Razzolini [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
Re: shutdown/reboot on acpi/qemu signals
On Mon, Oct 13, 2014 at 07:42:34PM +0100, Nux! wrote: Hello, I'm having an issue with my OpenBSD cloud instance in that it completely ignores the signals sent to it by qemu-kvm, so instead of getting shut down or rebooted gracefully it has to be reset. Anyone hit this issue before and can advise on the matter? Thanks, Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro What version of OpenBSD? We fixed this in April.
Re: shutdown/reboot on acpi/qemu signals
On Mon, Oct 13, 2014 at 03:51:45PM -0300, Giancarlo Razzolini wrote: On 13-10-2014 15:42, Nux! wrote: I'm having an issue with my OpenBSD cloud instance in that it completely ignores the signals sent to it by qemu-kvm, so instead of getting shut down or rebooted gracefully it has to be reset. Anyone hit this issue before and can advise on the matter? Yes, this is a know issue. You need to disable mpbios on your kernel: config -ef /bsd ulc disable mpbios ukc quit This will permanently disable mpbios on your kernel. If you follow current and recompile you kernel often, then you'll need to run this command every time you install a new kernel. Reboot your system and check if mpbios is disabled: dmesg | grep mpbios You should get this: mpbios at bios0 not configured Now you can try issue virsh shutdown domain of shutting it down from virt-manager. It will also correctly shutdown the OpenBSD guest in the event of a host shutdown. Cheers, Giancarlo Razzolini [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s] You are smoking some serious crack there.
Re: shutdown/reboot on acpi/qemu signals
On 13-10-2014 16:50, Mike Larkin wrote: You are smoking some serious crack there. This is the only thing that works for me on all my OpenBSD virtualized installations. And I'm running 5.5 stable on all of them. I can't really speak for 5.6, since I don't run current on my production systems. So no, I'm not smoking crack. Cheers [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
Re: shutdown/reboot on acpi/qemu signals
On Mon, Oct 13, 2014 at 07:02:36PM -0300, Giancarlo Razzolini wrote: On 13-10-2014 16:50, Mike Larkin wrote: You are smoking some serious crack there. This is the only thing that works for me on all my OpenBSD virtualized installations. And I'm running 5.5 stable on all of them. I can't really speak for 5.6, since I don't run current on my production systems. So no, I'm not smoking crack. Cheers [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s] Disabling random parts of the kernel without understanding what you are doing is certainly smoking crack. I doubt you heard disable mpbios as a valid solution from any OpenBSD developer. The fix for this issue went in after 5.5. So if you don't want to update to -current, I'd ask that you don't advise other people to follow you down untested/unsupported paths.
Re: shutdown/reboot on acpi/qemu signals
On 13-10-2014 19:12, Mike Larkin wrote: isabling random parts of the kernel without understanding what you are doing is certainly smoking crack. I doubt you heard disable mpbios as a valid solution from any OpenBSD developer. No I didn't. I found it on a very old article, refering to OpenBSD 4.8 if I'm not mistaken. I followed the issue to some extent, IIRC it had something to do with the seabios that is used with qemu. And, since I needed my machines to proper shutdown, I tried that and it worked. The fix for this issue went in after 5.5. So if you don't want to update to -current, I'd ask that you don't advise other people to follow you down untested/unsupported paths. When you mentioned April, I figured it didn't went in on 5.5. Just as a note, I've been doing this since 5.4, and on several machines, with the most varied host/guest configuration, so I can't really say that I didn't tested. It might be unsupported, but it does the job. If the OP follows my advice and it works, better for him. If not, then he can just enable mpbios again on his kernel and try something else. Cheers [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
Re: shutdown/reboot on acpi/qemu signals
Giancarlo, Thanks, but for me it did not work, the guest fails to boot after this change. I'll wait for 5.6 for more serious work on KVM. Thanks! Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - From: Giancarlo Razzolini grazzol...@gmail.com To: Nux! n...@li.nux.ro, misc@openbsd.org Sent: Monday, 13 October, 2014 19:51:45 Subject: Re: shutdown/reboot on acpi/qemu signals On 13-10-2014 15:42, Nux! wrote: I'm having an issue with my OpenBSD cloud instance in that it completely ignores the signals sent to it by qemu-kvm, so instead of getting shut down or rebooted gracefully it has to be reset. Anyone hit this issue before and can advise on the matter? Yes, this is a know issue. You need to disable mpbios on your kernel: config -ef /bsd ulc disable mpbios ukc quit This will permanently disable mpbios on your kernel. If you follow current and recompile you kernel often, then you'll need to run this command every time you install a new kernel. Reboot your system and check if mpbios is disabled: dmesg | grep mpbios You should get this: mpbios at bios0 not configured Now you can try issue virsh shutdown domain of shutting it down from virt-manager. It will also correctly shutdown the OpenBSD guest in the event of a host shutdown. Cheers, Giancarlo Razzolini
Re: shutdown/reboot on acpi/qemu signals
On 13-10-2014 19:56, Nux! wrote: Thanks, but for me it did not work, the guest fails to boot after this change. I'll wait for 5.6 for more serious work on KVM. Which kernel you're using? The bsd or the bsd.mp? Which message appear on the boot? Which linux/qemu-kvm version? Cheers [demime 1.01d removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
Re: shutdown/reboot on acpi/qemu signals
On 13-10-2014 19:56, Nux! wrote: Thanks, but for me it did not work, the guest fails to boot after this change. I'll wait for 5.6 for more serious work on KVM. Which kernel you're using? The bsd or the bsd.mp? Which message appear on the boot? Which linux/qemu-kvm version? Why -- do you think anyone would follow your advice?