version = platform.getVersion();
profile = platform.getProfile();
type = "custom"; // TODO //$NON-NLS-1$
- cpu = findCpuTypeFromPath(); //$NON-NLS-1$
+ cpu = findCpuTypeFromPath();
skinShape = SKIN_SHAPE.NONE; // TODO
- binaryVersion = ""; //$NON-NLS-1$
+ binaryVersion = "Custom"; //$NON-NLS-1$
extension = platform.isChildPlatform()
? platform.getPlugin().getAttribute(PluginStringResources.Extension)
: "";
ec.getBaseInformation().getDiskImage().getBaseDiskImage().setFormat("qcow2"); //$NON-NLS-1$
ec.getBaseInformation().getDiskImage().getBaseDiskImage().setValue(newVM.baseImagePath);
- if (!newVM.baseImage.getBinaryVersion().isEmpty()) {
+ if (newVM.baseImage.isStandard() && !newVM.baseImage.getBinaryVersion().isEmpty()) {
ec.getBaseInformation().getDiskImage().getBaseDiskImage().setVersion(newVM.baseImage.getBinaryVersion());
}
ec.getBaseInformation().getDiskImage().getCurrentDiskImage().setFormat("qcow2"); //$NON-NLS-1$
@Override
public void getLaunchArgument(LaunchConfig config, VMProperty property) {
-
+ if (property.getPropertyValue().baseImage != null) {
+ config.addVariable(OPTION_KEY.VAR_IMAGE_VER, property.getPropertyValue().baseImage.getBinaryVersion());
+ }
config.addVariableWithSpace(OPTION_KEY.VAR_DRIVE, "file=${vms_path}" + File.separator + "${vm_name}" //$NON-NLS-1$ //$NON-NLS-2$
+ File.separator + "emulimg-${vm_name}." + varForm(OPTION_KEY.VAR_IMAGE_ARCH) //$NON-NLS-1$
+ ",if=none,index=1,cache.no-flush=on"); //$NON-NLS-1$
VAR_STILL_IMAGE_PATH("still_image_path"), //$NON-NLS-1$
VAR_PROFILE("profile"),
VAR_WSI("wsi"),
- VAR_SHARING_PATH("sharing_path");
+ VAR_SHARING_PATH("sharing_path"),
+ VAR_IMAGE_VER("image_ver");
String variable;
OPTION_KEY(String var) {