jaeyong yoo
2012-Jul-12 11:21 UTC
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 loadimages 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 $ wget http://kr.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/xen/vmlinuz 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@lists.xen.org http://lists.xen.org/xen-users
jaeyong yoo
2012-Jul-13 02:14 UTC
invalid kernel errors while booting newly installed guest OS
* I''m trying to post this message, but I''m not sure it is posted or not. My mail account does not show this message is arrived. * If someone see this message, please just simply reply this for me. 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 loadimages 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 $ wget http://kr.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/xen/vmlinuz 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@lists.xen.org http://lists.xen.org/xen-users
Jakub Kulesza
2012-Jul-13 07:30 UTC
Re: invalid kernel errors while booting newly installed guest OS
Did you install xen compatible kernel inside the guest OS during step 7 and 8? What did you use the kernel and initrd ftom step 6? You can also scrap that and try installing xen-tools in your dom0 and using xen-create-image. It works excelent for creating xen domU-s. regards 2012/7/13 jaeyong yoo <y.jaeyong@gmail.com>> * I''m trying to post this message, but I''m not sure it is posted or not. > My mail account does not show this message is arrived. > * If someone see this message, please just simply reply this for me. > > 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 > $ wget > http://kr.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386/current/images/netboot/xen/vmlinuz > > 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@lists.xen.org > http://lists.xen.org/xen-users >-- Pozdrawiam Jakub Kulesza _______________________________________________ Xen-users mailing list Xen-users@lists.xen.org http://lists.xen.org/xen-users