Contents

VZVirtualMachine

An object that manages the overall state and configuration of your VM.

Declaration

class VZVirtualMachine

Mentioned in

Overview

A VZVirtualMachine object emulates a complete hardware machine of the same architecture as the underlying Mac computer. Use the VM to execute a guest operating system and any other apps you install. The VM manages the resources that the guest operating system uses, providing access to some hardware resources while emulating others.

Create and configure a VZVirtualMachineConfiguration object with details about how you want to configure your VM, and use that object to create the VZVirtualMachine object. After creating the VM, call the start(completionHandler:) method (Swift) or the start() method (Objective-C) to start the VM and boot the guest operating system.

Topics

Creating the VM

Responding to a stopped VM

Starting and stopping the VM

Configuring VM attributes at runtime

Getting the state of the VM

Saving and restoring the VM state

See Also

Runtime