def OSFromDisk(name, base_dir=None):
  name_only = objects.OS.GetName(name)
  status, payload = _TryOSFromDisk(name_only, base_dir)

  if not status:
    _Fail(payload)

  return payload
Create an OS instance from disk.
dataset/ETHPy150Open ganeti/ganeti/lib/backend.py/OSFromDisk