Xen CentOS guest to VMware
use the vmware vcenter converter standalone
once the machine is in your esxi server
power it off and connect a centos install cd as your cd and make sure its connected on start
power on the vm and hit esc at the vmware bios post
boot from your centos install cd
at the boot: prompt enter linux rescue
select your language (im guessing english if your reading this)
and select your keyboard type
choose yes to start network interfaces (enter in your site config if need be or use dhcp as you will need internet access)
at the rescue operating system select continue
at the last rescue prompt press enter at the “ok”
chroot/mnt/sysimage
vi /etc/inittab
delete the line:
co:2345:respawn:/sbin/agetty xvc0 9600 vt100-nav
uncomment the following:
1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6
To install a pristine kernel
yum -y install kernel
And to purge the xen kernels
rpm -e kernel-xen* | xargs rpm -e
vi /etc/grub.conf
look for the kernel line and remove the following
console=xvc0
so the line looks something like
kernel /vmlinuz-2.6.18-164.6.1.el5 ro root=/dev/sdb1
vi /etc/modprobe.conf and remove any lines with xen in them ie:
alias scsi_hostadapter xenblk
alias eth0 xennet
now to leave the chroot type in:
exit
and to finally restart your client
reboot
allow selinux to fix the filesystem and auto reboot
once you confirmed your machine is up and running fine shut it down and power off the vm and remember to detach your cdrom from the client.
bootup your system
right mouse click on the vmware machine and select guest -> install/upgrade vmware tools
click on ok
type in dmesg and you should see the last drive attempting to connect example hda
type in:
mount /dev/hda /mnt
now copy the tools to your root directory
cp /mnt/VMwareTools*.tar.gz ~/
unmount the tools
umount /mnt
extract the tools
tar -zxvf VMwareTools*.tar.gz
change to the proper directory
cd vmware-tools-distrib
then run the installer
./vmware-install.pl
just choose the defaults for all the questions
once the installer completes run the optional vmxnet driver
/etc/init.d/network stop
rmmod pcnet32
rmmod vmxnet
modprobe vmxnet
/etc/init.d/network start
remove the /etc/yum.repos.d/Citrix.repo
and run a yum update