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

anoop Lekshmanan anpl1980 at gmail.com
Fri Feb 4 12:04:03 PST 2011


Thanks Steve.

I tried to boot using pyGrub and that did not work for me. I have prepared a
CentOS.img created using virt-install and registered with oneimage.

Could you please share how can I use guest's kernel.

Thanks again.

Anoop





On Sat, Feb 5, 2011 at 1:00 AM, Steven Timm <timm at fnal.gov> wrote:

>
> The error you are getting is probably due to a malformed ramdisk
> for your Xen kernel. Likely what is happening is that the ramdisk
> is trying to load the real scsi device as sda1  rather than the xenblk
> block device.  Try to replace the ramdisk and see if you do any better.
> I had this same error a while ago and building a ramdisk on a xen
> VM that was installed statically is what it took for me to make it work.
>
> Also, just so you know, when you say  KERNEL = /boot/vmlinuz....
> etc, then the kernel and ramdisk have to be in that location
> on your VM host, not inside the LVM you are trying to boot.
> If you want to use the kernel/ramdisk inside the xen virtual machine
> then you should use pygrub, which is what I use.
>
> Steve
>
>
>
> On Sat, 5 Feb 2011, anoop Lekshmanan wrote:
>
>  I get this error on loading ttylinux or any other image in to Xen Node and
>> LVM, I have tried native kernel as well, but that did not work.
>>
>> device-mapper: uevent: version 1.0.3
>> device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised:
>> dm-devel at redhat.com
>> device-mapper: dm-raid45: initialized v0.2594l
>> Kernel panic - not syncing: Attempted to kill init!
>>
>> My VM template:
>>
>> NAME   = test
>> CPU    = 1
>> MEMORY = 256
>> OS = [
>>      KERNEL     = /boot/vmlinuz-2.6.18-194.32.1.el5xen,
>>      INITRD     = /boot/initrd-2.6.18-194.32.1.el5xen.img,
>>      ROOT       = /dev/vg00/lv-one--0
>>      #BOOTLOADER  = /usr/bin/pygrub,
>>      #KERNEL_CMD = "ro"
>>    ]
>>
>> DISK   = [
>>  IMAGE    = "ttylin",
>>  #source   = "/dev/vg00/xenvm01",
>>  target   = "hdb",
>>  readonly = "no" ]
>>
>> NIC    = [ NETWORK = "Small network" ]
>>
>> FEATURES=[ acpi="no" ]
>>
>> GRAPHICS=[
>>  AUTOPORT=yes,
>>  KEYMAP=en-us,
>>  LISTEN=127.0.0.1,
>>  PORT=5901,
>>  TYPE=vnc ]
>>
>> #CONTEXT = [
>> #    hostname    = "$NAME",
>> #     ip_public   = "192.168.0.16",
>> #    files      = "/opt/cloud/one/images/init.sh
>> /opt/cloud/one/.ssh/id_rsa.pub",
>> #    target      = "hdc",
>> #    root_pubkey = "id_rsa.pub",
>> #    username    = "oneadmin",
>> #    user_pubkey = "id_rsa.pub"
>>
>> VM deployment file generated:
>>
>> name = 'one-65'
>> #O CPU_CREDITS = 256
>> memory  = '256'
>> kernel = '/boot/vmlinuz-2.6.18-194.32.1.el5xen'
>> ramdisk = '/boot/initrd-2.6.18-194.32.1.el5xen.img'
>> root = '/dev//dev/vg00/lv-one--0'
>> disk = [
>>   'tap:aio:/opt/cloud/one/var//65/images/disk.0,hdb,w',
>> ]
>> vif = [
>>   ' mac=02:00:c0:a8:1e:06,ip=192.168.30.6,bridge=xenbr0',
>> ]
>> vfb = ['type=vnc,vnclisten=127.0.0.1,vncdisplay=1,keymap=en-us']
>>
>>
>>
>> I am trying to load this in to LVM and ONE creates the LV successfully and
>> VM state ins "RUNN"
>>
>> Any help would be appreciated.
>>
>> Thanks,
>> Anoop
>>
>>
> --
> ------------------------------------------------------------------
> Steven C. Timm, Ph.D  (630) 840-8525
> timm at fnal.gov  http://home.fnal.gov/~timm/
> Fermilab Computing Division, Scientific Computing Facilities,
> Grid Facilities Department, FermiGrid Services Group, Group Leader.
> Lead of FermiCloud project.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110205/6f5fc3cf/attachment-0003.htm>


More information about the Users mailing list