acpid 介绍(以下内容来自百度百科): ACPId服务是AdvancedConfigurationandPowerInterface缩写,acpid中的d则代表daemon。 ACPId服务与内核的通信方式:acpid用poll函数挂在/proc/acpi/event文件上。 ,acpid再从/proc/acpi/event中读取相应的事件。 acpid与应用程序的通信方式有两种, 其一是通过本地socket,其文件名为/var/run/acpid.socket,应用程序只要连接到这个socket上,不用发送任何命令就可以接收到acpid转发的电源管理事件 在acpid收到来自内核的电源管理事件时,根据配置文件中的规则执行指定的命令。
安装 acpid 服务 centos 系统 yum install acpid ubuntu 系统 apt-get install acpid 开机自动启动 chkconfig acpid on 启动服务 /etc/init.d/acpid start 如果启动acpid服务报错,那么需要重启guest 系统。 3.2 虚拟机内部需要有acpi服务并运行 Windowns的虚拟机一般情况是默认已安装且运行的 linux虚拟机例如Ubuntu虚拟机如果没有安装acpi服务, 先执行apt-get install acpid
1 [root@kvm-host ~]# virsh shutdown vm01-centos6.8 注意:默认状态下virsh工具不能对linux虚拟机进行关机操作,linux操作系统需要开启acpid 1 yum -y install acpid 2 chkconfig acpid on 3 /etc/init.d/acpid start 1.5 重启虚拟机 1 [root@kvm-host
服务名称 功能 acpid 电源管理 autofs 自动安装服务 bluetooth 蓝牙技术核心 cups 公共打印服务 gpm 鼠标 hidd 蓝牙H.I.D.服务器 hplip 惠普Linux打印与成像 SMARTDiskMonitoring服务用于监测并预测磁盘失败或磁盘问题 yum-updatesd 在线自动升级 关闭自启动服务的命令如下: [root@node1]# chkconfig acpid
grub2-mkconfig -o /boot/efi/EFI/openEuler/grub.cfg 重启系统生效 console控制台登录虚拟机 virsh console uosv20-1060a acpid 部署 acpid是一个用户空间的服务进程, 用来处理电源相关事件,比如将kernel中的电源事件转发给应用程序,告诉应用程序安全的退出,防止应用程序异常退出导致数据损坏。 安装acpid软件包,并设置开机启动服务 dnf install -y acpid systemctl start acpid && systemctl enable acpid 虚拟机克隆 虚拟机克隆是在
K85mdmonitor K87alsasound K89netplugd K98qemu K15gpm K30sendmail K50netconsole K74acpid K85messagebus K87rpcbind K89rdisc S02lvm2-monitor K15gpm K30sendmail K50netconsole K74acpid S08ip6tables S22messagebus S26udev-post S99alsasound 这个级别启动的服务多了,NetworkManager/iptables/acpid K10xfs K50netconsole K84wpa_supplicant K99lvm2-monitor S13iscsi S22messagebus S26acpid S91smb K20nfs K60crond K83portreserve K86nfslock K89rdisc S12rsyslog S26acpid
降级软件包 downgrade选项会将指定的包(例如 acpid)降级到较低版本。 # dnf downgrade acpid 样本输出 Using metadata from Wed May 20 12:44:59 2015 No match for available package : acpid-2.0.19-5.el7.x86_64 Error: Nothing to do.
virsh list --all 虚拟机开机 virsh start kylin001 虚拟机关机或断电 默认情况下virsh工具不能对linux虚拟机进行关机操作,linux操作系统需要开启与启动acpid yum install acpid systemctl enable acpid && systemctl restart acpid 虚拟机关机 virsh shutdown kylin001 强制关闭电源
mkconfig -o /boot/efi/EFI/openEuler/grub.cfg 重启系统生效 console控制台登录虚拟机 virsh console zabbix-openeuler acpid 部署 acpid是一个用户空间的服务进程, 用来处理电源相关事件,比如将kernel中的电源事件转发给应用程序,告诉应用程序安全的退出,防止应用程序异常退出导致数据损坏。 安装acpid软件包,并设置开机启动服务 dnf install -y acpid systemctl start acpid && systemctl enable acpid qemu-guest-agent
-6-8.noarch.rpm yum -y distro-sync yum -y install git (6)安装ACPI服务,能让宿主机对虚拟机进行开关机等电源管理操作 yum install acpid chkconfig acpid on (7)安装linux rootfs resize,使得实例启动时可以自动扩展根分区 cd /tmp git clone https://github.com/flegmatik
:x:4:root,adm,daemon #lp:x:7:daemon,lp #uucp:x:14:uucp #games:x:20: #dip:x:40: 二、关闭系统不需要的服务 service acpid stop chkconfig acpid off #停止服务,取消开机启动 #电源进阶设定,常用在 Laptop 上 service autofs stop chkconfig autofs off ####################################################################### 如果要恢复某一个服务,可以执行下面操作 service acpid start chkconfig acpid on 三、禁止非root用户执行/etc/rc.d/init.d/下的系统命令 chmod -R 700 /etc/rc.d/init.d/* chmod
降级一个软件包 选项'downgrade'将会使一个软件包(例如,acpid)回退到低版本。 # dnf downgrade acpid 示例输出 Using metadata from Wed May 20 12:44:59 2015 No match for available package : acpid-2.0.19-5.el7.x86_64 Error: Nothing to do.
thinkpad-cmos OK /etc/acpi/undock.sh OK /etc/acpi/events/powerbtn OK /etc/acpi/powerbtn.sh OK /etc/init.d/acpid OK /etc/init/acpid.conf OK /etc/default/acpid OK … 下一步,如果想在debsums的输出中只显示变化的文件,请使用-c或–changed选项。 account-plugin-facebook.md5sums account-plugin-flickr.md5sums account-plugin-google.md5sums accountsservice.md5sums acl.md5sums acpid.md5sums
在介绍virsh命令的时候,有介绍到使用shutdown在主机上关闭虚拟机,但是并不能直接使用,还需要在虚拟机中安装acpid,并启动acpid,同时还添加到开机服务中。 命令如下: yum install acpid service acpid start chkconfig acpid on 这样就可以在主机上使用shutdown关闭虚拟机了。
└─22*[{YDService}] │ └─9*[{YDLive}] ├─abrt-dbus───3*[{abrt-dbus}] ├─acpid ├─sh -c sleep 100 │ │ │ └─8*[{sh}] │ │ └─22*[{YDService}] │ └─9*[{YDLive}] ├─acpid
tty5 等待用户从tty5登录 /sbin/getty -8 38400 tty2 等待用户从tty2登录 /sbin/getty -8 38400 tty3 等待用户从tty3登录 acpid -c /etc/acpi/events -s /var/run/acpid.socket 一个用户空间的服务进程,它充当Linux内核与应用程序之间通信的接口 cron 守护进程,周期地运行用户调度的任务
:x:4:root,adm,daemon #lp:x:7:daemon,lp #uucp:x:14:uucp #games:x:20: #dip:x:40: 二、关闭系统不需要的服务 service acpid stop chkconfig acpid off #停止服务,取消开机启动 #电源进阶设定,常用在 Laptop 上 service autofs stop chkconfig autofs System 使系统支援印表机 service ip6tables stop chkconfig ip6tables off #禁止IPv6 如果要恢复某一个服务,可以执行下面操作 service acpid start chkconfig acpid on 三、禁止非root用户执行/etc/rc.d/init.d/下的系统命令 chmod -R 700 /etc/rc.d/init.d/* chmod
/var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 11944 462/acpid /var/run/acpid.socket unix 2 [ ACC ] STREAM LISTENING 9448 1/systemd
通信成功 第七部分 其它命令 ------以下是命令字符界面操作命令,一般情况下直接图形界面操作,用不着------ 首先安装管理工具 [root@kvm02 ~]# yum install acpid –y [root@kvm02 ~]# yum install acpid [root@kvm02 ~]# virsh list –all ?
2)KVM虚拟机开机 # virsh start oeltest01 3)KVM虚拟机关机或断电 关机 默认情况下virsh工具不能对linux虚拟机进行关机操作,linux操作系统需要开启与启动acpid # chkconfig acpid on # service acpid restart virsh关机 # virsh shutdown oeltest01 强制关闭电源 # virsh destroy