Author Topic: VMWare 64-bit disks  (Read 8660 times)

teadriven

  • Newbie
  • *
  • Posts: 5
VMWare 64-bit disks
« on: June 30, 2011, 13:11:16 PM »
I am currently trying out ploplinux-4.1.1-x64 in a VM to see if I can use it to run installation scripts. The VMWare machine is configured as a linux 64-bit system and has the limitation that it cannot use the buslogic driver for SCSI disks but must use lsilogic when running in 64-bit mode.

This poses a problem since ploplinux (booted via an ISO image in the VM) cannot find the disk.

Is there any way to get ploplinux to discover the disk or possibly modify ploplinux to include the appropriate kernel modules?

Thanks,
Dan

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2480
  • a command shell is enough to do amazing things
Re: VMWare 64-bit disks
« Reply #1 on: June 30, 2011, 14:32:20 PM »
hi,
you can compile easily a new kernel with the required driver. did you ever compiled a kernel by yourself?

before you do anything, please add to vmware a virtual ide cdrom drive (the scsi controller should be still available) and boot ploplinux from the ide drive. then post the output of "dmesg > dmesg.txt" and "lspci > lspci.txt" as attachment (see additional post options) here.

regards
elmar
« Last Edit: June 30, 2011, 14:37:37 PM by Elmar »

teadriven

  • Newbie
  • *
  • Posts: 5
Re: VMWare 64-bit disks
« Reply #2 on: June 30, 2011, 16:57:33 PM »
I've attached the dmesg and lspci outputs as requested. Looking at the lspci, it looks like it is recognising the lsilogic scsi controller, but it never finds the disk.

I haven't built a kernel in many years and I was hoping to get away without building a custom plop linux for my installation media  :)

I booted an Ubuntu VM I had available and took a look at how it was handling the VMWare disk, and it appears to be using a kernel module called mptspi.

Dan

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2480
  • a command shell is enough to do amazing things
Re: VMWare 64-bit disks
« Reply #3 on: June 30, 2011, 18:22:57 PM »
bootup again the ploplinux from ide and run "pciprobe"

teadriven

  • Newbie
  • *
  • Posts: 5
Re: VMWare 64-bit disks
« Reply #4 on: June 30, 2011, 18:27:57 PM »
It only reported:

Checking for other PCI hardware ...
Loading   .......................................... [snd-ens1371]
ENS1371 0000:02:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16

No sign of a disk!
Dan

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2480
  • a command shell is enough to do amazing things
Re: VMWare 64-bit disks
« Reply #5 on: June 30, 2011, 18:35:24 PM »
ok, i know now whats missing. do you want to wait for the next release, or compile it by yourself?

teadriven

  • Newbie
  • *
  • Posts: 5
Re: VMWare 64-bit disks
« Reply #6 on: June 30, 2011, 18:37:50 PM »
That's great!
If you could let me know what is missing and what I need to rebuild, I will attempt to compile it myself. If I fail then I will just have to wait for the next release :)

Many thanks,
Dan

Elmar

  • Administrator
  • Hero Member
  • *****
  • Posts: 2480
  • a command shell is enough to do amazing things
Re: VMWare 64-bit disks
« Reply #7 on: June 30, 2011, 18:51:20 PM »
you need the /proc/config.gz of a running ploplinux, the kernel src http://www.kernel.org and a linux with a compiler.

extract the kernel src
uncompress config.gz to kernelsrc/.config
run "make menuconfig"
change to drivers / fusion mtp device support
press space until you have a "*" to include the 3 mtp drivers to the kernel
leave the config and run "make && make modules_install"
take the bzImage from arch/x86/boot/bzImage
create a new lib.sqfs with the kernel modules of /lib/modules


regards
elmar

teadriven

  • Newbie
  • *
  • Posts: 5
Re: VMWare 64-bit disks
« Reply #8 on: July 01, 2011, 00:17:28 AM »
It works!

I now get an attached device reported in /proc/scsi/scsi and in /proc/scsi/mptspi/0. I also now have a /dev/sda so I can start testing my install script.

Thank you so much for your help and also for producing such a useful little distribution.

Regards,
Dan