A method for live migration of a virtual machine in a multi-root I/O virtualization (MR-IOV) environment, used in a system, wherein the system at least comprises a plurality of computing hosts, an MR-IOV device and a management host including a physical function (PF) and configured to implement a plurality of virtual functions (VF), and each computing host and the management host are communicatively coupled to the MR-IOV device, the method comprising:
- migrating, by a source computing host of the computing hosts, a source virtual machine (VM) in the source computing host to a destination VM in a destination computing host of the computing hosts, wherein the source VM includes a source VF;
- transmitting, by the destination computing host, a request message to a management host;
- and
- reassigning, by the management host, a first VF corresponding to the source VF in the management host to the destination VM according to the request message.