There are many ways to migrate servers in a virtual environment. This has been the easiest for me (not to mention the simplest).
The VMWare converter has problems with the way that XenServer modifies the bootloader.
- In VMWare, create a new virtual server and install a base image on it.
- Give it an IP address and make sure that it can hit the yum REPO’s.
- On the SOURCE server:
- Install rsync with
-
#yum -y install rsync
-
- Create an exclusion file with
-
#touch ./exclusion
- vi ./exclusion
- paste
-
/boot /proc /sys /tmp /dev /var/lock /etc/fstab /etc/mtab /etc/resolv.conf /etc/conf.d/net /etc/network/interfaces /etc/networks /etc/sysconfig/network* /etc/sysconfig/hwconf /etc/sysconfig/ip6tables-config /etc/sysconfig/kernel /etc/hostname /etc/HOSTNAME /etc/hosts /etc/modprobe* /etc/modules /net /lib/modules /etc/rc.conf
-
- paste
-
- Initiate a transfer from the SOURCE server to the DESTINATION server with (on the SOURCE, x.x.x.x is the DESTINATION IP)
-
#rsync -e 'ssh' -azPx --delete-after --exclude-from="./exclusion" / root@x.x.x.x:/
-
- Install rsync with
This will copy the server via rsync from the SOURCE to the DESTINATION server. Then shutdown the source and reboot the destination.
This will not copy the network config, but it WILL copy the security information (root/etc).
After this is done, youll have a working server since the VMWare converter doesnt work very well for this.