The invention discloses a method and a device for configuring virtual resources. The method for configuring virtual resources comprises: a virtual network function manager VNFM reading resource configuration information of a virtual machine VM with a virtual network function VNF in a description file; when a first VNF in a primary state is deployed, the VNFM sending a virtual resource request to a virtual infrastructure manager VIM according to a first resource reservation proportion indicated by the resource configuration information, and according to resources distributed by VIM responding to the virtual resource request, establishing a VM of the first VNF; when a second VNF in a standby state is deployed, the VNFM sending a virtual resource request to the VIM according to a second resource reservation proportion indicated by the resource configuration information, and according to resources distributed by VIM responding to the virtual resource request, establishing the VM of the second VNF. Using the method can rapidly take over business when the main VNF has faults, and can reduce actual resources occupied by the standby VNF, so as to reduce resource demand of disaster tolerance DC.