<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "vmnet",
  "identifier" : "/documentation/vmnet/vmnet_network_create(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "vmnet"
    ],
    "preciseIdentifier" : "c:@F@vmnet_network_create"
  },
  "title" : "vmnet_network_create(_:_:)"
}
-->

# vmnet_network_create(_:_:)

Creates a vmnet network based on the provided configuration.

```
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

Vmnet network handle on success, otherwise `NULL`.

## 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`](/documentation/vmnet/vmnet_network_ref). Use <doc://com.apple.documentation/documentation/CoreFoundation/CFRelease> to release the network object.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)