LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware guest on Virtualbox - which modules for initrd? (http://www.linuxquestions.org/questions/slackware-14/slackware-guest-on-virtualbox-which-modules-for-initrd-4175469536/)

markush 07-13-2013 04:02 PM

Slackware guest on Virtualbox - which modules for initrd?
 
Hello,

I'm running Slackware-14.0 (32bit) with kernel 3.2.45 in Virtualbox.

I'm trying to build an initrd in order to use the generic kernel. But it doesn't work. When booting I get a kernelpanic because the filesystem cannot be mounted. Normally in this case either the driver (module) for the disk or the filesystem is missing. Here my mkinitrd.conf
Code:

SOURCE_TREE="/boot/initrd-tree"
OUTPUT_IMAGE="/boot/initrd.gz"
KERNEL_VERSION="$(uname -r)"
KEYMAP="de"
MODULE_LIST="ext4:ahci:ata_piix"
ROOTDEV="/dev/sda1"
ROOTFS="ext4"
WAIT="1"

Anyone an idea? Are there any additional modules which have to be included?

Thanks in advance

Markus

yars 07-13-2013 04:34 PM

You use a ext4 filesystem? Also, which chipset selected in a settings on a pages "System > Motherboard" and which controller of hard drives selected on a page "Drives"? Select the ICH* chipset and the controller ICH*. I have VirtualBox version 4.2.14, on the settings pages described above I select the ICH9 chipset and ICH6 controller. In dmesg output I see:
Code:

[    0.775500] SCSI subsystem initialized
[    0.775519] ACPI: bus type ATA registered
[    0.775690] libata version 3.00 loaded.
...
[    1.336794] ata_piix 0000:00:1f.1: version 2.13
[    1.336974] ata_piix 0000:00:1f.1: setting latency timer to 64
[    1.337818] scsi2 : ata_piix
[    1.340597] scsi3 : ata_piix
...
[    1.341346] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xe000 irq 14
[    1.341985] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xe008 irq 15
...
[    1.930457] ata2.00: ATAPI: VBOX CD-ROM, 1.0, max UDMA/133
[    1.931335] ata1.00: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133
[    1.931914] ata1.00: 16777216 sectors, multi 128: LBA
[    1.932063] ata1.01: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133
[    1.932063] ata1.01: 16777216 sectors, multi 128: LBA
[    1.934323] ata2.00: configured for UDMA/100
[    1.935227] ata1.00: configured for UDMA/100
[    1.936094] ata1.01: configured for UDMA/100
[    4.221208] scsi 2:0:0:0: Direct-Access    ATA      VBOX HARDDISK    1.0  PQ: 0 ANSI: 5
[    4.225080] scsi 2:0:1:0: Direct-Access    ATA      VBOX HARDDISK    1.0  PQ: 0 ANSI: 5
[    4.226308] sd 2:0:0:0: [sda] Attached SCSI disk
[    4.230276] scsi 3:0:0:0: CD-ROM            VBOX    CD-ROM          1.0  PQ: 0 ANSI: 5
[    4.231021] sd 2:0:1:0: [sdb] Attached SCSI disk
[    4.232544] sr0: scsi3-mmc drive: 32x/32x xa/form2 tray
[    4.234005] sr 3:0:0:0: Attached scsi CD-ROM sr0
[    4.273661] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    4.274494] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.

Also, can you provide screenshot on kernel panic message?

markush 07-13-2013 05:33 PM

Here's my output of lspci -k
Code:

00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
        Kernel driver in use: ata_piix
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
        Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter
        Kernel driver in use: e1000
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
        Subsystem: Intel Corporation Device 0000
        Kernel driver in use: snd_intel8x0
00:06.0 USB controller: Apple Computer Inc. KeyLargo/Intrepid USB
        Kernel driver in use: ohci_hcd
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
        Kernel driver in use: ahci

Markus

kikinovak 07-13-2013 05:41 PM

Hi,

I have four Slackware guests running in VirtualBox. I only have MODULE_LIST="ext4" in mkinitrd.conf. So I guess something else must be wrong.

Stuferus 07-13-2013 05:51 PM

im currently running slackware 14 (32bit) in vmware.

ive read "http://docs.slackware.com/slackware:beginners_guide" and found the mkinitrd script there, works great.

did you try to use: /usr/share/mkinitrd/mkinitrd_command_generator.sh ?

sry for bad english. ;)

markush 07-13-2013 06:12 PM

Thanks so far. It's still not working. I've tried the script as Stuferus suggested and tried ext4 only as kikinovak suggested.

There must be something wrong. I've running Slackware an several physical machines with generic kernel, so I thought that I know how to create an initrd ;)

I'll try to find the problem tomorrow.

Markus

manwichmakesameal 07-13-2013 07:30 PM

Dang, Stuferus beat me to it. I use that script on EVERY new install that I do, whether it be VM, or physical machine.

yars 07-14-2013 02:12 AM

Quote:

Originally Posted by markush (Post 4989832)
Here's my output of lspci -k

Compare:
Code:

00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
        Subsystem: Intel Corporation PRO/1000 MT Desktop Adapter
        Kernel driver in use: e1000
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
        Kernel driver in use: vboxguest
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
        Subsystem: Intel Corporation Device 0000
        Kernel driver in use: snd_intel8x0
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:18.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:19.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
        Subsystem: Intel Corporation Device 7270
        Kernel driver in use: lpc_ich
00:1f.1 IDE interface: Intel Corporation 631xESB/632xESB IDE Controller
        Kernel driver in use: ata_piix
00:1f.4 USB controller: Apple Computer Inc. KeyLargo/Intrepid USB
        Kernel driver in use: ohci_hcd


markush 07-14-2013 03:44 AM

:doh: I've found the problem...

:mad: I've forgotten :newbie: to put the initrd.gz into the /etc/lilo.conf file :cry:

Thanks for all the help, now it works.

I've put the modules which are listed from the /usr/share/mkinitrd/mkinitrd_command_generator.sh into my mkinitrd.conf

Markus


All times are GMT -5. The time now is 01:57 AM.