Logo
Explore Help
Sign In
Cadoles/eole-one-master
21
0
Fork 0
You've already forked eole-one-master
Code Issues Pull Requests Projects Releases Wiki Activity
eole-one-master/posttemplate/10-libvirt-guests

10 lines
166 B
Plaintext
Raw Normal View History

The VMs are not always resumes on reboot The “libvirt-guests” service can conflict with “onevm-all” and we don't need to wait for each VM to boot during start. * posttemplate/10-libvirt-guests: disable the “libvirt-guests” service. * init/onenode.service (ExecStart): use default wait timeout (60s). (TimeoutStartSec): wait for longer than the default timeout. (ExecReload): just try to resume any remaining VMs. (ExecStop): wait longer for VM to suspend. (TimeoutStopSec): wait for longer than the stop timeout. * scripts/onevm-all: schedule actions in parallel and wait globally for their executions. Ref: #22155
2017-12-20 16:32:13 +01:00
#!/bin/sh
echo "Disable and mask libvirt-guests service"
for action in stop disable mask
do
systemctl ${action} libvirt-guests.service 2> /dev/null
done
exit 0
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.3 Page: 70ms Template: 3ms
English
Deutsch English Español Français Latviešu Nederlands Polski Português Русский 日本语 简体中文 繁體中文
Licenses API