Re: [vm-bhyve] Windows 2012 and 2016 servers guests would not stop

2019-04-24 Thread Victor Sudakov
Victor Sudakov wrote: > > For the present I think I've found a workaround not directly related to > vm-bhyve. I'm going to insert "service vm stop" into the doshutdown() > procedure in /usr/local/etc/apcupsd/apccontrol before the actual > ${SHUTDOWN}. It should give the VMs sufficient time to

Re: [vm-bhyve] Windows 2012 and 2016 servers guests would not stop

2019-04-24 Thread Stephen Stuart
I call this in /etc/rc.shutdown.local to shut all VMs down gracefully and wait, perhaps a variant would help you. #!/bin/sh INTERVAL=5 /usr/bin/killall -TERM bhyve echo -n "/dev/vmm:" while test -d /dev/vmm ; do echo -n "" $(/bin/ls /dev/vmm | /usr/bin/wc -w) /bin/sleep $INTERVAL done

Re: [vm-bhyve] Windows 2012 and 2016 servers guests would not stop

2019-04-24 Thread Victor Sudakov
Rodney W. Grimes wrote: > > > > > > I've noticed that it takes too long for Windows 2012 and 2016 servers > > > guests to shutdown when I issue "vm stopall," several minutes even. > > > > > > Does vm-bhyve provide a way to power them off ungracefully if they would > > > not stop within a

Re: [vm-bhyve] Windows 2012 and 2016 servers guests would not stop

2019-04-24 Thread Rodney W. Grimes
> Victor Sudakov wrote: > > > > I've noticed that it takes too long for Windows 2012 and 2016 servers > > guests to shutdown when I issue "vm stopall," several minutes even. > > > > Does vm-bhyve provide a way to power them off ungracefully if they would > > not stop within a predefined time? >