---
title: "image(from:)"
framework: virtualization
role: symbol
role_heading: Type Method
path: "virtualization/vzmacosrestoreimage/image(from:)"
---

# image(from:)

Load a restore image from a file on the local file system.

## Declaration

```swift
class func image(from fileURL: URL) async throws -> VZMacOSRestoreImage
```

## Parameters

- `fileURL`: A file URL that indicates the macOS restore image to load.

## Discussion

Discussion VZMacOSRestoreImage can load macOS installation media from a local file. If the fileURL parameter doesn’t refer to a local file, the system raises an exception.

## See Also

### Controlling the Restoration Process

- [fetchLatestSupported(completionHandler:)](virtualization/vzmacosrestoreimage/fetchlatestsupported(completionhandler:).md)
- [load(from:completionHandler:)](virtualization/vzmacosrestoreimage/load(from:completionhandler:).md)
- [latestSupported](virtualization/vzmacosrestoreimage/latestsupported.md)
