Examples of mountMedium()


Examples of org.virtualbox_4_0.IMachine.mountMedium()

    IMachine mm = s.getMachine();
    mm.setName("iosgi-" + Long.toHexString(System.currentTimeMillis()));
    mm.getNetworkAdapter(0L).setMACAddress(getRandomMACAddress());
    IMedium medium = vbox.openMedium(image.getAbsolutePath(),
        DeviceType.DVD, AccessMode.ReadOnly);
    mm.mountMedium("IDE-Controller", 1, 0, medium, true);
    mm.saveSettings();
    s.unlockMachine();
    return machine;
  }
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.