csmart / ansible-role-virt-infra

Define and manage guests and networks on a KVM host with Ansible
GNU General Public License v3.0
68 stars 48 forks source link

add support for custom VM MAC addresses #8

Closed csmart closed 4 years ago

csmart commented 4 years ago

It may be useful to specify a MAC address for VMs so that they are always the same when recreated. For example, when they are used for external DHCP leases on a bridged network, or for PXE boot, etc.

This adds a new "mac" YAML option for VM network interfaces and works with every network type, e.g.:

test-0: virt_infra_networks: