2019年6月3日星期一

kvm host os reboot or shutdown with guest shutdown immediately


when you shutdown or reboot kvm host os ,and you hope guset os shutdown immediately without wait,you can do this:

vi /etc/default/libvirt-guests
vi /etc/default/libvirt-guests
add in final
ON_SHUTDOWN=shutdown
SHUTDOWN_TIMEOUT=1
guest os will be destoryed if that can't shutdown within 1 second.

没有评论:

发表评论

更换阿里云源

CentOS 7: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo wget -O /etc/yum.repos.d/epel.repo http:/...