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

Re: [Xen-API] RuntimeError: Unable to find partition containing kernel

  • To: xen-api@xxxxxxxxxxxxx
  • From: George Shuklin <george.shuklin@xxxxxxxxx>
  • Date: Mon, 18 Jun 2012 16:39:49 +0400
  • Delivery-date: Mon, 18 Jun 2012 12:40:01 +0000
  • List-id: User and development list for XCP and XAPI <xen-api.lists.xen.org>

On 18.06.2012 15:54, Massimo Canonico wrote:

On 06/18/2012 01:10 PM, George Shuklin wrote:
On 18.06.2012 14:52, Massimo Canonico wrote:
I was able to start a VM with squeeze template, even if the console hangs after few steps on installation procedure (but I will work on this later). Now the problem is when I destroy a VM with:
xl destroy 10

it becomes "halted":

uuid ( RO)           : 61c9aad3-e040-67c7-a5ab-db8b41ab4cec
     name-label ( RW): myVM
    power-state ( RO): halted

and I'm not able to re-start it, since I got this error:
[root@minicloud ~]# xe vm-start vm=myVM
Error code: WARNING: /dev/xvda is not a disk image
Error parameters: Traceback (most recent call last):, File "/usr/bin/pygrub", line 746, in ?, raise RuntimeError, "Unable to find partition containing kernel", RuntimeError: Unable to find partition containing kernel,

Googoling this problem I've tried to run this command in order to fix it:
 EDITOR=vi xe-edit-bootloader -n myVM -p 1

with no luck: the error is stille there.

Any suggestion?

Did you finish installation? If you kill VM before it creates partitions, bootloader, put kernel in /boot and other installation job, there is nothing to 'boot from'.
Yes, you were right!
Actually one of the problem is related to the fact that I'm not able to finish the installation procedure: the "xl console <vm-name>" hangs after 2/3 steps.

You using it wrong. xl in XCP is artifact and you need understand very well of xapi internals to know when you can use or when you can not.

Hint #1: create new vm and add to other-config:disable_pv_vnc=true before first run. This make 'xl console' works fine.
Hint #2: http://wiki.xen.org/wiki/Xen_Cloud_Platform:_Access_to_VM_console

Xen-api mailing list



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