Package org.virtualbox_4_0

Examples of org.virtualbox_4_0.IAppliance


   * @param importFile
   *            file of the appliance to import
   * @return imported {@link IAppliance}
   */
  public IAppliance importAppliance(final Path importFile) {
    IAppliance appliance = vBox.createAppliance();

    IProgress readProgress = appliance.read(importFile.toAbsolutePath().toString());
    while (!readProgress.getCompleted()) {
      readProgress.waitForCompletion(1000);
    }

    appliance.interpret();

        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

Related Classes of org.virtualbox_4_0.IAppliance

Copyright © 2018 www.massapicom. 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.