cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donal Lafferty <donal.laffe...@citrix.com>
Subject Can Hypervisors have multiple image formats?
Date Wed, 26 Jun 2013 12:43:23 GMT
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;
        }
    }

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message