Changes after cloning a Proxmox VM
for the tilexx-API server machines, these are the changes that need to happen:
- Network adapter
- Computer unique name
- Guest agent
Changing the network adapter is first since we need to get access to the system. If the cloned system presents a different network adapter from the original, then the adapter name will be different.
ip link show will display the adapters detected by the system. Find the adapter name and use it to change the adapter that the system is using for it’s ethernet config.
Change the adapter name in
/etc/netplan/00-installer-config.yaml to match.
After that restart the network with
sudo netplan apply
The next thing to change is the computer ID.
run this command as sudo,
systemd-machine-id-setup && netplan apply
hostname and set the new computer name.
Then edit the
/etc/hosts file to also reflect the new computer name.
At this point it’s a good idea to reboot the system and once back up check is everything got changed correctly.
(sources: https://askubuntu.com/questions/383518/things-to-keep-in-mind-to-change-after-cloning-a-ubuntu-server-vm )
Next we need to change the tailscale connector.
First run this command to re-authenticate the tailscale connection
sudo tailscale down && sudo rm /var/lib/tailscale/tailscaled.state && sudo tailscale up --force-reauth
This should produce a link to re-authenticate the connection.
Next we need to reset the cloudflare connection.
First uninstall the cloudflare service:
sudo cloudflared service uninstall
Then create a new tunnel on the cloudflare website.
After the tunnel is setup there will be a command provided similar to
sudo cloudflared service install **KEY**
This should initiate the new cloudflare connection to the new tunnel.
In order for Proxmox to communicate with the guest VM, the QEMU Guest agent software is useful.
This command should download and enable the code:
apt update && apt install qemu-guest-agent && systemctl start qemu-guest-agent