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

[Xen-users] invalid kernel errors while booting newly installed guest OS



Hello,

When I'm trying to boot with newly installed guest OS, I'm having the following error message.

sudo xm create /etc/xen/ubuntu.cfg -c
> Error: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')

I'm absolutely clueless and any help would be really appreciated.

Here goes the detail configuration.

1) I install ubuntu desktop 12.04 in a machine (32-bit intel Core 2 CPU with 2GB memory) 

2) install xen by 
  $ sudo apt-get install xen-hypervisor-4.1-i386 xen-tools xen-utils-4.1 xen-utils-common

3) reboot

4) xen looks working OK at dom0 and I check this with the following command
$ xm list
   Name                                        ID   Mem VCPUs      State   Time(s)
   Domain-0                                     0  1024     1     r-----    244.9

5) after creating logical volume using lvm (the dev is /dev/vgubuntu/ubuntu) make a configuration file (/etc/xen/ubuntu.cfg) as follows

name = "ubuntu"
memory = 512
disk = ['phy:/dev/vgubuntu/ubuntu,xvda,w']
vif = [' ']
kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz"
ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz"
extra = "debian-installer/exit/always_halt=true -- console=hvc0"

6) Download vmlinuz and initrd file as below and place them at /var/lib/xen/images/ubuntu-netboot/

$ wget http://kr.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/xen/initrd.gz

7) installing the guest os using the command below

sudo xm create /etc/xen/ubuntu.cfg -c

8) while installing, I set the filesystem ext3 in the guest OS.

9) everything looks normal. The console say the installation is completed.

10) After installing, I change the xen configuration file  (/etc/xen/ubuntu.cfg)  as follows. 

name = "ubuntu"
memory = 512
disk = ['phy:/dev/vgubuntu/ubuntu,xvda,w']
vif = [' ']
bootloader = "pygrub"

11) And, i try to boot the Guest OS for the first time, I see this error.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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