A virtual machine resource allocation method, comprising: acquiring a resource allocation parameter of a virtual machine, wherein the resource allocation parameter comprises a scheduling parameter, and the scheduling parameter is used to indicate that at least two of a physical processor resource, a physical memory, and a physical input/output, IO, device that are to be allocated to the virtual machine are located on a same processor node; wherein a processor node is a system that includes a physical CPU, and a physical memory and a physical IO device that are directly connected to a pin of the physical CPU; and allocating a physical resource to the virtual machine according to the resource allocation parameter; wherein the scheduling parameter comprises at least either of a scheduling memory parameter and a scheduling IO device parameter, wherein the scheduling memory parameter is used to indicate that the physical processor resource allocated to the virtual machine and the physical memory allocated to the virtual machine are both located on the same processor node, and the scheduling IO device parameter is used to indicate that the physical processor resource allocated to the virtual machine and the physical IO device allocated to the virtual machine are both located on the same processor node; wherein the resource allocation parameter further comprises a satisfaction degree parameter, and the satisfaction degree parameter is used to instruct to allocate the physical resource to the virtual machine according to all or some of parameters in the scheduling parameter, wherein if the satisfaction degree parameter instructs to allocate the physical resource according to all of the parameters in the scheduling parameter, when the scheduling parameter comprises both the scheduling memory parameter and the scheduling IO device parameter, the physical processor resource, the physical memory, and the physical IO device that are allocated to the virtual machine are all located on the same processor node; and if the satisfaction degree parameter instructs to allocate the physical resource according to some of the parameters in the scheduling parameter, two of the physical processor resource, the physical memory, and the physical IO device that are allocated to the virtual machine are located on the same processor node. acquiring a resource allocation parameter of a virtual machine, wherein the resource allocation parameter comprises a scheduling parameter, and the scheduling parameter is used to indicate that at least two of a physical processor resource, a physical memory, and a physical input/output, IO, device that are to be allocated to the virtual machine are located on a same processor node; wherein a processor node is a system that includes a physical CPU, and a physical memory and a physical IO device that are directly connected to a pin of the physical CPU; and allocating a physical resource to the virtual machine according to the resource allocation parameter; wherein the scheduling parameter comprises at least either of a scheduling memory parameter and a scheduling IO device parameter, wherein the scheduling memory parameter is used to indicate that the physical processor resource allocated to the virtual machine and the physical memory allocated to the virtual machine are both located on the same processor node, and the scheduling IO device parameter is used to indicate that the physical processor resource allocated to the virtual machine and the physical IO device allocated to the virtual machine are both located on the same processor node; wherein the resource allocation parameter further comprises a satisfaction degree parameter, and the satisfaction degree parameter is used to instruct to allocate the physical resource to the virtual machine according to all or some of parameters in the scheduling parameter, wherein if the satisfaction degree parameter instructs to allocate the physical resource according to all of the parameters in the scheduling parameter, when the scheduling parameter comprises both the scheduling memory parameter and the scheduling IO device parameter, the physical processor resource, the physical memory, and the physical IO device that are allocated to the virtual machine are all located on the same processor node; and if the satisfaction degree parameter instructs to allocate the physical resource according to some of the parameters in the scheduling parameter, two of the physical processor resource, the physical memory, and the physical IO device that are allocated to the virtual machine are located on the same processor node.