A computer-implemented method of migrating a source virtual machine, VM-S, that is executing an application that accesses a virtual function, the virtual function mapping resources of an artificial intelligence, AI, accelerator (105, 106, 107, 410, 460) to the VM-S, the method comprising: in response to receiving a command to migrate the VM-S and the virtual function, and receiving a selection of a checkpoint of the VM-S to use in performing the migration: recording, then stopping (802, 804), one or more executing AI tasks of the application, generating, or selecting, a status of the AI accelerator associated with the virtual function, and transmitting the checkpoint and the status of the AI accelerator to a hypervisor of a target host to generate the migrated target virtual machine, VM-T,; and characterized in that in response to receiving a notification that the target host validated the checkpoint and the status of the AI accelerator (105, 106, 107, 410, 460), and has generated and configured resources for generating VM-T, and has loaded the AI accelerator at the target host with data from the AI accelerator status: migrating the VM-S and virtual function to the VM-T; wherein validating a signature and freshness of the status of the AI accelerator comprises: decrypting the signature of the status of the AI accelerator using a public key of the VM-S; determining that a date and time stamp of the status of the AI accelerator is within a threshold date and time range; and validating a hash of the status of the AI accelerator. in response to receiving a command to migrate the VM-S and the virtual function, and receiving a selection of a checkpoint of the VM-S to use in performing the migration: recording, then stopping (802, 804), one or more executing AI tasks of the application, generating, or selecting, a status of the AI accelerator associated with the virtual function, and transmitting the checkpoint and the status of the AI accelerator to a hypervisor of a target host to generate the migrated target virtual machine, VM-T,; and recording, then stopping (802, 804), one or more executing AI tasks of the application, generating, or selecting, a status of the AI accelerator associated with the virtual function, and transmitting the checkpoint and the status of the AI accelerator to a hypervisor of a target host to generate the migrated target virtual machine, VM-T,; and characterized in that in response to receiving a notification that the target host validated the checkpoint and the status of the AI accelerator (105, 106, 107, 410, 460), and has generated and configured resources for generating VM-T, and has loaded the AI accelerator at the target host with data from the AI accelerator status: migrating the VM-S and virtual function to the VM-T; wherein validating a signature and freshness of the status of the AI accelerator comprises: decrypting the signature of the status of the AI accelerator using a public key of the VM-S; determining that a date and time stamp of the status of the AI accelerator is within a threshold date and time range; and validating a hash of the status of the AI accelerator. migrating the VM-S and virtual function to the VM-T; wherein validating a signature and freshness of the status of the AI accelerator comprises: decrypting the signature of the status of the AI accelerator using a public key of the VM-S; determining that a date and time stamp of the status of the AI accelerator is within a threshold date and time range; and validating a hash of the status of the AI accelerator. decrypting the signature of the status of the AI accelerator using a public key of the VM-S; determining that a date and time stamp of the status of the AI accelerator is within a threshold date and time range; and validating a hash of the status of the AI accelerator.