Skip to content

Commit

Permalink
update multiple interfaces docs
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankT1983 committed Jun 26, 2023
1 parent 13533c3 commit a80f724
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion examples/vmware/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ resource "vsphere_virtual_machine" "terraformVM" {
memory = 2048
wait_for_guest_net_timeout = 0
guest_id = "debian10_64Guest"
nested_hv_enabled =true
nested_hv_enabled = true
network_interface {
network_id = "${data.vsphere_network.mgmt_lan.id}"
adapter_type = "vmxnet3"
Expand All @@ -91,4 +92,17 @@ resource "vsphere_virtual_machine" "terraformVM" {
path = "${resource.vsphere_file.install_iso.destination_file}"
}
}
```

## VMs with multiple network adapters
To use multiple network adapters, follow
[the official documentation](https://registry.terraform.io/providers/hashicorp/vsphere/1.17.0/docs/resources/virtual_machine)
and add the `use_static_mac` and `mac_address` properties to the individual network interfaces.

```terraform
network_interface {
network_id = "${data.vsphere_network.mgmt_lan.id}"
use_static_mac = true
mac_address = "CA-8C-65-0D-E7-58"
}
```

0 comments on commit a80f724

Please sign in to comment.