Hi all,
One of the first things I did after setting up my PVE was creating a basic installation of Ubuntu Server, get it set up with all the basic bits, and then convert it to a template.
I have cloned (full clone) this template a number of times and I did notice that each time I cloned it, the new VM would boot up on the same IP as the previous one I set up. I obviously checked mac addresses and PVE is assigning a new mac address to each clone, so I was a bit confused as my router shouldn't have been assigning an in-use IP to a different client. Most of the servers are still set to DHCP while I am going through setting each one of them up. I tried renewing the DHCP lease from the console but that didn't make a difference. What I had to do, was a
Now, something even weirder has happened. I had to restart my PVE a couple of times today, and when I went to access one of my VMs in a web browser I could not connect. What found was that a whole bunch of my VMs were up on the same IP address. Some even had the conflicted address and then another unique address. It was really weird. I have currently got all the conflicting ones shut down while I investigate what the problem might be. I've probably done something wrong but I'm hoping it's fixable.
What is the current guidance on cloning from a template and networking configuration of the new machine? Is there something I should have done before converting to a template or is there something I need to do now?
Any help and advice would be greatly appreciated.
Thanks,
FS
One of the first things I did after setting up my PVE was creating a basic installation of Ubuntu Server, get it set up with all the basic bits, and then convert it to a template.
I have cloned (full clone) this template a number of times and I did notice that each time I cloned it, the new VM would boot up on the same IP as the previous one I set up. I obviously checked mac addresses and PVE is assigning a new mac address to each clone, so I was a bit confused as my router shouldn't have been assigning an in-use IP to a different client. Most of the servers are still set to DHCP while I am going through setting each one of them up. I tried renewing the DHCP lease from the console but that didn't make a difference. What I had to do, was a
sudo dhclient -r ens18
, and then remove the network interface from the hardware of the VM and then add a new one back. Then it would pick up a new DHCP address. I thought it was a bit weird, and a bit of pain but I went through each VM instance and did this one by one, while at the same time setting a unique hostname.Now, something even weirder has happened. I had to restart my PVE a couple of times today, and when I went to access one of my VMs in a web browser I could not connect. What found was that a whole bunch of my VMs were up on the same IP address. Some even had the conflicted address and then another unique address. It was really weird. I have currently got all the conflicting ones shut down while I investigate what the problem might be. I've probably done something wrong but I'm hoping it's fixable.
What is the current guidance on cloning from a template and networking configuration of the new machine? Is there something I should have done before converting to a template or is there something I need to do now?
Any help and advice would be greatly appreciated.
Thanks,
FS
Last edited: