virsh console和shutdown的两个补充

来源:互联网 发布:mac os x 10.7 编辑:程序博客网 时间:2024/04/29 05:41

运维不在了,自己去看了下几个kvm机器。

发现要么是console进入不了,要么就是shutdown失败,只是destroy的。基本来说是两个问题,cents 6.5之上的os,如6.6或7.0. 运行如下即可console

update-kernel增加参数 console=ttyS0

grubby --update-kernel=ALL--args="console=ttyS0"  确实解决无法virsh console centos7.2的问题/也解决centos 6.6的问题


rpm -q centos-release
centos-release-6-6.el6.centos.12.2.x86_64
[root@localhost  ]# grubby --update-kernel=ALL --args="console=ttyS0"


至于shutdown,一般就是电源管理模块,如果安装后不是默认启动,就把执行文件放到etc/init.d目录
[root@localhost  ]# yum install acpid



0 0
原创粉丝点击