---
title: "vmnet_network_create(_:_:)"
framework: vmnet
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.0+, macOS 26.0+]
path: "vmnet/vmnet_network_create(_:_:)"
---

# vmnet_network_create(_:_:)

Creates a vmnet network based on the provided configuration.

## Declaration

```swift
func vmnet_network_create(_ configuration: vmnet_network_configuration_ref, _ status: UnsafeMutablePointer<vmnet_return_t>?) -> vmnet_network_ref?
```

## Parameters

- `configuration`: The vmnet network configuration.

## Return Value

Return Value Vmnet network handle on success, otherwise NULL.

## Discussion

Discussion This API attempts to reserve the configuration such that subsequent interface start calls is guaranteed to not fail due to resource contention. The lifetime of such reservation is the same as that of vmnet_network_ref. Use CFRelease to release the network object.

## See Also

### Creating a network configuration

- [vmnet_network_configuration_create(_:_:)](vmnet/vmnet_network_configuration_create(_:_:).md)
- [vmnet_network_create_with_serialization(_:_:)](vmnet/vmnet_network_create_with_serialization(_:_:).md)
- [vmnet_network_copy_serialization(_:_:)](vmnet/vmnet_network_copy_serialization(_:_:).md)
