Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
P2V Migration to VMware Bootloader issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jayjay5
n00b
n00b


Joined: 20 Oct 2021
Posts: 1

PostPosted: Wed Oct 20, 2021 7:27 pm    Post subject: P2V Migration to VMware Bootloader issues Reply with quote

Hi,
I am in the process of migrating an old Gentoo
uname -r
2.6.30.5-grsecvc

cat /etc/gentoo-release
Gentoo Base System release 1.12.11.1

I am trying to virtualized the server using the VMware converter tool and it fails at 97% with a GRUB related error message:
FAILED: An error occurred during the conversion: 'GrubInstaller::InstallGrub: /usr/lib/vmware-converter/installGrub.sh failed with return code: 127, and message: FATAL: kernel too old Error running vmware-updateGrub.sh through chroot into /mnt/p2v-src-root Command:

chroot "/mnt/p2v-src-root" /vmware-updateGrub.sh "GRUB2" "(hd0)" "(hd0,1)" /vmware-device.map "grub2-install" '

After some Googling and hours of trial and error I am just moving in circles. When booting the VM I get this error message:
"Error loading operating system"

I have tried reinstalling LILO and GRUB from Knoppix Live image with the following error:
/# /sbin/lilo
Fatal: raid_setup: stat("/dev/sda")




Here the physical server disk:
Disk /dev/sda: 18.2 GB, 18245222400 bytes
64 heads, 32 sectors/track, 17400 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x35104964

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9767 10001392 83 Linux
/dev/sda2 9768 13186 3501056 83 Linux
/dev/sda3 13187 15628 2500608 83 Linux
/dev/sda4 15629 17400 1814528 82 Linux swap / Solaris

Disk /dev/sdb: 73.4 GB, 73410805760 bytes
255 heads, 63 sectors/track, 8925 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x02993e92

Device Boot Start End Blocks Id System
/dev/sdb1 1 8925 71690031 83 Linux

Here is my lilo.conf :
boot=/dev/sda
#raid-extra-boot=/dev/sda,/dev/sdb
map=/boot/map
install=/boot/boot-text.b
vga=normal
#keytable=/boot/us.klt
lba32
prompt
timeout=50
restricted
password=phunk
default=linux
image=/boot/vmlinuz
label=linux
root=/dev/sda1
read-only
# append="panicmorse=2 video=aty128fb:640x480 parport=auto slram=VRAM,0xf8400000,+0x00c00000"
# append="md=d0,/dev/sda2,/dev/sdb2"
image=/boot/vmlinuz.old
label=linux-old
root=/dev/sda1
read-only
image=/boot/memtest86/memtest.bin
label=memtest
image=/boot/memtest86plus/memtest.bin
label=memtest+


Any help on how to get this VM to boot will be highly appreciated.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3878

PostPosted: Wed Oct 20, 2021 8:10 pm    Post subject: Reply with quote

Plz dont waste your time in a vain pursuit.
Instead
Mount the old-Gentoo on a directory.
Then
create a new VM
boot into a livecd
partition the Gentoo VM disk
mount it(maybe on /mnt/gentoo)
start sshd in the VM livecd
and run from the host where old Gentoo is mounted
Code:

rsync -aAXv /path/to/mounted/old/gentoo/ -e ssh <vm-ip>:/mnt/gentoo/

Chroot,reinstall grub in the VM,update partition names and UUIDs --if any --in fstab and /etc/default/grub and finally update initramfs and grub.
Reboot VM.
That's it really.
NOTE: you might need to modify your kernel and your VIDEO_CARDS variable.
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum