mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +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),
|
||||
VHD(true, true, true),
|
||||
ISO(false, false, false),
|
||||
VMDK(true, true, true, "ova");
|
||||
OVA(true, true, true, "ova");
|
||||
|
||||
private final boolean thinProvisioned;
|
||||
private final boolean supportSparse;
|
||||
|
||||
@ -26,7 +26,7 @@ public class VmdkProcessor implements Processor {
|
||||
}
|
||||
|
||||
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(s_logger.isInfoEnabled())
|
||||
s_logger.info("Unable to find the vmware template file: " + templateFilePath);
|
||||
@ -34,8 +34,8 @@ public class VmdkProcessor implements Processor {
|
||||
}
|
||||
|
||||
FormatInfo info = new FormatInfo();
|
||||
info.format = ImageFormat.VMDK;
|
||||
info.filename = templateName + "." + ImageFormat.VMDK.getFileExtension();
|
||||
info.format = ImageFormat.OVA;
|
||||
info.filename = templateName + "." + ImageFormat.OVA.getFileExtension();
|
||||
info.size = _storage.getSize(templateFilePath);
|
||||
info.virtualSize = info.size;
|
||||
return info;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user