CIMResourceAllocationSettingDataType hd =
CIMResourceAllocationSettingDataUtils.createResourceAllocationSettingData("Hd", "1",
CIMResourceTypeEnum.Disk_Drive, disk.getHd(), disk.getHdSizeUnit().name());
RASDType rasdCpu = CIMResourceAllocationSettingDataUtils.createRASDTypeFromCIMRASD(cpu);
RASDType rasdRam = CIMResourceAllocationSettingDataUtils.createRASDTypeFromCIMRASD(ram);
RASDType rasdHd = CIMResourceAllocationSettingDataUtils.createRASDTypeFromCIMRASD(hd);
rasdHd.getHostResource().add(CIMTypesUtils.createString("ovf:/disk/ovfdisk"));
OVFVirtualHadwareSectionUtils.addRASD(vhsection, rasdCpu);
OVFVirtualHadwareSectionUtils.addRASD(vhsection, rasdRam);
OVFVirtualHadwareSectionUtils.addRASD(vhsection, rasdHd);