Proxmox and cloning a VM

I’m doing a bunch of database work with Cassandra (and soon Kafka). Because of that I want to be able to duplicate a bunch of base linux VM’s pretty fast.

I’ve started out installing from a 2gb Ubuntu image. The only changes I’ve made is to update apt and install the Qemu Guest Agent.

When cloning from this new template, I spotted the IP address assigned is the same as the original VM, in fact the cloned VM’s will all share the same IP.

A bit of googling later, the fix for me was:

I had to change user to the root to be able to change the machine-id file.

From some research, depending on the DHCP service you run, it can use a machine id (and?)/OR the MAC address when assigning a new IP. In my case with Ubiquite hardware, it seemed to take the machine ID in to account as Proxmox already assigned a new random MAC for these VM’s

Leave a Reply

Your email address will not be published. Required fields are marked *