Is there any (easy?) way to migrate running standalone CentOS 4 or 5 systems to xen virtual stacks? Rebuilding those systems from scratch on the xen machine would take plenty of work. - Jussi Hirvi
> Is there any (easy?) way to migrate running standalone CentOS 4 or 5 > systems to xen virtual stacks? > > Rebuilding those systems from scratch on the xen machine would take > plenty of work.I did so but it can be a bit tricky. You need to make sure you have the needed kernel installed and also configured disk modules and mount points and such. Then you can use tar or rsync to migrate the whole system. Maybe you can install one guest just for test and see how exactly it must be configured. Then you configure the live systems the same way. I can't tell you exactly because it's long time ago - and it's not really easy :) Simon
On Fri, Mar 04, 2011 at 10:31:18AM +0200, Jussi Hirvi wrote:> Is there any (easy?) way to migrate running standalone CentOS 4 or 5 > systems to xen virtual stacks? > > Rebuilding those systems from scratch on the xen machine would take > plenty of work. >If you're talking about Xen PV domUs, then the process is pretty much like this: - ssh into the standalone system. - make sure /etc/modprobe.conf includes xenblk driver (so that it'll be included in the generated initrd when you install kernel-xen). - fix /etc/fstab to have xvd* (xen virtual disk) devices instead of sd*. - install kernel-xen rpm. - verify kernel-xen is the default in /boot/grub/grub.conf. - verify root= parameter is correct in /boot/grub/grub.conf for kernel-xen. - copy/transfer all the files from the standalone system to virtual disk/image. - create a configuration file for the new domU, make it use pygrub bootloader, and make it use xvd* disks/devices. - done. -- Pasi
On 03/04/2011 02:31 AM, Jussi Hirvi wrote:> Is there any (easy?) way to migrate running standalone CentOS 4 or 5 > systems to xen virtual stacks? > > Rebuilding those systems from scratch on the xen machine would take > plenty of work.I think I would use KVM guests and not Xen guests ... but that is just me. KVM does not require a special kernel and is the supported solution in future versions of upstream products. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 253 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20110304/20c69449/attachment-0002.sig>