'Returns the guest OS type based on virt type.'

def _get_guest_os_type(self, virt_type):

    if (virt_type == 'lxc'):
        ret = fields.VMMode.EXE
    elif (virt_type == 'uml'):
        ret = fields.VMMode.UML
    elif (virt_type == 'xen'):
        ret = fields.VMMode.XEN
    else:
        ret = fields.VMMode.HVM
    return ret
