[PR #149] [MERGED] qemu: option for deterministic MAC addresses #268

Closed
opened 2026-02-28 00:41:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Telmate/proxmox-api-go/pull/149
Author: @mizhka
Created: 12/11/2021
Status: Merged
Merged: 12/15/2021
Merged by: @ggongaware

Base: masterHead: user/mizhka/repeatable-mac


📝 Commits (1)

  • a54e275 qemu: option for deterministic MAC addresses

📊 Changes

1 file changed (+28 additions, -11 deletions)

View changed files

📝 proxmox/config_qemu.go (+28 -11)

📄 Description

This commit adds ability to generate deterministic MAC address based on VM ID
and NIC ID. In case of frequent VM recreations via terraform or packer,
it reduces allocation of IP address from DHCP servers.

To use it, specify MAC address as "repeatable".

Tested via Terraform plugin. Assume that it works with Packer as well.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Telmate/proxmox-api-go/pull/149 **Author:** [@mizhka](https://github.com/mizhka) **Created:** 12/11/2021 **Status:** ✅ Merged **Merged:** 12/15/2021 **Merged by:** [@ggongaware](https://github.com/ggongaware) **Base:** `master` ← **Head:** `user/mizhka/repeatable-mac` --- ### 📝 Commits (1) - [`a54e275`](https://github.com/Telmate/proxmox-api-go/commit/a54e275f0db841ba629514103d0ac16e62e4f015) qemu: option for deterministic MAC addresses ### 📊 Changes **1 file changed** (+28 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `proxmox/config_qemu.go` (+28 -11) </details> ### 📄 Description This commit adds ability to generate deterministic MAC address based on VM ID and NIC ID. In case of frequent VM recreations via terraform or packer, it reduces allocation of IP address from DHCP servers. To use it, specify MAC address as "repeatable". Tested via Terraform plugin. Assume that it works with Packer as well. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-28 00:41:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmox-api-go#268
No description provided.