1. A method for creating a virtual resource package, the method comprising: capturing, by one or more processors, metadata related to at least one machine, wherein said at least one machine includes at least one of a physical machine and a virtual machine; generating, by one or more processors, a constraint definition describing a configuration constraint of the at least one machine based on the captured metadata; and packaging, by one or more processors, a disk image file of the at least one machine, the captured metadata and the generated constraint definition to generate the virtual resource package.