Hello Nir,
Thanks for your response and your time.

I tried put the initial_size when I create the snapshot, but it hasn't worked.

I sent an email to [email protected] with 3 files attached.

My code.java:
List<Snapshot> snapshots = new ArrayList<Snapshot>();
    // Se inicia en 1 porque el índice 0 está ActiveVM
    for (int i = 1; i < snapsFromBackup.size(); ++i) {
      Snapshot s = snapsFromBackup.get(i);
      List<DiskAttachment> disksAtt = new ArrayList<DiskAttachment>();
      for (DiskConfig cd : configBackup.getDisks(s)) {
        DiskAttachment dAt = new DiskAttachmentBuilder()
            .disk(new DiskBuilder()
                .id(disksRestored.get(cd.getId()).id())
                .initialSize(new BigInteger("2147483648"))
                .build())
            
            // .imageId(newImageId) No le ponemos imageId para que no entre en 
conflicto con una vm antigua
            .build();
        disksAtt.add(dAt);
      }
      // Creamos el snapshot con la misma descripción que tenía.
      SnapshotBuilder snapB = new SnapshotBuilder()
          .description(s.description()).diskAttachments(disksAtt).vm(vmRestore);
      Snapshot newSnap = SnapshotWBS.create(snapB.build());
      logger.debug("Snapshot created: { id:" + newSnap.id() + ", description: " 
+ newSnap.description() + "}");
}

I'm trying in RHVM 4.2 version.


Regards,

Fran 
_______________________________________________
Devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/YKELV73OEDZVEDG75UHIBALBKAJFNNMQ/

Reply via email to