Red Hat Training

A Red Hat training course is available for Red Hat Virtualization

A.4. 支持的 VDSM 事件

表 A.1. 支持的 VDSM 事件

Name Description
before_vm_start 在虚拟机启动之前。
after_vm_start 虚拟机启动后。
before_vm_cont 在虚拟机继续之前。
after_vm_cont 虚拟机将继续后。
before_vm_pause 在虚拟机暂停之前。
after_vm_pause 虚拟机暂停后。
before_vm_hibernate 在虚拟机休眠之前。
after_vm_hibernate 虚拟机休眠后。
before_vm_dehibernate 在虚拟机休眠之前。
after_vm_dehibernate 虚拟机休眠后。
before_vm_migrate_source 在虚拟机迁移之前,在进行迁移的源主机上运行。
after_vm_migrate_source 虚拟机迁移后,在进行迁移的源主机上运行。
before_vm_migrate_destination 在虚拟机迁移之前,在进行迁移的目标主机上运行。
after_vm_migrate_destination 虚拟机迁移后,在进行迁移的目标主机上运行。
after_vm_destroy 在虚拟机销毁后。
before_vdsm_start 在主机上启动 VDSM 之前。before_vdsm_start hook 以 root 用户身份执行,不继承 VDSM 进程的环境。
after_vdsm_stop 在主机上停止 VDSM 后。after_vdsm_stop hook 以 root 用户身份执行,不继承 VDSM 进程的环境。
before_nic_hotplug 在 NIC 热插到虚拟机之前。
after_nic_hotplug 在 NIC 热插到虚拟机后。
before_nic_hotunplug 在从虚拟机热插 NIC 前
after_nic_hotunplug 从虚拟机热插 NIC 后。
after_nic_hotplug_fail 热插到虚拟机的 NIC 后会失败。
after_nic_hotunplug_fail 热拔出虚拟机中的 NIC 后。
before_disk_hotplug 在磁盘热插到虚拟机之前。
after_disk_hotplug 磁盘热插拔到虚拟机后。
before_disk_hotunplug 在从虚拟机热插磁盘前
after_disk_hotunplug 在磁盘被热拔后。
after_disk_hotplug_fail 将磁盘热插到虚拟机后会失败。
after_disk_hotunplug_fail 热拔出虚拟机的磁盘失败后。
before_device_create 在创建支持自定义属性的设备之前。
after_device_create 创建支持自定义属性的设备后。
before_update_device 在更新支持自定义属性的设备之前。
after_update_device 在更新支持自定义属性的设备后。
before_device_destroy 在销毁支持自定义属性的设备之前。
after_device_destroy 在销毁支持自定义属性的设备后。
before_device_migrate_destination 在设备迁移之前,在进行迁移的目标主机上运行。
after_device_migrate_destination 在设备迁移后,在进行迁移的目标主机上运行。
before_device_migrate_source 在设备迁移之前,在进行迁移的源主机上运行。
after_device_migrate_source 设备迁移后,在进行迁移的源主机上运行。
after_network_setup在启动主机机器时设置网络后。
before_network_setup在启动主机机器时设置网络前。