From 30d55cf0c45977b3be3d52c703f9a475e5a748b7 Mon Sep 17 00:00:00 2001 From: Devdeep Singh Date: Thu, 26 Dec 2013 19:11:11 +0530 Subject: [PATCH] CLOUDSTACK-5456: Download root volume when vm is in stopped state fails on hyper-v. Made changes to make sure the volume entry is created in the db with the right image format. --- .../cloudstack/engine/orchestration/VolumeOrchestrator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java b/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java index 60e5818fb73..e7126a244f1 100644 --- a/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java +++ b/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java @@ -628,6 +628,8 @@ public class VolumeOrchestrator extends ManagerBase implements VolumeOrchestrati return ImageFormat.OVA; } else if (hyperType == HypervisorType.Ovm) { return ImageFormat.RAW; + } else if (hyperType == HypervisorType.Hyperv) { + return ImageFormat.VHD; } else { return null; }