Judging by StorageManagerImpl.getHypervisorTypeFromFormat, each format can only
be used by one Hypervisor type.
The reason I ask, is that Hyper-V 2012 supports a legacy disk image type called
'VHD' in addition to 'VHDX'. It's straightforward to add VHDX to the
ImageFormat enum, but less straightforward when it comes to adding a VHD image
type.
Any guidance would be most welcome.
E.g. from StorageManagerImpl.java
@Override
public HypervisorType getHypervisorTypeFromFormat(ImageFormat format) {
if (format == null) {
return HypervisorType.None;
}
if (format == ImageFormat.VHD) {
return HypervisorType.XenServer;
} else if (format == ImageFormat.OVA) {
return HypervisorType.VMware;
} else if (format == ImageFormat.QCOW2) {
return HypervisorType.KVM;
} else if (format == ImageFormat.RAW) {
return HypervisorType.Ovm;
} else {
return HypervisorType.None;
}
}