'Get the vm mode for an instance
:param instance: instance object to query
:returns: canonicalized vm mode for the instance'

@classmethod
def get_from_instance(cls, instance):

    mode = instance.vm_mode
    return cls.canonicalize(mode)
