Linux p2v in Xen

rsync works great on production enviroments, We had paravirtualized some servers with these method:

 rsync -ave ssh –exclude=/proc –exclude=/sys –exclude=/dev (if you are using udev) root@runingserver:/  /mnt/newserverimage/

after this:

 mkdir /mnt/newserverimages/proc

 mkdir /mnt/newserverimages/sys

 mkdir /mnt/newserverimages/dev

 review your fstab, and copy the kernel modules:

 cp -pr /lib/modules/2.6.16-xenU /mnt/newserverimages/lib/modules/

 more or less …. this is the way

 Also I have full virtualitzed some old GNU/Linux boxes with kernels 2.4,

I used GNU/Linux live CD on the old box and dd utility:

 dd if=/dev/hda | ssh root@192.168.1.1 “/bin/dd of=/dev/vg00/newvserver”

or

 dd if=/dev/hda | ssh root@10.10.52.118 “/bin/dd of= /dev/vmvg01/classicapp02″

 

Incoming search terms:

  • xen p2v script from livecd -kvm -virt-p2v
  • ssh dd p2v xen
  • XEN linux P2V
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


+ 2 = nine

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>