code: def is_in_virtualbox():
    
    if not isfile(__VIRT_WHAT) or not access(__VIRT_WHAT, X_OK):
      raise IOError("virt-what not available")
    try:
      return subprocess.check_output(["sudo", "-n", __VIRT_WHAT]).split('\n')[0:2] == __VIRT_WHAT_VIRTUALBOX_WITH_KVM
    except subprocess.CalledProcessError as e:
      raise IOError("virt-what failed execution with {}".format(e))
docs: Is the current environment a virtualbox instance?
    Returns a boolean
    Raises IOError if the necessary tooling isn't available