[SOLVED] Hook scripts on restore

bbgeek17

Distinguished Member
Nov 20, 2020
4,631
1,350
198
Blockbridge
www.blockbridge.com
Before opening an FR, I wanted to check here to see if I may have missed something:

While integrating our CI I noticed that on restore of a VM to a new VM ID the MAC and SMBIOS stay the same (arguably as expected). However, unlike vzdump, qmrestore does not appear to have a "--script" option with defined phases where VM could be made unique.
This presents a usability issue, as duplicate MACs can cause a production outage. Of course, this won't be the case with in-place restore but good administrative practices would be to restore to a new location, if possible.

At the very least I recommend documenting this behavior. If I missed something do let me know.

Thanks!


Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Hi,
there is a --unique option for qmrestore that generates new MAC addresses and uuid for SMBIOS.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!