Fixing a Linux VMWare image
which won't boot in VirtualBox

Access GRUB settings while running in VMWare

in /boot/grub/menu.lst
replace
kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/sda1 ro
with
kernel /boot/vmlinuz-2.6.18-4-686 root=/dev/hda1 ro
in /etc/fstab
replace all occurrencies of sda with hda

example:
/proc /proc proc defaults 0 0
/dev/sda1 / ext3 defaults,errors=remount-ro 0 1
/dev/sda3 /toolchain ext3 defaults,errors=remount-ro 0 1
/dev/sda5 none swap sw 0 1
...

becomes
/proc /proc proc defaults 0 0
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1
/dev/hda3 /toolchain ext3 defaults,errors=remount-ro 0 1
/dev/hda5 none swap sw 0 1
...


In order to let VMWare still run the same image

in the (VMWare) .vmx file
replace scsi0:0 with ide0:0

example:
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Ubuntu.vmdk"
...

becomes
ide0:0.present = "TRUE"
ide0:0.fileName = "Ubuntu.vmdk"
...

in the (VMWare) .vmdk file
replace ddb.adapterType = "lsilogic" with ddb.adapterType = "ide"

Comments

Popular posts from this blog

SSLLabs SSL Test on 716 .gov https sites

Is DHS running honeypots?

Het is moeilijk mensen te vertrouwen in een monetair systeem