Wednesday, October 21, 2015

Migrate Samba 4 Active Directory server to new hardware


I migrated my old Proxmox 3.0 KVM based Samba 4 server into a new Proxmox 4.0 LXC container. Luckily migrating Samba 4 is pretty straighforward.

  1. Backup the following directories
    1. sudo tar cvzf back.tgz /etc/samba /var/lib/samba
  2. Turn off the old VM (or computer)
  3. Create a new VM with the same IP and hostname in the new hardware host
  4. Move the backup.tgz to the new VM
  5. Extract on the root
    1. cd /
    2. sudo tar xvzf /home/user/backup.tgz
  6. Now install samba on top of it
    1. sudo apt-get install samba
  7. When prompted to keep your old smb.conf file choose 'keep'
  8. Restart 

No comments:

Post a Comment