Skip to main content

Making Linked Clones


sudo bash -c "bash <(wget -qO- https://raw.githubusercontent.com/dlford/ubuntu-vm-boilerplate/master/run.sh)"

Any time a VM is spun up from a linked clone this script should be run, it will:

  • Remove the cloned machine-id from /etc/ and /var/lib/dbus, creating a new machine-id in /etc/ and symlinking it to /var/lib/dbus
  • Generate SSH keys
  • Change the host name of the new VM
  • Reboot the VM after all changes are made

This ensures that each VM made from a linked clone is unique in the stack after being made.