Erro Xen: VM com Kernel Panic

1. Erro Xen: VM com Kernel Panic

Samuel
samuelvieirasp

(usa Debian)

Enviado em 09/09/2014 - 20:21h

Boa noite caros,

Estou migrando o servidor e queria testar o Xen no Centos. Hoje em dia o Xen é rodado no Debian 7, tanto o hospedeiro, como as as VMs.

A situação atual é o seguinte, quero migrar as VMs Debian para o Centos. Fiz todas as confs, o Domain-0 tá online, desabilitei o SElinux no hospedeiro, entretanto quando inicio a VM me aparece o seguinte erro(cópia da tela):

Linux version 3.10.43-11.el6.centos.alt.x86_64 (mockbuild@bn4.alt.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Mon Jun 16 14:22:02 UTC 2014
Command line: root=/dev/xvda2 ro ip=:127.0.255.255::::eth0:dhcp
ACPI in unprivileged domain disabled
e820: BIOS-provided physical RAM map:
Xen: [mem 0x0000000000000000-0x000000000009ffff] usable
Xen: [mem 0x00000000000a0000-0x00000000000fffff] reserved
Xen: [mem 0x0000000000100000-0x00000000407fffff] usable
NX (Execute Disable) protection: active
DMI not present or invalid.
No AGP bridge found
e820: last_pfn = 0x40800 max_arch_pfn = 0x400000000
init_memory_mapping: [mem 0x00000000-0x000fffff]
init_memory_mapping: [mem 0x3fe00000-0x3fffffff]
init_memory_mapping: [mem 0x3c000000-0x3fdfffff]
init_memory_mapping: [mem 0x00100000-0x3bffffff]
init_memory_mapping: [mem 0x40000000-0x407fffff]
RAMDISK: [mem 0x024fc000-0x058e8fff]
NUMA turned off
Faking a node at [mem 0x0000000000000000-0x00000000407fffff]
Initmem setup node 0 [mem 0x00000000-0x407fffff]
NODE_DATA [mem 0x3fe08000-0x3fe2efff]
Zone ranges:
DMA [mem 0x00001000-0x00ffffff]
DMA32 [mem 0x01000000-0xffffffff]
Normal empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x00001000-0x0009ffff]
node 0: [mem 0x00100000-0x407fffff]
SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
smpboot: Allowing 4 CPUs, 0 hotplug CPUs
No local APIC present
APIC: disable apic facility
APIC: switched to apic NOOP
PM: Registered nosave memory: 00000000000a0000 - 0000000000100000
e820: [mem 0x40800000-0xffffffff] available for PCI devices
Booting paravirtualized kernel on Xen
Xen version: 4.2.4-33.el6 (preserve-AD)
setup_percpu: NR_CPUS:4096 nr_cpumask_bits:4 nr_cpu_ids:4 nr_node_ids:1
PERCPU: Embedded 29 pages/cpu @ffff88003f800000 s86144 r8192 d24448 u524288
Built 1 zonelists in Node order, mobility grouping on. Total pages: 260461
Policy zone: DMA32
Kernel command line: root=/dev/xvda2 ro ip=:127.0.255.255::::eth0:dhcp
PID hash table entries: 4096 (order: 3, 32768 bytes)
Checking aperture...
No AGP bridge found
Memory: 956452k/1056768k available (6165k kernel code, 388k absent, 99928k reserved, 7260k data, 1872k init)
Hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4096 to nr_cpu_ids=4.
NR_IRQS:262400 nr_irqs:304 16
Console: colour dummy device 80x25
console [tty0] enabled
console [hvc0] enabled
allocated 4718592 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
installing Xen timer for CPU 0
tsc: Detected 2906.646 MHz processor
tsc: Marking TSC unstable due to TSCs unsynchronized
Calibrating delay loop (skipped), value calculated using timer frequency.. 5813.29 BogoMIPS (lpj=2906646)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux: Initializing.
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Mount-cache hash table entries: 256
Initializing cgroup subsys memory
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys net_cls
Initializing cgroup subsys blkio
Initializing cgroup subsys perf_event
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
Last level iTLB entries: 4KB 512, 2MB 8, 4MB 4
Last level dTLB entries: 4KB 512, 2MB 8, 4MB 4
tlb_flushall_shift: 4
ftrace: allocating 25252 entries in 99 pages
Performance Events:
no APIC, boot with the "lapic" boot parameter to force-enable it.
no hardware sampling interrupt available.
Broken PMU hardware detected, using software events only.
Failed to access perfctr msr (MSR c0010004 is 0)
NMI watchdog: disabled (cpu0): hardware events not enabled
installing Xen timer for CPU 1
SMP alternatives: switching to SMP code
installing Xen timer for CPU 2
installing Xen timer for CPU 3
Brought up 4 CPUs
devtmpfs: initialized
Grant tables using version 2 layout.
Grant table initialized
regulator-dummy: no parameters
NET: Registered protocol family 16
PCI: setting up Xen PCI frontend stub
bio: create slab <bio-0> at 0
ACPI: Interpreter disabled.
xen/balloon: Initialising balloon driver.
xen-balloon: Initialising balloon driver.
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: System does not support PCI
PCI: System does not support PCI
NetLabel: Initializing
NetLabel: domain hash size = 128
NetLabel: protocols = UNLABELED CIPSOv4
NetLabel: unlabeled traffic allowed by default
Switching to clocksource xen
pnp: PnP ACPI: disabled
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 5, 131072 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 53172k freed
platform rtc_cmos: registered platform RTC device (no PNP device found)
audit: initializing netlink socket (disabled)
type=2000 audit(1410304700.286:1): initialized
bounce pool size: 64 pages
HugeTLB registered 2 MB page size, pre-allocated 0 pages
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
msgmni has been set to 1971
alg: No test for stdrng (krng)
Key type asymmetric registered
Asymmetric key parser 'x509' registered
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.4
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
Non-volatile memory driver v1.3
Linux agpgart interface v0.103
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
libphy: Fixed MDIO Bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
i8042: PNP: No PS/2 controller found. Probing ports directly.
i8042: No controller found
mousedev: PS/2 mouse device common for all mice
rtc_cmos rtc_cmos: rtc core: registered rtc_cmos as rtc0
rtc_cmos: probe of rtc_cmos failed with error -38
ledtrig-cpu: registered to indicate activity on CPUs
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
registered taskstats version 1
IMA: No TPM chip found, activating TPM-bypass!
XENBUS: Device with no driver: device/vbd/51714
XENBUS: Device with no driver: device/vbd/51713
XENBUS: Device with no driver: device/vif/0
regulator-dummy: incomplete constraints, leaving on
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing unused kernel memory: 1872k freed
Write protecting the kernel read-only data: 12288k
Freeing unused kernel memory: 2016k freed
Freeing unused kernel memory: 1160k freed
dracut: dracut-004-335.el6
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
udev: starting version 147
udevd (97): /proc/97/oom_adj is deprecated, please use /proc/97/oom_score_adj instead.
dracut: Starting plymouth daemon
blkfront: xvda2: flush diskcache: enabled using persistent grants
blkfront: xvda1: flush diskcache: enabled using persistent grants
kjournald starting. Commit interval 5 seconds
EXT3-fs (xvda2): mounted filesystem with ordered data mode
dracut: Remounting /dev/xvda2 with -o noatime,nodiratime,errors=remount-ro,ro
kjournald starting. Commit interval 5 seconds
EXT3-fs (xvda2): mounted filesystem with ordered data mode
dracut: Mounted root filesystem /dev/xvda2
dracut FATAL: Machine in enforcing mode and cannot execute load_policy. To disable selinux, add selinux=0 to the kernel command line.
dracut Warning:

dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line.


dracut Warning: Signal caught!

dracut Warning: Boot has failed. To debug this issue add "rdshell" to the kernel command line.
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100

CPU: 0 PID: 1 Comm: init Not tainted 3.10.43-11.el6.centos.alt.x86_64 #1
ffffffff81c3fe60 ffff88003d6b7d98 ffffffff815f4aaa ffff88003d6b7e18
ffffffff815f484b ffffffff00000010 ffff88003d6b7e28 ffff88003d6b7dc8
ffffffff81127f6e ffff88003d6b7de8 0000000000000100 ffff88003d6b5ab0
Call Trace:
[<ffffffff815f4aaa>] dump_stack+0x19/0x1f
[<ffffffff815f484b>] panic+0xc4/0x1e4
[<ffffffff81127f6e>] ? __perf_cgroup_move+0xe/0x20
[<ffffffff8105f77c>] find_new_reaper+0x17c/0x180
[<ffffffff8105ff95>] forget_original_parent+0x45/0x2d0
[<ffffffff81127f60>] ? perf_cgroup_switch+0x180/0x180
[<ffffffff81060237>] exit_notify+0x17/0x140
[<ffffffff81061bfb>] do_exit+0x1fb/0x480
[<ffffffff81061ed5>] do_group_exit+0x55/0xd0
[<ffffffff81061f67>] SyS_exit_group+0x17/0x20
[<ffffffff81600ed9>] system_call_fastpath+0x16/0x1b


Desde já agradeço a atenção de todos.



  


2. Re: Erro Xen: VM com Kernel Panic

Patrick Ernandes
patrickernandes

(usa Debian)

Enviado em 09/09/2014 - 21:37h

ola,

Samuel, pq vc já não migra para XenServer (http://www.xenserver.org) de uma vez.. acho que dá menos trabanho pra instalar e manter o controle.
Eu uso servidores de virtualização com Xen ou KVM, cada um tem suas particularidades, até mesmo pra ter compatibilidade de hardware e nao contar somente com uma opção.
Fica ai a sugestão.

Abraços..


3. Re: Erro Xen: VM com Kernel Panic

Samuel
samuelvieirasp

(usa Debian)

Enviado em 17/09/2014 - 23:17h

Ola Patrick, O xenserver é pago, não?

Abraço,


4. Re: Erro Xen: VM com Kernel Panic

Patrick Ernandes
patrickernandes

(usa Debian)

Enviado em 18/09/2014 - 10:05h

ola,

Não é pago! Você pode optar por pagar se querer um suporte 24x7. Tanto o XenCenter como também o Xen Orchestra para administração não são pagos.
Os updates são liberados para qualquer um realizar o download. Até hoje não tive problemas em realizar updates, todos foram instalados conforme liberados e a estabilidade sempre permanece.
É uma ótima opção o XenServer, como também o KVM com libvirt.

Abraços..




5. Re: Erro Xen: VM com Kernel Panic

Faustino
Faustoncc1701

(usa CentOS)

Enviado em 26/04/2016 - 20:35h

Eu já visso acontecer faça dessa forma

1 - Na tela do grub do servidor, adicionar o parametro rdshell e iniciar o servidor.

2 - No prompt do dracut executar:

dracut#> rm -f /etc/lvm/lvm.conf

dracut#> lvm lvmdiskscan

dracut#> lvm pvscan

dracut#> lvm vgchange -ay

3 - Confirmar se o /dev/root está com o link para o root:

dracut#> ls -l /dev/root

4 - Sair do prompt para iniciar o servidor:

dracut#> exit

5 - O servidor será iniciado no modo padrão (init 3).


Fausto
Diga-me Eu não posso e eu vou te mostrar que eu posso ...






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts