LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-13-2013, 05:02 PM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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
 
Old 07-13-2013, 05:34 PM   #2
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware
Posts: 137

Rep: Reputation: 13
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?
 
Old 07-13-2013, 06:33 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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
 
Old 07-13-2013, 06:41 PM   #4
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,944

Rep: Reputation: 967Reputation: 967Reputation: 967Reputation: 967Reputation: 967Reputation: 967Reputation: 967Reputation: 967
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.
 
1 members found this post helpful.
Old 07-13-2013, 06:51 PM   #5
Stuferus
Member
 
Registered: Jun 2013
Location: Germany
Distribution: Slackware
Posts: 144

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 07-13-2013, 07:12 PM   #6
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
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
 
Old 07-13-2013, 08:30 PM   #7
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 800

Rep: Reputation: 100Reputation: 100
Dang, Stuferus beat me to it. I use that script on EVERY new install that I do, whether it be VM, or physical machine.
 
Old 07-14-2013, 03:12 AM   #8
yars
Member
 
Registered: Apr 2012
Location: Russia
Distribution: Slackware
Posts: 137

Rep: Reputation: 13
Quote:
Originally Posted by markush View Post
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
 
Old 07-14-2013, 04:44 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Original Poster
Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
I've found the problem...

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

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
 
  


Reply

Tags
guest, initrd, vbox


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware 64bit virtualbox guest zenlunatic Slackware 32 12-01-2013 01:55 PM
[SOLVED] VirtualBox guest additions for init 3 Slackware guest? kikinovak Slackware 2 06-04-2013 11:36 AM
Move Slackware guest from a Slackware hosted Virtualbox to Windows hosted Virtualbox? damgar Slackware 1 08-08-2012 12:28 AM
Custom Kernel on VirtualBox Slackware Guest daidoji Linux - Virtualization and Cloud 3 01-27-2010 09:00 PM
Resolution problems with Slackware as VirtualBox guest zoran119 Slackware 7 08-25-2008 09:40 PM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration