The scenario is: migrating a physical machine to a VM.
The root partition on the PM is in /dev/md0, in the VM will be in /dev/sda1
I have tried different approachs to copy the data (rsync, fsarchiver, dd), but none works well.
The last has been with dd. The process is:
In the PM
dd if=/dev/md0 of=/mnt/root.dd
where /mnt is a external storage
The image is created wit no errors
Then I restore it to the VM
dd if=/mnt/root.dd of=/dev/sda1
I mount the partition and it is there, everything seems ok.
I edit fstab and change the id of the partition with the /dev/disk/by-uuid/ id of /dev/sda1
Evidently grub is not installed so it seems now the problem is reinstalling grub
I try to boot the system from the Opensuse 15.1 DVD, but the system is not found
Well, I boot with the rescue system, to reinstall grub chrooted
#mount /dev/sda1 /mnt #mount --rbind /proc /mnt/proc #mount --rbind /sys /mnt/sys #mount --rbind /dev /mnt/dev #chroot /mnt
then I edit /etc/grub/devices.lst
and then I rebuil the initrd
Which finish succesfully
Then I reinstall grub
Again no error.
then I boot the VM, grubs appear … and instead of booting the system it reboots the VM… ang again and again…
Then I boot again with the 15.1 opensuse DVD and select boot installed system.
This time it detects sda1 as 200GB, ext4, Opensuse Leap 15.1, I can select wich kernel to boot (I have two of them to choose, I have tried with them both), and when I select it, it says “you may select an alternative device name for the system partition”
https://susepaste.org/82835231The last option is precisely the id I have in fstab, but I have tried with them all with the same result: “Sorry, system didn’t boot”
I don’t know why it is failing nor what more to try.
Any suggestions will be apreciated.