qemu-discuss
[Top][All Lists]
Advanced

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

[Qemu-discuss] Boot fail after compiling the Kernel.


From: John Y.
Subject: [Qemu-discuss] Boot fail after compiling the Kernel.
Date: Fri, 29 Jul 2016 10:16:40 +0800

Hi, 

I have a centos 5.8 guest with 2.6.18 kernel.
I compiled the kernel 2.6.35.4 and boot from it.

(It could boot successfully in my labtop, but fail in guest created by qemu-kvm)
But I get errors:


Kernel panic - not syncing : Attempted to kill the idle task!
Pid :0, comm: swapper Tainted: G           D             2.6.35..4#2
Call Trace:
 [<c043127c>] ? panic+0x50/0xc1
 [<c0433df8>] ? do_exit+0x5b/0x2b3
 [<c069c1ed>] ? opps_end+0x90/0x94
 [<c069beea>] ? do_general_protection+0x0/0x106
 [<c069b8b6>] ? error_code+0x66/0x6c
 [<c069beea>] ? do_general_protection+0x0/0x106
 [<c08680b0>] ? intel_pmu_init+0x110/0x2c3
 [<c086828d>] ? init_hw_perf_events+0x2a/0x27d
 [<c0867e73>] ? check_bugs+0x5/0x2e
 [<c08618b0>] ? start_kernel+0x21b/0x227


Mylibvirt.xml:

<domain type='kvm' id='160'>
  <name>i-centos5</name>
  <uuid>d5e33a85-33d7-41e8-b68f-c87b87986f50</uuid>
  <memory unit='KiB'>1048576</memory>
  <currentMemory unit='KiB'>1048576</currentMemory>
  <vcpu placement='static'>4</vcpu>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>
    <boot dev='hd'/>
    <boot dev='cdrom'/>
  </os>
  <features>
    <acpi/>
  </features>
  <cpu mode='host-passthrough'/>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/root/yaowj/i-centos5/snap2.qcow2'/>
      <backingStore type='file' index='1'>
        <format type='raw'/>
        <source file='/home/centos5.qcow2'/>
        <backingStore/>
      </backingStore>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <interface type='bridge'>
      <mac address='fa:16:3e:81:00:01'/>
      <source bridge='eucabr'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <driver name='qemu'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/7'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/7'>
      <source path='/dev/pts/7'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='cirrus' vram='16384' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </memballoon>
  </devices>
</domain>



/usr/libexec/qemu-kvm --version
QEMU emulator version 1.5.3 (qemu-kvm-1.5.3-105.el7_2.3), Copyright (c) 2003-2008 Fabrice Bellard


host:
uname -a
Linux gcloud38122 4.2.0-1.el7.elrepo.x86_64 #1 SMP Sun Aug 30 21:25:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux



How can I boot from a new kernel?

Thanks,
John

reply via email to

[Prev in Thread] Current Thread [Next in Thread]