Clone OS from one machine to the other machine type
I install a redhat on one machine, recompile the kernel.
Now, i want to have the same setup on other machine (different type of desktop). Should I reinstall it from CD, or is there a way I can image the OS? |
On the whole, reinstalling from a CD is probably easier.
If you want to copy the kernel image, then I would copy the kernel sources after doing the reinstall, and then just re-install the kernel on the second machine. Cloning the disks is also possible. This is easiest if the two machines have hard-disks of the exact same size. First, install sshd on the first machine, so that you can read the disk image across the network from the second machine. You may run into problems if you don't remount the filesystem on the first machine as read-only at this point. For each filesystem: Code:
mount /path/to/mountpoint -o remount,ro Code:
dd if=/dev/sda of=/tmp/sda.dump You can then use fuse to mount the /tmp directory from the first machine. See http://www.cyberciti.biz/tips/rhel-c...ing-sshfs.html The command you will need is as follows; username is your user on the first machine and 192.168.1.1 is its IP address: Code:
sshfs username@192.168.1.1: /mnt/remote Code:
dd if=/mnt/remote/sda.dump of=/dev/sda Please note: This is a dangerous procedure, and I haven't tried it myself, although it should work. Please make sure you back up all your data first, including your kernel configuration. |
The initial installation should have created a kickstart file in root's home directory that will make the second installation an effective copy if that helps
|
All times are GMT -5. The time now is 03:56 PM. |