booting slackware with GRUB under Linode KVM ?

Is there anybody out there who got a custom Slackware 14.1 VM running at full-virtualization under KVM Linode and booting with GRUB 2 ? Whatever i do, the GRUB boot results in kernel panic - while unfortunately Lish doesn't provide enough info to get a clue what went wrong early on in the boot process. I have to use a custom kernel & distro because I need to get a 2nd VM (win81) with Virtualbox up and running within that Linode based Slackware VM.

  • i created the Slackware VM in Virtualbox 5.0.2

  • i used ext4 in the VM.

  • i invoked grub-install and grub-mkconfig after installation

  • i copied a missing en@quite.mo to en.mo in /boot/grub/local/

  • i made the necessary adjustments in /etc/default/grub

  • i followed hopefully all points suggested in :

https://www.linode.com/docs/tools-refer … l-with-kvm">https://www.linode.com/docs/tools-reference/custom-kernels-distros/run-a-distribution-supplied-kernel-with-kvm

https://www.linode.com/docs/tools-refer … kvm-linode">https://www.linode.com/docs/tools-reference/custom-kernels-distros/custom-distro-on-kvm-linode

many thanks in advance for any advice !

here the entire LISH output :

[ 0.000000] Initializing cgroup subsys cpuset

[ 0.000000] Initializing cgroup subsys cpu

[ 0.000000] Initializing cgroup subsys cpuacct

[ 0.000000] Linux version 3.10.17 (root@hive64) (gcc version 4.8.2 (GCC) ) #2 SMP Wed Oct 23 16:34:38 CDT 2013

[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-huge-3.10.17 root=/dev/sda1 ro console=ttyS0,19200n8

[ 0.000000] e820: BIOS-provided physical RAM map:

[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable

[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved

[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved

[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000bffdefff] usable

[ 0.000000] BIOS-e820: [mem 0x00000000bffdf000-0x00000000bfffffff] reserved

[ 0.000000] BIOS-e820: [mem 0x00000000feffc000-0x00000000feffffff] reserved

[ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved

[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000013fffffff] usable

[ 0.000000] NX (Execute Disable) protection: active

[ 0.000000] SMBIOS 2.8 present.

[ 0.000000] No AGP bridge found

[ 0.000000] e820: lastpfn = 0x140000 maxarch_pfn = 0x400000000

[ 0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106

[ 0.000000] e820: lastpfn = 0xbffdf maxarch_pfn = 0x400000000

[ 0.000000] found SMP MP-table at [mem 0x000f6470-0x000f647f] mapped at [ffff8800000f6470]

[ 0.000000] Using GB pages for direct mapping

[ 0.000000] initmemorymapping: [mem 0x00000000-0x000fffff]

[ 0.000000] initmemorymapping: [mem 0x13fe00000-0x13fffffff]

[ 0.000000] initmemorymapping: [mem 0x13c000000-0x13fdfffff]

[ 0.000000] initmemorymapping: [mem 0x100000000-0x13bffffff]

[ 0.000000] initmemorymapping: [mem 0x00100000-0xbffdefff]

[ 0.000000] ACPI: RSDP 00000000000f6420 00014 (v00 BOCHS )

[ 0.000000] ACPI: RSDT 00000000bffe14cc 00034 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)

[ 0.000000] ACPI: FACP 00000000bffe091a 00074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)

[ 0.000000] ACPI: DSDT 00000000bffdfd80 00B9A (v01 BOCHS BXPCDSDT 00000001 BXPC 00000001)

[ 0.000000] ACPI: FACS 00000000bffdfd40 00040

[ 0.000000] ACPI: SSDT 00000000bffe098e 00A76 (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001)

[ 0.000000] ACPI: APIC 00000000bffe1404 00090 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)

[ 0.000000] ACPI: HPET 00000000bffe1494 00038 (v01 BOCHS BXPCHPET 00000001 BXPC 00000001)

[ 0.000000] Zone ranges:

[ 0.000000] DMA [mem 0x00001000-0x00ffffff]

[ 0.000000] DMA32 [mem 0x01000000-0xffffffff]

[ 0.000000] Normal [mem 0x100000000-0x13fffffff]

[ 0.000000] Movable zone start for each node

[ 0.000000] Early memory node ranges

[ 0.000000] node 0: [mem 0x00001000-0x0009efff]

[ 0.000000] node 0: [mem 0x00100000-0xbffdefff]

[ 0.000000] node 0: [mem 0x100000000-0x13fffffff]

[ 0.000000] ACPI: PM-Timer IO Port: 0x608

[ 0.000000] ACPI: LAPIC (acpiid[0x00] lapicid[0x00] enabled)

[ 0.000000] ACPI: LAPIC (acpiid[0x01] lapicid[0x01] enabled)

[ 0.000000] ACPI: LAPIC (acpiid[0x02] lapicid[0x02] enabled)

[ 0.000000] ACPI: LAPIC (acpiid[0x03] lapicid[0x03] enabled)

[ 0.000000] ACPI: LAPICNMI (acpiid[0xff] dfl dfl lint[0x1])

[ 0.000000] ACPI: IOAPIC (id[0x00] address[0xfec00000] gsi_base[0])

[ 0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23

[ 0.000000] ACPI: INTSRCOVR (bus 0 busirq 0 globalirq 2 dfl dfl)

[ 0.000000] ACPI: INTSRCOVR (bus 0 busirq 5 globalirq 5 high level)

[ 0.000000] ACPI: INTSRCOVR (bus 0 busirq 9 globalirq 9 high level)

[ 0.000000] ACPI: INTSRCOVR (bus 0 busirq 10 globalirq 10 high level)

[ 0.000000] ACPI: INTSRCOVR (bus 0 busirq 11 globalirq 11 high level)

[ 0.000000] Using ACPI (MADT) for SMP configuration information

[ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000

[ 0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs

[ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000

[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000

[ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000

[ 0.000000] PM: Registered nosave memory: 00000000bffdf000 - 00000000c0000000

[ 0.000000] PM: Registered nosave memory: 00000000c0000000 - 00000000feffc000

[ 0.000000] PM: Registered nosave memory: 00000000feffc000 - 00000000ff000000

[ 0.000000] PM: Registered nosave memory: 00000000ff000000 - 00000000fffc0000

[ 0.000000] PM: Registered nosave memory: 00000000fffc0000 - 0000000100000000

[ 0.000000] e820: [mem 0xc0000000-0xfeffbfff] available for PCI devices

[ 0.000000] setuppercpu: NRCPUS:128 nrcpumaskbits:128 nrcpuids:4 nrnodeids:1

[ 0.000000] PERCPU: Embedded 27 pages/cpu @ffff88013fc00000 s79424 r8192 d22976 u524288

[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 1032040

[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-huge-3.10.17 root=/dev/sda1 ro console=ttyS0,19200n8

[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)

[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)

[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)

[ 0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340

[ 0.000000] Checking aperture…

[ 0.000000] No AGP bridge found

[ 0.000000] Memory: 4035352k/5242880k available (11725k kernel code, 1049100k absent, 158428k reserved, 5712k data, 1272k init)

[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[ 0.000000] Hierarchical RCU implementation.

[ 0.000000] CONFIGRCUFANOUT set to non-default value of 32

[ 0.000000] RCU restricting CPUs from NRCPUS=128 to nrcpu_ids=4.

[ 0.000000] NRIRQS:8448 nrirqs:712 16

[ 0.000000] Console: colour VGA+ 80x25

[ 0.000000] console [ttyS0] enabled

[ 0.000000] tsc: Fast TSC calibration using PIT

[ 0.000000] tsc: Detected 2500.026 MHz processor

[ 0.003003] Calibrating delay loop (skipped), value calculated using timer frequency.. 5000.05 BogoMIPS (lpj=2500026)

[ 0.004377] pid_max: default: 32768 minimum: 301

[ 0.005043] Security Framework initialized

[ 0.006026] Mount-cache hash table entries: 256

[ 0.007039] Initializing cgroup subsys devices

[ 0.007710] Initializing cgroup subsys freezer

[ 0.008006] Initializing cgroup subsys net_cls

[ 0.009005] Initializing cgroup subsys blkio

[ 0.010006] Initializing cgroup subsys perf_event

[ 0.012322] mce: CPU supports 10 MCE banks

[ 0.013059] Last level iTLB entries: 4KB 0, 2MB 0, 4MB 0

[ 0.013059] Last level dTLB entries: 4KB 64, 2MB 0, 4MB 0

[ 0.013059] tlbflushallshift: 6

[ 0.015236] Freeing SMP alternatives: 36k freed

[ 0.015920] ACPI: Core revision 20130328

[ 0.017829] ACPI: All ACPI Tables successfully acquired

[ 0.019009] ftrace: allocating 36377 entries in 143 pages

[ 0.035698] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1

[ 0.046856] smpboot: CPU0: Intel(R) Xeon(R) CPU E5-2680 v3 @ 2.50GHz (fam: 06, model: 3f, stepping: 02)

[ 0.048644] Performance Events:

[ 0.049008] general protection fault: 0000 [#1] SMP

[ 0.049919] Modules linked in:

[ 0.050000] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.10.17 #2

[ 0.050000] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.8.1-0-g4adadbd-20150316_085822-nilsson.home.kraxel.org 04/01/2014

[ 0.050000] task: ffff88013b078000 ti: ffff88013b074000 task.ti: ffff88013b074000

[ 0.050000] RIP: 0010:[] [] intelpmuinit+0x2d9/0x7a7

[ 0.050000] RSP: 0000:ffff88013b075e80 EFLAGS: 00010202

[ 0.050000] RAX: 0000000000000003 RBX: 0000000000000000 RCX: 0000000000000345

[ 0.050000] RDX: 0000000000000003 RSI: 0000000000000730 RDI: 0000ffffffffffff

[ 0.050000] RBP: ffff88013b075e88 R08: 0000000000000001 R09: 0000000000000007

[ 0.050000] R10: ffffffff820fd9a0 R11: ffff88013b075c56 R12: 0000000000000000

[ 0.050000] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000

[ 0.050000] FS: 0000000000000000(0000) GS:ffff88013fc00000(0000) knlGS:0000000000000000

[ 0.050000] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033

[ 0.050000] CR2: ffff88013ffff000 CR3: 000000000200c000 CR4: 00000000001406f0

[ 0.050000] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000

[ 0.050000] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

[ 0.050000] Stack:

[ 0.050000] ffffffff821247fe ffff88013b075ed8 ffffffff8212483b 0000000000000000

[ 0.050000] ffff88000009b000 ffff88013b075ed8 ffffffff821247fe 0000000000000000

[ 0.050000] 0000000000000000 0000000000000000 0000000000000000 ffff88013b075f08

[ 0.050000] Call Trace:

[ 0.050000] [] ? check_bugs+0x2d/0x2d

[ 0.050000] [] inithwperf_events+0x3d/0x51e

[ 0.050000] [] ? check_bugs+0x2d/0x2d

[ 0.050000] [] dooneinitcall+0x102/0x160

[ 0.050000] [] kernelinitfreeable+0xb6/0x1df

[ 0.050000] [] ? rest_init+0x80/0x80

[ 0.050000] [] ? rest_init+0x80/0x80

[ 0.050000] [] kernel_init+0xe/0x180

[ 0.050000] [] retfromfork+0x7c/0xb0

[ 0.050000] [] ? rest_init+0x80/0x80

[ 0.050000] Code: 82 fd ff 44 89 0d 99 82 fd ff 89 0d 4b 83 fd ff 7e 2b 83 e2 1f b8 03 00 00 00 b9 45 03 00 00 83 fa 02 0f 4f c2 89 05 60 82 fd ff <0f> 32 48 c1 e2 20 89 c0 48 09 c2 48 89 15 f6 82 fd ff e8 09 18

[ 0.050000] RIP [] intelpmuinit+0x2d9/0x7a7

[ 0.050000] RSP [ 0.050012] –-[ end trace 9003fe4c38c5ceb7 ]–-

[ 0.050684] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

[ 0.050684]

2 Replies

Did you compile all of the KVM relate modules into your kernel?

Also, I know this is probably besides the point for you, but is there a reason why you don't just deploy the Linode Slackware 14.1 image instead of uploading your own?

Sorry I'm not more help but Slackware isn't really my cup of tea :/

you are absolutely right in that i had to recompile the stock 3.10.17 kernel with a few added features such as : CONFIGPARAVIRT=y , CONFIGPARAVIRTSPINLOCKS=y , CONFIGKVMGUEST=y , CONFIGPARAVIRTTIMEACCOUNTING=y , CONFIGPARAVIRTCLOCK=y. thereafter it was a game to get /dev/sda or /dev/sda1 right in grub.cfg and fstab, depending on which para-virtualization or full-virtualization mode i chose… ultimately it worked : 3.10.17 kernel booted in full-virtualization mode, but disk access was definitely more sluggish than with the 4.x kernels that Linode provides.

i did this whole exercise so i was able to load my own modules for VirtualBox 5.0.2 as i needed a VM with win7 run in my slackware distro. but then i had to learn the hard way that nested virtualization does not work (yet) with VirtualBox !

in short, i am back using Linode's 4.1.5 - now with my Slackware VM image i created beforehand with VirtualBox…works like a charm !

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct