Kernel image does not exit :/tmp/kernel in SUSE XEN

Posted: August 30, 2014 in Kernel image does not exit: /tmp, SUSE

After installing Xen guests (DomU), the guest can not be started. The following error may be present:

ERROR: “Error: Kernel image does not exist: /tmp/kernel.SUMgkq”
Resolution

NOTE: In this example our guest is named SLES10. For this TID, replace SLES10 with the name of the virtual machine (“xm list” will show the names of all the virtual machines installed).

method 1: Edit Python files
This method is recommended per Novell documentation.
Navigate to a temporary directory.

Extract the python file:
xm list -l SLES10> sles10.py

Create a backup copy of the sles10.py; it may be needed later on.

Open sles10.py for editing.

Locate the bootloader_args parameter. It will most likely look like this:
( bootloader_args )
Replace it with
( bootloader_args’–entry=xvda1:/boot/vmlinuz-xen,/boot/initrd-xen’)

Locate the bootloader parameter. It will most likely look like this:
( bootloader )

Replace it with
( bootloader /usr/lib/xen/boot/domUloader.py )

Reload the new configuration file by typing

xm new -F sles10.py

Start the Xen guest

xm start SLES10

method 2: Configure /etc/xen/vm files

This method uses the same method as other Linux vendors, such as Red Hat.
Go to /etc/xen/vm

Locate the file with the guest’s name (not the .xml file)

Open the file for editing
Change bootloader=”” to
bootloader=”/usr/lib/xen/boot/domUloader.py”
Change bootloaderargs=”” to
bootargs=”–entry=xvda1:/boot/vmlinuz-xen,/boot/initrd-xen”
Save the file

Import the new file
xm new -f sles10

Start the Xen Guest
xm start sles10

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s