---
title: hv_vm_config_create()
framework: hypervisor
role: symbol
role_heading: Function
path: hypervisor/hv_vm_config_create()
---

# hv_vm_config_create()

Creates a virtual machine configuration object.

## Declaration

```swift
func hv_vm_config_create() -> hv_vm_config_t
```

## Return Value

Return Value A new virtual-machine configuration object. Release this object with os_release when no longer used.

## See Also

### Virtual machine management

- [hv_vm_create(_:)](hypervisor/hv_vm_create(_:).md)
- [hv_vm_destroy()](hypervisor/hv_vm_destroy().md)
- [OS_hv_vm_config](hypervisor/os_hv_vm_config.md)
- [hv_vm_config_t](hypervisor/hv_vm_config_t.md)
