Added getHardware method to the VirtualMachine extension which returns config->hardware.