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.
- Backup the following directories
- sudo tar cvzf back.tgz /etc/samba /var/lib/samba
- Turn off the old VM (or computer)
- Create a new VM with the same IP and hostname in the new hardware host
- Move the backup.tgz to the new VM
- Extract on the root
- cd /
- sudo tar xvzf /home/user/backup.tgz
- Now install samba on top of it
- sudo apt-get install samba
- When prompted to keep your old smb.conf file choose 'keep'
- Restart
No comments:
Post a Comment