mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-17 11:04:00 +01:00
Switch from VMDK to OVA on vmware image format
This commit is contained in:
parent
5b2740f3f9
commit
d33d1a632d
@ -23,7 +23,7 @@ public class Storage {
|
|||||||
RAW(false, false, false),
|
RAW(false, false, false),
|
||||||
VHD(true, true, true),
|
VHD(true, true, true),
|
||||||
ISO(false, false, false),
|
ISO(false, false, false),
|
||||||
VMDK(true, true, true, "ova");
|
OVA(true, true, true, "ova");
|
||||||
|
|
||||||
private final boolean thinProvisioned;
|
private final boolean thinProvisioned;
|
||||||
private final boolean supportSparse;
|
private final boolean supportSparse;
|
||||||
|
|||||||
@ -26,7 +26,7 @@ public class VmdkProcessor implements Processor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
s_logger.info("Template processing. templatePath: " + templatePath + ", templateName: " + templateName);
|
s_logger.info("Template processing. templatePath: " + templatePath + ", templateName: " + templateName);
|
||||||
String templateFilePath = templatePath + File.separator + templateName + "." + ImageFormat.VMDK.getFileExtension();
|
String templateFilePath = templatePath + File.separator + templateName + "." + ImageFormat.OVA.getFileExtension();
|
||||||
if (!_storage.exists(templateFilePath)) {
|
if (!_storage.exists(templateFilePath)) {
|
||||||
if(s_logger.isInfoEnabled())
|
if(s_logger.isInfoEnabled())
|
||||||
s_logger.info("Unable to find the vmware template file: " + templateFilePath);
|
s_logger.info("Unable to find the vmware template file: " + templateFilePath);
|
||||||
@ -34,8 +34,8 @@ public class VmdkProcessor implements Processor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
FormatInfo info = new FormatInfo();
|
FormatInfo info = new FormatInfo();
|
||||||
info.format = ImageFormat.VMDK;
|
info.format = ImageFormat.OVA;
|
||||||
info.filename = templateName + "." + ImageFormat.VMDK.getFileExtension();
|
info.filename = templateName + "." + ImageFormat.OVA.getFileExtension();
|
||||||
info.size = _storage.getSize(templateFilePath);
|
info.size = _storage.getSize(templateFilePath);
|
||||||
info.virtualSize = info.size;
|
info.virtualSize = info.size;
|
||||||
return info;
|
return info;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user