Uncategorized

Changes after cloning a Proxmox VM

for the tilexx-API server machines, these are the changes that need to happen:

  1. Network adapter
  2. Computer unique name
  3. Tailscale
  4. Cloudflared
  5. Guest agent

Network

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.

The command 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

Hostname

The next thing to change is the computer ID.

run this command as sudo, systemd-machine-id-setup && netplan apply

Then run 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 )

Tailscale

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.

(sources:
https://github.com/tailscale/tailscale/issues/3706
https://github.com/tailscale/tailscale/issues/367
)

Cloudflare

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.

Guest Agent

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

(source: https://forum.proxmox.com/threads/qemu-guest-agent-on-ubuntu-guest-vm.107191/
https://pve.proxmox.com/wiki/Qemu-guest-agent
)

Leave a Reply

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