Tuesday, April 30, 2013

How I accomplished a migration of a legacy Linux System from a VMware ESXi Host to a Windows 2008 Hyper-V Host without SCCM

The process to migrate VMware's 4.1 ESXi Ubuntu 8.10 server to Microsoft Hyper-V 2008 is as follows:

-------Source Server ------

Step 1.) Export the OVA file out of vmware (This provides a perfect clone, of the existing machine)
Step 2.) Log in to Ubuntu and establish a mount point for the (backup / restore)
mkdir /mnt/backup
mount.cifs //192.168.10.200/Shares/BACKUPS/Tools /mnt/backup/
Step 3.) set a backup job to compress all files and send them to the mount point and exclude the backup file itself.
cd /mnt/backup/
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /


----Target Machine ----

Step 4.) Install Ubuntu 8.10 server on target machine using defaults
Step 5.) Establish new repositories for the legacy install.
vim /etc/apt/sources.list
and change all locations to reflect

## EOL upgrade sources.list
-# Required
deb http://old-releases.ubuntu.com/ubuntu/ intrepid main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-updates main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu/ intrepid-security main restricted universe multiverse

-# Optional
-#deb http://old-releases.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

Step 6.) Install the smbfs file system
apt-get install smbfs
Step 7.) Now update and upgrade the target system
apt-get update
apt-get upgrade
Step 8.) Mount the mount point that has the backup
mkdir /mnt/backup
mount.cifs //192.168.10.200/Shares/BACKUPS/Tools /mnt/backup/
Step 9.) Restore the backup
sudo tar -xvpzf backup.tar.gz -C /media/whatever --numeric-owner
Step 10.) Fix the UUID for booting

tune2fs /dev/sda1 -U 46ae33f5-3fd7-468a-88cc-66d3a99c146a

1 comment: