PERRY COMPUTER SERVICES

Utilities Organization Games

Your products All products

PCS Remote help

Cloned Linux machine (two computers, one number)

Help code HELP-RC-104 · Last updated

Why does this happen?

Usually because a Linux computer was cloned: a disk or virtual machine was copied after Linux was installed. PCS Remote builds a computer's number from the file /etc/machine-id, and copies share that file, so they share one number.

It's a Linux imaging issue, not a fault in PCS Remote. This is the Linux equivalent of the Windows fix on this page.

What you might notice

  • Two computers show the same number, or one keeps dropping sessions.
  • Only one copy can hold the number at a time: the last one to connect. The other is cut off, but it still shows “connected” on its own screen.

The fix: give the copy its own machine ID

Run this on the copy only, never on the original, and read the whole page first.

On the copy, open a terminal as a user who can use sudo, and run these one after another:

sudo systemctl stop perrycs-rc-agent
sudo rm -f /etc/machine-id /var/lib/dbus/machine-id
sudo systemd-machine-id-setup
sudo ln -sf /etc/machine-id /var/lib/dbus/machine-id
sudo rm -rf /var/lib/perrycs-rc/identity
sudo reboot

After the restart the copy has a new identity and gets a new PCS Remote number. In PCS Remote IT, add it again as a new tile. The original keeps its number and its tile.

Optional: give the copy its own name

So you can tell the two apart in PCS Remote IT, give the copy a different computer name (change NEWNAME):

sudo hostnamectl set-hostname NEWNAME

If you pinned the old identity

If a technician had already pinned the old key, PCS Remote IT may ask about it. Press “Reset security pin” on the copy's tile only, never on the original's.

Next time: clear the ID before cloning

The best way to avoid this. Before you capture the image, empty the file (don't delete it), and every copy makes its own ID on its first start:

sudo truncate -s 0 /etc/machine-id

Please don't press “Generate new ID” in PCS Remote. It doesn't separate clones, so the copies still collide.