LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 12-24-2022, 08:38 AM   #1
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Rep: Reputation: 16
Change SCSI to IDE in vmware player to avoid kernel panic during boot


Hello Linux experts,
I have just restored a very old clonezilla image of redhat linux 9.0 Shrike in VMWare player. Of course, I got kernel panic during boot, because the original image is created on a machine with SCSI adapter and HDD.

During creation of VMWare guest, I have chosen IDE as a disk type. I have done so in a hope that linux has native support for IDE drives and it would be recognized during the first boot, but that didn't happen.
This machine has some proprietary application I need to start in order to obtain some data, so I need somehow to change the boot data and/or install support for IDE additionally in the virtual machine.

I do have an installation CD1 f redat linux 9.0 and if I choose linux rescure, the existing installation is recognized. I cannot reinstall linux because I don't want to lose data.
I guess I need to make manual changes in the fstab, modules.conf, grub.conf and perhaps other files.
The actual error message is shown in the attached picture. After that I would need to use makeinitrd command to rebuild linux ramdisk so it contains IDE driver.

How to proceed further? Any advice is greatly appreciated.

Thank you.
Attached Thumbnails
Click image for larger version

Name:	kernel panic boot.png
Views:	19
Size:	23.9 KB
ID:	40091   Click image for larger version

Name:	grub.conf.png
Views:	14
Size:	9.6 KB
ID:	40092   Click image for larger version

Name:	modules.conf.png
Views:	16
Size:	19.0 KB
ID:	40093  

Last edited by Micik; 12-24-2022 at 08:47 AM.
 
Old 12-24-2022, 10:48 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
I don't see this as a problem of booting the old Linux system. Instead I think you should figure out how to run the old application on your current Linux system. Can you mount the image as a file system and then execute the application?

You restored the old image of redhat linux 9.0 Shrike from something. Did you mount that something as a file system? If so, could you run the application from the old mounted file system? Or could you copy the pertinent application files into your current Linux system?
 
Old 12-24-2022, 01:11 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
If you can mount the old partitions which seems like you can then I might try installing RH9 as new then attaching the old image as a second disk. Try using chroot to switch to the old image and see if your application runs. It has been many years ago but I did find all three RH9 floppies disk images and installed it using VirtualBox.

https://archive.org/download/redhat-9.0_release
 
1 members found this post helpful.
Old 12-24-2022, 01:41 PM   #4
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by michaelk View Post
If you can mount the old partitions which seems like you can then I might try installing RH9 as new then attaching the old image as a second disk. Try using chroot to switch to the old image and see if your application runs. It has been many years ago but I did find all three RH9 floppies disk images and installed it using VirtualBox.

https://archive.org/download/redhat-9.0_release
Thank you for the reply. I did write that I have installation CDs and that problem is probably solvable by using "linux rescue" option from the installation CD. The question is what I really need to change in order to boot. The image is made on a machine with SCSI HDD and this driver is not recognized in the virtual environment i.e. virtual HDD is using different driver and that is a reason why there is a kernel panic during boot.

When I start cd installation disk and type chroot /mnt/sysimage I can browse folders, partitions etc. Somehow I need to "inject" IDE driver in initial RAM disk so the system can start.

It is not an option to install some new up to date system, there is a reason, why I need to use this approach.
 
Old 12-24-2022, 02:00 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
I forgot that rescue automatically mounts the root partition. If there are other partitions you should be able to mount them too.

When you chroot you change the environment to that of the sysimage but your still using the rescue kernel so it should be the same as if you had booted from that drive so I don't know why you need to "inject" a hardware driver.

Last edited by michaelk; 12-24-2022 at 02:02 PM.
 
Old 12-24-2022, 02:23 PM   #6
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by michaelk View Post
I forgot that rescue automatically mounts the root partition. If there are other partitions you should be able to mount them too.

When you chroot you change the environment to that of the sysimage but your still using the rescue kernel so it should be the same as if you had booted from that drive so I don't know why you need to "inject" a hardware driver.
Because I need to have a virtual machine that normal boots, so I that I don't need to use installation CD every time. all partitions in the restored machines are sdxxx because of scsi, but in IDE they should he hdxxx, so I already updated fstab file replacing sd with hd.

I also commented all lines in modules.conf that use scsi adapters.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Asus netbook + USB IDE HDD + Slack 14 = Kernel panic during boot-up lee88abc Slackware 5 05-17-2013 01:02 PM
GRUB or LILO boot to SCSI drive on SCSI system w/ IDE card mkl838 Linux - General 1 03-06-2005 09:01 PM
bad dmesg output when using ide-scsi boot parameter for IDE CD/DVD-ROM Locura Slackware 7 09-29-2003 02:36 AM
use ide-scsi to emulate an ide disk as a scsi disk free_ok_man Linux - Software 1 07-01-2003 05:08 PM
use ide-scsi to emulate an ide disk as a scsi disk free_ok_man Linux - Newbie 1 07-01-2003 03:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration