linux p2v using rsync or dd

rsync works great on production enviroments, I 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@10.1.50.11 “/bin/dd of=/dev/vg00/newvserver”

or

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

Incoming search terms:

  • rsync -avz -e p2v
  • ssh dd p2v
This entry was posted in Linux. Bookmark the permalink.

Leave a Reply

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

*


× four = 20

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>