Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: new Knoppix hangs in vmware : waiting for root device

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    1

    Question new Knoppix hangs in vmware : waiting for root device

    Knoppix: ADRIANE-KNOPPIX_V6.7.0CD-2011-08-01-DE.iso
    VMware: 3.0.1 build-227600
    /dev/sda1 2GB, swap
    /dev/sda2 6GB /

    After install the boot give up with:
    Waiting for root device /dev/sda2

    Any hint?

    Greetz
    neo67

  2. #2
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    I think that the SCSI HDD controller of the VMware virtual machine needs three additional kernel modules not compiled into the kernel (mptbase, mptspi, mptscsih). They already exist on the HDD in the directory /lib/modules/2.6.39.3/kernel/drivers/message/fusion but are inaccessible during boot up. I found out the names of these modules when I issued
    Code:
    lsmod
    and
    Code:
    hwinfo --scsi
    while I was running Knoppix 6.7.0 from CD in the VMware virtual machine.

    I created an initial ramdisk /boot/initrd.img-2.6.39.3 on the Knoppix partition with these kernel modules inside. I used the update-initramfs command notwithstanding the disadvantage of a large initial ramdisk because there are some kernel modules added automatically.

    I also appended the line
    Code:
    initrd /boot/initrd.img-2.6.39.3
    to the section with the title "Knoppix" in the configuration file /boot/grub/menu.lst on the Knoppix partition.

  3. #3
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by klaus2008 View Post
    I think that the SCSI HDD controller of the VMware virtual machine needs three additional kernel modules not compiled into the kernel (mptbase, mptspi, mptscsih). They already exist on the HDD in the directory /lib/modules/2.6.39.3/kernel/drivers/message/fusion but are inaccessible during boot up.
    If that is the case, perhaps just change the emulated HDD controller might be a better choice. My VMplayer has limited GUI functionality, perhaps it requires manual edit; but in VirtualBox I can select from the gui IDE, SATA, SCSI and others as my HDD controller(s). I think the capability should exist in VMWare, somewhere .....

  4. #4
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by neo67 View Post
    Knoppix: ADRIANE-KNOPPIX_V6.7.0CD-2011-08-01-DE.iso
    VMware: 3.0.1 build-227600
    /dev/sda1 2GB, swap
    /dev/sda2 6GB /

    After install the boot give up with:
    Waiting for root device /dev/sda2

    Any hint?
    My best tip right now, if you are running Linux, is install qemu-kvm and use that. It runs like a charm. I'm posting this from 6.7.0 DVD iso, using 64-bits kernel, running iceweasel 5. qemu-kvm in my 64-bits remastering of Knoppix 6.4.4.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    @kl522
    You are right. It is possible to use an IDE HDD for Knoppix 6.7.0 although the wizard of VMware Player only supports the creation of an SCSI HDD.

    I used VMmanager to create a new virtual machine for VMware Player with an IDE HDD (8 GB). I formatted the new disk with GParted (2 GB swap and 6 GB reiserfs) and installed Knoppix 6.7.0 using 0wn. The bootloader was installed in the MBR. After installation of Knoppix 6.7.0 I disconnected the CD and was able to boot up the virtual machine without using an additional initial ramdisk.

  6. #6
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    There's an additional problem using vmware: Right now, you have to manually patch the module sources to get them to compile with 2.6.38+ kernels. If you want to run it with your own compiled kernel or under 6.7.0, there is currently no other way. It's not too hard, but a hassle still.

    Even though the problem has been known for months, and the use of the offending kernel flags has been discouraged for years, it has not been corrected.

    Under Knoppix, I have found qemu-kvm to be much more useful for testing - everyday vm running may be something else, though, and I'm not in any way discontinuing my use of vmware.

    Here are the commands I needed to run 6.7.0 ISO under qemu-kvm
    Code:
    #qemu-img create -f qcow /store/vm/qemu/knx670_disk.img 4G &
    # qemu -cdrom /store/download/iso/KNOPPIX_V6.7.0DVD-2011-08-01-EN.iso -hda /store/vm/qemu/knx670_disk.img -m 1024 -boot d &
    I use 64-bits throughout, at least it goes fast.

  7. #7
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by Capricorny View Post
    Under Knoppix, I have found qemu-kvm to be much more useful for testing - everyday vm running may be something else, though, and I'm not in any way discontinuing my use of vmware.

    Here are the commands I needed to run 6.7.0 ISO under qemu-kvm
    Code:
    #qemu-img create -f qcow /store/vm/qemu/knx670_disk.img 4G &
    # qemu -cdrom /store/download/iso/KNOPPIX_V6.7.0DVD-2011-08-01-EN.iso -hda /store/vm/qemu/knx670_disk.img -m 1024 -boot d &
    I use 64-bits throughout, at least it goes fast.
    I ***SUSPECT*** you probably did not actually used kvm. On my system, to use qemu with kvm, I have to do this :-

    Code:
               # modprobe kvm-intel   ( depends on whether your hardware is intel or amd )
               # qemu -enable-kvm ..........
    My kernel config is probably different from yours, so I don't know for sure. Without kvm, qemu is as slow as dog. With kvm, qemu is comparable with virtualbox and vmplayer, 32bit or 64bit.

    Also there are a few GUI for qemu. The one I installed is AQEMU. Helps a bit, but unfortunately the display seems to be clobbered. Maybe is my supporting library version is bugged .....

  8. #8
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by kl522 View Post
    I ***SUSPECT*** you probably did not actually used kvm. On my system, to use qemu with kvm, I have to do this :-

    Code:
               # modprobe kvm-intel   ( depends on whether your hardware is intel or amd )
               # qemu -enable-kvm ..........
    My kernel config is probably different from yours, so I don't know for sure. Without kvm, qemu is as slow as dog. With kvm, qemu is comparable with virtualbox and vmplayer, 32bit or 64bit.

    Also there are a few GUI for qemu. The one I installed is AQEMU. Helps a bit, but unfortunately the display seems to be clobbered. Maybe is my supporting library version is bugged .....
    Well, your suspicion fails completely. I haven't looked into the details, but somehow, I have to reinstall qemu-kvm (look for that package) after remastering to have it run correctly, i.e. with kvm. It complains if it can't, and runs very slowly, yes. (But still fast enough to debug parts of the booting process.) Maybe something to do with kernel module configuration, and remember, my setup is entriely 64-bits. Package organization may be different.

    I don't feel the need for a GUI, for my limited use. And using the command line, I get all the complaints logged straight away. (Like qemu not being able to use kvm.)

  9. #9
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Just for fun: This is posted from iceweasel 5.0 running under knoppix64 booted from 7.6.0 DVD ISO file, running under qemu-kvm. Not at all slow, would definitely not have been possible with plain qemu emulation. Maybe the 64-bits design helps here, too.

    Edit:
    Kernel config is 2.6.39.2, downloaded from debian-knoppix site and compiled as-is. Seems to run without any hitches, only trouble is with vmware, but all post 2.6.37-kernels are affected by that, I think.
    Last edited by Capricorny; 08-06-2011 at 01:34 PM.

  10. #10
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Just a remark, I'm bypassing the DVD burning step on the way to USB flash/Poor man's install by running qemu with USB access:

    Code:
    # lsusb
    Bus 002 Device 006: ID 0951:1624 Kingston Technology 
    .....
    #qemu  -cdrom /store/download/iso/KNOPPIX_V6.7.0DVD-2011-08-01-EN.iso -hda  /store/vm/qemu/knx670_disk.img -m 1024 -boot d -usb -usbdevice  host:0951:1624 &
    Then, run "Install Knoppix to flash disk" in the virtual machine. We could of course have copied the files directly from loop-mounted ISO, but this method allows us to check things

    Also, the purging and installing steps prior to remastering can be carried out in qemu virtual machine sessions, making administrative tasks very much easier.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Apple 2019 Mac Pro 28-Core Xeon W-3275M 96GB RAM 1TB SSD Radeon Pro 580X 8GB picture

Apple 2019 Mac Pro 28-Core Xeon W-3275M 96GB RAM 1TB SSD Radeon Pro 580X 8GB

$3449.97



Dell Windows XP Pro X64 SUPER FAST GAMING SYSTEM 4 Core Xeon 2.8Ghz 8GB Ram SSD picture

Dell Windows XP Pro X64 SUPER FAST GAMING SYSTEM 4 Core Xeon 2.8Ghz 8GB Ram SSD

$599.00



Windows 11 Home Mini PC Intel N4100 Quad Core 2.7GHz 8GB RAM DDR4 256GB SSD picture

Windows 11 Home Mini PC Intel N4100 Quad Core 2.7GHz 8GB RAM DDR4 256GB SSD

$89.59



CHUWI 13.3in Aerobook Intel Core M3 Laptop Computer 8GB 256GB SSD Windows 11 H picture

CHUWI 13.3in Aerobook Intel Core M3 Laptop Computer 8GB 256GB SSD Windows 11 H

$144.39



Intel - Core i5-13500 13th Gen 14 cores 6 P-cores + 8 E-cores, 24MB Cache, 2.... picture

Intel - Core i5-13500 13th Gen 14 cores 6 P-cores + 8 E-cores, 24MB Cache, 2....

$199.99



Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5... picture

Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5...

$274.99



EXCELLENT Apple 2020/2022 iMac 27 Inch 5K 8-CORE i7 1TB SSD 64GB RAM 5500 XT PRO picture

EXCELLENT Apple 2020/2022 iMac 27 Inch 5K 8-CORE i7 1TB SSD 64GB RAM 5500 XT PRO

$1695.00



Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4... picture

Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...

$344.99



HP Essential Laptop Computer 15.6

HP Essential Laptop Computer 15.6" HD Intel Core i7 8 GB memory; 128 GB SSD

$599.99



Dell 14

Dell 14" TOUCHSCREN Laptop 8th Gen Core i5 16GB RAM 512GB SSD/256 Bluetooth W11

$235.00