/** * Adds a disk image (Adds image with active flag according to the value in image, using the first * storage domain in the storage id as entry to the storage domain map) * * @param image DiskImage to add */ public static void addDiskImage(DiskImage image, Guid vmId) { addDiskImage( image, image.getActive(), new ImageStorageDomainMap( image.getImageId(), image.getStorageIds().get(0), image.getQuotaId(), image.getDiskProfileId()), vmId); }