Ben
2017-Jun-09 02:09 UTC
[Nut-upsuser] Best way to shut down RH KVM/QEMU based VMs via NUT
Hey there, Has anyone tackled the best way to shut down a VM running Win10 running in RedHat's (CentOS 7) KVM/QEMU VM manager? I'm looking at this link to follow: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Deployment_and_Administration_Guide/sect-Managing_guest_virtual_machines_with_virsh-Shutting_down_rebooting_and_force_shutdown_of_a_guest_virtual_machine.html but thought I'd ask the group if they found any other cool tricks or pitfalls... Cheers, -Ben
Larry Fahnoe
2017-Jun-11 12:00 UTC
[Nut-upsuser] Best way to shut down RH KVM/QEMU based VMs via NUT
Hi Ben, On RHEL/CentOS 7, libvirt-guests (which comes from libvirt-client) on the host controls the suspend vs. shutdown behavior of the guests. By default the guests suspend, but if you want them to shutdown, change the ON_SHUTDOWN setting in /etc/sysconfig/libvirt-guests. I don't have any Windows guests, but the linux guests work nicely with the default suspend. That said, I have only recently begun to see an issue with one of my CentOS7 guests being resumed with incorrect time--haven't gotten to the bottom of that one yet. --Larry On Thu, Jun 8, 2017 at 9:09 PM, Ben <bkamen at benjammin.net> wrote:> Hey there, > > Has anyone tackled the best way to shut down a VM running Win10 running > in RedHat's (CentOS 7) KVM/QEMU VM manager? > > I'm looking at this link to follow: > > > https://access.redhat.com/documentation/en-US/Red_Hat_ > Enterprise_Linux/7/html/Virtualization_Deployment_and_ > Administration_Guide/sect-Managing_guest_virtual_ > machines_with_virsh-Shutting_down_rebooting_and_force_ > shutdown_of_a_guest_virtual_machine.html > > but thought I'd ask the group if they found any other cool tricks or > pitfalls... > > Cheers, > > > -Ben > > > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser >-- Larry Fahnoe, Fahnoe Technology Consulting, fahnoe at FahnoeTech.com Minneapolis, Minnesota www.FahnoeTech.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170611/77fe5ffd/attachment.html>
Ben
2017-Jun-11 14:25 UTC
[Nut-upsuser] Best way to shut down RH KVM/QEMU based VMs via NUT
On 06/11/2017 07:00 AM, Larry Fahnoe wrote:> Hi Ben, > > On RHEL/CentOS 7, libvirt-guests (which comes from libvirt-client) on the host controls the suspend vs. shutdown behavior of the guests. By default the guests suspend, but if you want them to shutdown, change the ON_SHUTDOWN setting in /etc/sysconfig/libvirt-guests. I don't have any Windows guests, but the linux guests work nicely with the default suspend. That said, I have only recently begun to see an issue with one of my CentOS7 guests being resumed with incorrect time--haven't gotten to the bottom of that one yet.Excellent! Thank you. As for your time issue, I might be able to help there. As it already stands, KVM/QEMU (and linux) handles the hardware RTC time in UTC and Windows seems the like handling it in local time. When I build this Win10 VM, it always came up the timezone+/- DST off. I had to add a Windows registry setting to tell it the RTC was UTC and not Local.> Windows Registry Editor Version 5.00 > > [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation] > "RealTimeIsUniversal"=dword:00000001did you do this yet? (just wondering if it'll help if you haven't.) Cheers, Ben
Ben
2017-Jun-11 14:27 UTC
[Nut-upsuser] Best way to shut down RH KVM/QEMU based VMs via NUT
On 06/11/2017 07:00 AM, Larry Fahnoe wrote:> Hi Ben, > > On RHEL/CentOS 7, libvirt-guests (which comes from libvirt-client) on the host controls the suspend vs. shutdown behavior of the guests. By default the guests suspend, but if you want them to shutdown, change the ON_SHUTDOWN setting in /etc/sysconfig/libvirt-guests. I don't have any Windows guests, but the linux guests work nicely with the default suspend. That said, I have only recently begun to see an issue with one of my CentOS7 guests being resumed with incorrect time--haven't gotten to the bottom of that one yet.Oh - I realized when I hit send - you were having issues with non-windows. Nevermind my previous post.... unless you decide to run Windows. :P -Ben
Seemingly Similar Threads
- Best way to shut down RH KVM/QEMU based VMs via NUT
- Best way to shut down RH KVM/QEMU based VMs via NUT
- Tripplite SMART2200VS with tripplite_usb: UPS doesn't shut down
- Tripplite SMART2200VS with tripplite_usb: UPS doesn't shut down
- Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)