Examples of importMachines()


Examples of org.virtualbox_4_0.IAppliance.importMachines()

    IAppliance app = vbox.createAppliance();
    IProgress p = app.read(appliance.getAbsolutePath());
    p.waitForCompletion(-1);
    app.interpret();
    Set<String> oids = this.getMachineIds(vbox);
    p = app.importMachines();
    p.waitForCompletion(-1);
    IMachine machine = null;
    for (IMachine m : vbox.getMachines()) {
      if (!oids.contains(m.getId())) {
        machine = m;
View Full Code Here

Examples of org.virtualbox_4_2.IAppliance.importMachines()

        logWarnings(appliance);

    // keep NAT MAC addresses
    List<ImportOptions> options = new LinkedList<>();
    options.add(ImportOptions.KeepNATMACs);
    IProgress importProgress = appliance.importMachines(options);
    while (!importProgress.getCompleted()) {
      importProgress.waitForCompletion(1000);
    }

        logWarnings(appliance);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.