From 7e54ca883124c7d3a2af1a4f74b5002e4789aa9e 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 c8b475ced67..7a5dbf6b195 100644 --- a/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java +++ b/engine/orchestration/src/org/apache/cloudstack/engine/orchestration/VolumeOrchestrator.java @@ -696,6 +696,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; }