Hi, I was a server running Fedora 6. I want to migrate it to Xen on a Centos 5.1. Can I make something like
dd if=/dev/sdaX of=fedora6.img (on FC6)
and then on Centos 5.1
dd if=fedora6.img of=/dev/sdaX
Could I run this system into Xen?
Thanks in advance!
"Sergio Belkin" sebelk@gmail.com writes:
dd if=/dev/sdaX of=fedora6.img (on FC6)
of course, you can't do this if you are booting off /dev/sdaX- boot into a rescue disk or something.
and then on Centos 5.1
dd if=fedora6.img of=/dev/sdaX
Could I run this system into Xen?
assuming you sized things correctly, yes.
Personally I find it easier to just make .tar.gz files of the entire system.
A few things you need to do to the fc image before you start.
you want to install the xen kernel and make an entry for it in PyGrub before you move to step 1. fix the /etc/fstab to match what you call your disks in the xm config file. make sure the initrd you make has --preload xenblk
make sure you run a getty on the console (for CentOS, the console is xvc0 I assume it is the same for fc) so add xvc0 to /etc/securetty and run a getty on it in /etc/inittab
after this you can make the image as above.
your config file needs to be something like this: bootloader = "/usr/bin/pygrub" memory = 512 name = "fc_test" vif = [] disk = [ 'phy:/dev/sdaX,sda,w' ]
it should 'just work'
2008/5/16 Luke S Crawford lsc@prgmr.com:
"Sergio Belkin" sebelk@gmail.com writes:
dd if=/dev/sdaX of=fedora6.img (on FC6)
of course, you can't do this if you are booting off /dev/sdaX- boot into a rescue disk or something.
and then on Centos 5.1
dd if=fedora6.img of=/dev/sdaX
Could I run this system into Xen?
assuming you sized things correctly, yes.
Personally I find it easier to just make .tar.gz files of the entire system.
A few things you need to do to the fc image before you start.
you want to install the xen kernel and make an entry for it in PyGrub before you move to step 1. fix the /etc/fstab to match what you call your disks in the xm config file. make sure the initrd you make has --preload xenblk
make sure you run a getty on the console (for CentOS, the console is xvc0 I assume it is the same for fc) so add xvc0 to /etc/securetty and run a getty on it in /etc/inittab
after this you can make the image as above.
your config file needs to be something like this: bootloader = "/usr/bin/pygrub" memory = 512 name = "fc_test" vif = [] disk = [ 'phy:/dev/sdaX,sda,w' ]
Thanks Luke, and what should in order to convert real partitions in virtual disks?
Thanks in advance!
Sergio Belkin wrote:
Hi, I was a server running Fedora 6. I want to migrate it to Xen on a Centos 5.1. Can I make something like
You might want to take a look at this code that Richard has been working on recently :
http://et.redhat.com/~rjones/virt-p2v/
2008/5/18 Karanbir Singh mail-lists@karan.org:
Sergio Belkin wrote:
Hi, I was a server running Fedora 6. I want to migrate it to Xen on a Centos 5.1. Can I make something like
You might want to take a look at this code that Richard has been working on recently :
http://et.redhat.com/~rjones/virt-p2v/
-- Karanbir Singh : http://www.karan.org/ : 2522219@icq _______________________________________________
Really interesting. Has someone tried it?