[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Kernel panic - not syncing: Attempted to kill init



HI, everyone
I'm trying to create a paravirtualized domU on Ubuntu 10.04 dom0.
I follow Professional Xen Virtualization, create filesystem image file, clone host's root filesystem, and create configuration file to start pv domU.

$ dd if=/dev/zero of=pv-rootfs.img bs=1024k seek=20480 count=0
$ mkfs.ext3 pv-rootfs.img
$ sudo mount -o loop pv-rootfs.img /mnt/tmp/
$ sudo cp -ax /{bin,dev,etc,lib,lib32,lib64,root,sbin,usr,var} /mnt/tmp
$ mkdir /mnt/tmp/{home,proc,opt,sys,tmp}
$ chmod 777 /mnt/tmp/tmp/
$ rm -rf /mnt/tmp/var/tmp/*
$ sudo umount /mnt/tmp/

I use dom0's kernel and ramdisk to get started with, my configuration file has the following contents:
kernel    = "/boot/vmlinuz-2.6.32.57"
ramdisk = "/boot/initrd.img-2.6.32.57"
memory = 512
name     = "My PV Ubuntu 10.04"
vif           = [ 'bridge=xenbr0' ]
disk        = [ 'tap:aio:/home/wen/domU/pv/pv-rootfs.img,xvda,w' ]
root        = "/dev/xvda ro"

I also check file /etc/fstab, my filesystem table has the following contents:
# <file system>         <mount point>    <type>    <options>                           <dump>  <pass>
proc                            /proc                     proc        nodev,noexec,nosuid      0               0
/dev/xvda                   /                             ext3        defaults                               0               1
none                           /dev/pts                devpts    gid=5,mode=620              0               0
none                           /dev/shm              tmpfs      defaults                               0               0
none                           /sys                       sysfs       defaults                               0               0

When I try to boot the domain, it eventually occur a kernel panic, as follow:

-----------------------------------------------------------------------------
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32.57 (lab408@lab408-desktop) (gcc version 4.1.3 20080704 (prerelease) (Ubuntu 4.1.2-27ubuntu1)) #1 SMP Sun Jul 8 09:48:39 CST 2012
[    0.000000] Command line: root=/dev/xvda ro 
[    0.000000] KERNEL supported cpus:
[    0.000000]   Intel GenuineIntel
[    0.000000]   AMD AuthenticAMD
[    0.000000]   Centaur CentaurHauls
[    0.000000] ACPI in unprivileged domain disabled
[    0.000000] released 0 pages of unused memory
[    0.000000] BIOS-provided physical RAM map:
[    0.000000]  Xen: 0000000000000000 - 00000000000a0000 (usable)
[    0.000000]  Xen: 00000000000a0000 - 0000000000100000 (reserved)
[    0.000000]  Xen: 0000000000100000 - 0000000020800000 (usable)
[    0.000000] DMI not present or invalid.
[    0.000000] last_pfn = 0x20800 max_arch_pfn = 0x400000000
[    0.000000] Scanning 1 areas for low memory corruption
[    0.000000] modified physical RAM map:
[    0.000000]  modified: 0000000000000000 - 0000000000001000 (usable)
[    0.000000]  modified: 0000000000001000 - 0000000000006000 (reserved)
[    0.000000]  modified: 0000000000006000 - 00000000000a0000 (usable)
[    0.000000]  modified: 00000000000a0000 - 0000000000100000 (reserved)
[    0.000000]  modified: 0000000000100000 - 0000000020800000 (usable)
[    0.000000] init_memory_mapping: 0000000000000000-0000000020800000
[    0.000000] RAMDISK: 01c4a000 - 023db000
[    0.000000] (9 early reservations) ==> bootmem [0000000000 - 0020800000]
[    0.000000]   #0 [0000000000 - 0000001000]   BIOS data page ==> [0000000000 - 0000001000]
[    0.000000]   #1 [00024de000 - 00024f5000]   XEN PAGETABLES ==> [00024de000 - 00024f5000]
[    0.000000]   #2 [0000006000 - 0000008000]       TRAMPOLINE ==> [0000006000 - 0000008000]
[    0.000000]   #3 [0001000000 - 0001b1f5e4]    TEXT DATA BSS ==> [0001000000 - 0001b1f5e4]
[    0.000000]   #4 [0001c4a000 - 00023db000]          RAMDISK ==> [0001c4a000 - 00023db000]
[    0.000000]   #5 [00023db000 - 00024de000]   XEN START INFO ==> [00023db000 - 00024de000]
[    0.000000]   #6 [0020000000 - 0020800000]        XEN EXTRA ==> [0020000000 - 0020800000]
[    0.000000]   #7 [0001b20000 - 0001b2c000]              BRK ==> [0001b20000 - 0001b2c000]
[    0.000000]   #8 [0000100000 - 00001ec000]          PGTABLE ==> [0000100000 - 00001ec000]
[    0.000000] Zone PFN ranges:
[    0.000000]   DMA      0x00000000 -> 0x00001000
[    0.000000]   DMA32    0x00001000 -> 0x00100000
[    0.000000]   Normal   0x00100000 -> 0x00100000
[    0.000000] Movable zone start PFN for each node
[    0.000000] early_node_map[3] active PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00000001
[    0.000000]     0: 0x00000006 -> 0x000000a0
[    0.000000]     0: 0x00000100 -> 0x00020800
[    0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[    0.000000] No local APIC present
[    0.000000] APIC: disable apic facility
[    0.000000] PM: Registered nosave memory: 0000000000001000 - 0000000000006000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
[    0.000000] Allocating PCI resources starting at 20800000 (gap: 20800000:df800000)
[    0.000000] Booting paravirtualized kernel on Xen
[    0.000000] Xen version: 4.1.2 (preserve-AD)
[    0.000000] NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:1 nr_node_ids:1
[    0.000000] PERCPU: Embedded 29 pages/cpu @ffff88000252b000 s89240 r8192 d21352 u118784
[    0.000000] pcpu-alloc: s89240 r8192 d21352 u118784 alloc=29*4096
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130960
[    0.000000] Kernel command line: root=/dev/xvda ro 
[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[    0.000000] Initializing CPU#0
[    0.000000] Checking aperture...
[    0.000000] No AGP bridge found
[    0.000000] Memory: 491936k/532480k available (6041k kernel code, 404k absent, 39568k reserved, 3917k data, 528k init)
[    0.000000] SLUB: Genslabs=13, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:4352 nr_irqs:512
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [hvc0] enabled
[    0.000000] installing Xen timer for CPU 0
[    0.000000] Detected 2394.058 MHz processor.
[    0.000999] Calibrating delay loop (skipped), value calculated using timer frequency.. 4788.11 BogoMIPS (lpj=2394058)
[    0.000999] Security Framework initialized
[    0.000999] SELinux:  Initializing.
[    0.000999] Mount-cache hash table entries: 256
[    0.002380] Initializing cgroup subsys ns
[    0.002418] Initializing cgroup subsys cpuacct
[    0.002455] Initializing cgroup subsys freezer
[    0.003084] CPU: L1 I cache: 32K, L1 D cache: 32K
[    0.003129] CPU: L2 cache: 4096K
[    0.003156] CPU: Unsupported number of siblings 4
[    0.003181] Performance Events: unsupported p6 CPU model 15 no PMU driver, software events only.
[    0.003262] SMP alternatives: switching to UP code
[    0.004086] Freeing SMP alternatives: 35k freed
[    0.004382] cpu 0 spinlock event irq 510
[    0.006170] Brought up 1 CPUs
[    0.037397] Grant table initialized
[    0.084024] Time: 165:165:165  Date: 165/165/65
[    0.084381] NET: Registered protocol family 16
[    0.095985] PCI: setting up Xen PCI frontend stub
[    0.202969] bio: create slab <bio-0> at 0
[    0.202969] ACPI: Interpreter disabled.
[    0.202969] xen_balloon: Initialising balloon driver with page order 0.
[    0.202969] last_pfn = 0x20800 max_arch_pfn = 0x400000000
[    0.202969] vgaarb: loaded
[    0.202969] SCSI subsystem initialized
[    0.202969] usbcore: registered new interface driver usbfs
[    0.202969] usbcore: registered new interface driver hub
[    0.202969] usbcore: registered new device driver usb
[    0.202969] PCI: System does not support PCI
[    0.202969] PCI: System does not support PCI
[    0.202969] cfg80211: Using static regulatory domain info
[    0.202969] cfg80211: Regulatory domain: US
[    0.202969] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    0.202969] (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
[    0.202969] (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.202969] (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.202969] (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.202969] (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
[    0.202969] (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
[    0.202969] cfg80211: Calling CRDA for country: US
[    0.202969] NetLabel: Initializing
[    0.202969] NetLabel:  domain hash size = 128
[    0.202969] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.202969] NetLabel:  unlabeled traffic allowed by default
[    0.202969] Switching to clocksource xen
[    0.202969] pnp: PnP ACPI: disabled
[    0.202969] NET: Registered protocol family 2
[    0.202969] IP route cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.202969] TCP established hash table entries: 16384 (order: 6, 262144 bytes)
[    0.202969] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.202969] TCP: Hash tables configured (established 16384 bind 16384)
[    0.202969] TCP reno registered
[    0.202969] NET: Registered protocol family 1
[    0.202969] RPC: Registered udp transport module.
[    0.202969] RPC: Registered tcp transport module.
[    0.202969] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.202969] Trying to unpack rootfs image as initramfs...
[    0.202969] Freeing initrd memory: 7748k freed
[    0.202969] kvm: no hardware support
[    0.202969] has_svm: not amd
[    0.202969] kvm: no hardware support
[    0.202969] platform rtc_cmos: registered platform RTC device (no PNP device found)
[    0.202969] microcode: no support for this CPU vendor
[    0.202969] Scanning for low memory corruption every 60 seconds
[    0.202969] audit: initializing netlink socket (disabled)
[    0.202969] type=2000 audit(1345712022.603:1): initialized
[    0.202969] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.295994] VFS: Disk quotas dquot_6.5.2
[    0.296847] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.304156] msgmni has been set to 977
[    0.307628] alg: No test for stdrng (krng)
[    0.308250] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.308274] io scheduler noop registered
[    0.308291] io scheduler anticipatory registered
[    0.308309] io scheduler deadline registered
[    0.308947] io scheduler cfq registered (default)
[    0.309648] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    0.311043] Event-channel device installed.
[    0.315356] blktap_device_init: blktap device major 253
[    0.315382] blktap_ring_init: blktap ring major: 251
[    0.317583] registering netback
[    0.338690] Non-volatile memory driver v1.3
[    0.338775] Linux agpgart interface v0.103
[    0.339303] [drm] Initialized drm 1.1.0 20060810
[    0.339384] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.352573] brd: module loaded
[    0.358269] loop: module loaded
[    0.372654] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[    0.376020] Intel(R) PRO/1000 Network Driver - version 7.3.21-k5-NAPI
[    0.376041] Copyright (c) 1999-2006 Intel Corporation.
[    0.376347] e1000e: Intel(R) PRO/1000 Network Driver - 1.0.2-k2
[    0.376365] e1000e: Copyright (c) 1999-2008 Intel Corporation.
[    0.376817] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[    0.376834] e100: Copyright(c) 1999-2006 Intel Corporation
[    0.377528] sky2 driver version 1.25
[    0.377949] Initialising Xen virtual ethernet driver.
[    0.387402] blkfront: xvda: barriers enabled (tag)
[    0.391602]  xvda:
[    0.392806] tun: Universal TUN/TAP device driver, 1.6
[    0.392834] tun: (C) 1999-2004 Max Krasnyansky <maxk@xxxxxxxxxxxx>
[    0.393577] console [netcon0] enabled
[    0.393601] netconsole: network logging started
[    0.395542] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.395961] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.396410] uhci_hcd: USB Universal Host Controller Interface driver
[    0.397688] usbcore: registered new interface driver usblp
[    0.397722] Initializing USB Mass Storage driver...
[    0.398147] usbcore: registered new interface driver usb-storage
[    0.398173] USB Mass Storage support registered.
[    0.398523] usbcore: registered new interface driver libusual
[    0.399851] PNP: No PS/2 controller found. Probing ports directly.
[    0.400067] i8042.c: No controller found.
[    0.401602] mice: PS/2 mouse device common for all mice
[    0.417525]  unknown partition table
[    0.419724] rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
[    0.421776] wdt: Xen WatchDog Timer Driver v0.01
[    0.422583] wdt: initialized (timeout=60s, nowayout=0)
[    0.424036] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@xxxxxxxxxx
[    0.424648] cpuidle: using governor ladder
[    0.424665] cpuidle: using governor menu
[    0.432058] usbcore: registered new interface driver hiddev
[    0.432390] usbcore: registered new interface driver usbhid
[    0.432413] usbhid: v2.6:USB HID core driver
[    0.432732] Advanced Linux Sound Architecture Driver Version 1.0.21.
[    0.439820] ALSA device list:
[    0.439843]   No soundcards found.
[    0.440160] Netfilter messages via NETLINK v0.30.
[    0.440235] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[    0.442107] ctnetlink v0.93: registering with nfnetlink.
[    0.453086] ip_tables: (C) 2000-2006 Netfilter Core Team
[    0.453165] TCP cubic registered
[    0.453181] Initializing XFRM netlink socket
[    0.455536] NET: Registered protocol family 10
[    0.475034] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    0.475690] IPv6 over IPv4 tunneling driver
[    0.487124] NET: Registered protocol family 17
[    0.488495] registered taskstats version 1
[    0.488590]   Magic number: 1:252:3141
[    0.489435] Freeing unused kernel memory: 528k freed
[    0.489683] Write protecting the kernel read-only data: 9056k
Loading, please wait...
mount: mounting none on /dev failed: No such device
Begin: Loading essential drivers... ...
Done.
Begin: Running /scripts/init-premount ...
Done.
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Done.
Begin: Running /scripts/local-premount ...
Done.
[    6.118405] kjournald starting.  Commit interval 5 seconds
[    6.118553] EXT3-fs: mounted filesystem with writeback data mode.
Begin: Running /scripts/local-bottom ...
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
run-init: /sbin/init: No such file or directory
[    6.272833] Kernel panic - not syncing: Attempted to kill init!
[    6.272870] Pid: 1, comm: run-init Not tainted 2.6.32.57 #1
[    6.272888] Call Trace:
[    6.272919]  [<ffffffff8107758b>] panic+0xa0/0x168
[    6.272947]  [<ffffffff810b038e>] ? atomic_add_unless+0x29/0x42
[    6.272977]  [<ffffffff810a1166>] ? raw_local_irq_disable+0x19/0x1b
[    6.273005]  [<ffffffff81080350>] ? raw_local_irq_enable+0x19/0x1b
[    6.273032]  [<ffffffff81080362>] ? __write_unlock_irq+0x10/0x12
[    6.273062]  [<ffffffff81080cfd>] ? exit_ptrace+0x9c/0x10d
[    6.273089]  [<ffffffff810a1166>] ? raw_local_irq_disable+0x19/0x1b
[    6.273116]  [<ffffffff81078f29>] ? raw_local_irq_enable+0x19/0x1b
[    6.273143]  [<ffffffff8107a671>] do_exit+0x79/0x671
[    6.273170]  [<ffffffff8107ad26>] complete_and_exit+0x0/0x1e
[    6.273191]  [<ffffffff8103cc82>] system_call_fastpath+0x16/0x1b
-----------------------------------------------------------------------------

I've checked existence of file /sbin/init.
And I've searched Google but haven't found any solution.
Anyone can shed a little light to this? Any suggestions will be greatly appreciated, thanks in advance.

--
Best regards,

Yao-Jing Wen
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.