Move Plex Server from Linux to Linux VM

One of the beauties of Linux is the simplicity of doing this.

  1. Stop Plex
  2. sudo bash
  3. cd /var/lib/plexmediaserver
  4. tar cf /home/PlexBackup.tar ./Library ( I presume /home is safe & has enough space for this)
  5. Now copy/move “PlexBackup.tar” somewhere safe or directly into the new VM
  6. Recreate the equivalent existing media mount points into the VM so PMS won’t know or care that you’ve moved it into the VM.
  7. Install PMS in the VM and immediately stop it
  8. Restore the tar ball back into the VM’s /var/lib/plexmediaserver
  9. Confirm everything is chown -R plex:plex
  10. away you go

You’re effectively cloning the real machine into the VM. :wink: