'Indicates what type of image this is.
direct     = something like "memdisk", physical only
iso        = a bootable ISO that pxe\'s or can be used for virt installs, virtual only
virt-clone = a cloned virtual disk (FIXME: not yet supported), virtual only
memdisk    = hdd image (physical only)'

def set_image_type(self, image_type):

    if (image_type not in self.get_valid_image_types()):
        raise CX((_('image    type    must    be    on    of    the    following:    %s') % string.join(self.get_valid_image_types(), ',    ')))
    self.image_type = image_type
