A.4. 支持的 VDSM 事件

表 A.1. 支持的 VDSM 事件

名称描述
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_startVDSM 在主机上运行前。before_vdsm_start hook 以 root 用户执行,它不会继承 VDSM 进程的环境参数。
after_vdsm_stopVDSM 在主机上运行后。after_vdsm_stop hook 以 root 用户执行,它不会继承 VDSM 进程的环境参数。
before_nic_hotplug在网卡被熱插到虚拟机上以前。
after_nic_hotplug在网卡被熱插到虚拟机上以后。
before_nic_hotunplug在网卡被从虚拟机上热拔以前。
after_nic_hotunplug在网卡被从虚拟机上热拔以后。
after_nic_hotplug_fail在网卡被热插到虚拟机失败以后。
after_nic_hotunplug_fail在网卡被从虚拟机上热拔失败以后。
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在设备迁移发生后,在迁移的原始主机上运行。