Hi All,
I'm trying to boot Ubuntu 12.04 LTS precise i386 as domU after a clean installation on Fedora F17 and/or F18 dom0 fully updated. Ubuntu precise was installed with
virt-install --debug --connect xen:/// -n Ubuntu12LTS4 --nographics --vcpus=2 -r 1024 --arch=i686 -l http://ca.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386 --network bridge=peth0 --os-type=linux --os-variant=ubuntuprecise --disk /dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2011-01.it.tekno-soft:xen.vm.Ubuntu-lun-4
After a clean instllation I'm unable to boot anymore the new domU. BTW I was able to install and boot clean the 64bits version of the same distribution.
Do you have any suggestion how to solve this?
Thanks in advance. Roberto Fichera.
------>>>> start installation [2013-03-04 19:16:53 875] DEBUG (XendDomainInfo:103) XendDomainInfo.create(['vm', ['name', 'Ubuntu12LTS4'], ['memory', '1024'], ['maxmem', '1024'], ['vcpus', '2'], ['uuid', '4c46f867-161a-c593-eb1d-0ac7494ae5d6'], ['on_poweroff', 'destroy'], ['on_reboot', 'destroy'], ['on_crash', 'destroy'], ['image', ['linux', ['kernel', '/var/lib/xen/virtinst-vmlinuz.DbC4dh'], ['ramdisk', '/var/lib/xen/virtinst-initrd.gz.loYsS3'], ['args', 'method=http://ca.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386'], ['localtime', '0']]], ['localtime', '0'], ['device', ['vbd', ['dev', 'xvda'], ['uname', 'phy:/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2011-01.it.tekno-soft:xen.vm.Ubuntu-lun-4'], ['mode', 'w']]], ['device', ['vif', ['mac', '00:16:3e:78:72:3d'], ['bridge', 'peth0'], ['script', 'vif-bridge']]]]) [2013-03-04 19:16:53 875] DEBUG (XendDomainInfo:2499) XendDomainInfo.constructDomain [2013-03-04 19:16:53 875] DEBUG (balloon:172) Balloon: tmem relinquished -1 KiB of 11748 KiB requested. [2013-03-04 19:16:53 875] DEBUG (balloon:193) Balloon: 4636 KiB free; 0 to scrub; need 16384; retries: 20. [2013-03-04 19:16:53 875] DEBUG (balloon:207) Balloon: setting dom0 target to 7987 MiB. [2013-03-04 19:16:53 875] DEBUG (XendDomainInfo:1467) Setting memory target of domain Domain-0 (0) to 7987 MiB. [2013-03-04 19:16:53 875] DEBUG (balloon:187) Balloon: 16924 KiB free; need 16384; done. [2013-03-04 19:16:53 875] DEBUG (XendDomain:476) Adding Domain: 2 [2013-03-04 19:16:53 875] DEBUG (XendDomainInfo:2842) XendDomainInfo.initDomain: 2 256 [2013-03-04 19:16:53 875] DEBUG (XendDomainInfo:2869) _initDomain:shadow_memory=0x0, memory_static_max=0x40000000, memory_static_min=0x0. [2013-03-04 19:16:53 875] DEBUG (balloon:172) Balloon: tmem relinquished -1 KiB of 1031848 KiB requested. [2013-03-04 19:16:53 875] DEBUG (balloon:193) Balloon: 16728 KiB free; 0 to scrub; need 1048576; retries: 20. [2013-03-04 19:16:53 875] DEBUG (balloon:207) Balloon: setting dom0 target to 6979 MiB. [2013-03-04 19:16:53 875] DEBUG (XendDomainInfo:1467) Setting memory target of domain Domain-0 (0) to 6979 MiB. [2013-03-04 19:16:54 875] DEBUG (balloon:193) Balloon: 209240 KiB free; 0 to scrub; need 1048576; retries: 20. [2013-03-04 19:16:54 875] DEBUG (balloon:207) Balloon: setting dom0 target to 6975 MiB. [2013-03-04 19:16:54 875] DEBUG (XendDomainInfo:1467) Setting memory target of domain Domain-0 (0) to 6975 MiB. [2013-03-04 19:16:54 875] DEBUG (balloon:193) Balloon: 606552 KiB free; 0 to scrub; need 1048576; retries: 20. [2013-03-04 19:16:54 875] INFO (image:186) buildDomain os=linux dom=2 vcpus=2 [2013-03-04 19:16:54 875] DEBUG (image:725) domid = 2 [2013-03-04 19:16:54 875] DEBUG (image:726) memsize = 1024 [2013-03-04 19:16:54 875] DEBUG (image:727) image = /var/lib/xen/virtinst-vmlinuz.DbC4dh [2013-03-04 19:16:54 875] DEBUG (image:728) store_evtchn = 1 [2013-03-04 19:16:54 875] DEBUG (image:729) console_evtchn = 2 [2013-03-04 19:16:54 875] DEBUG (image:730) cmdline = method=http://ca.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386 [2013-03-04 19:16:54 875] DEBUG (image:731) ramdisk = /var/lib/xen/virtinst-initrd.gz.loYsS3 [2013-03-04 19:16:54 875] DEBUG (image:732) vcpus = 2 [2013-03-04 19:16:54 875] DEBUG (image:733) features = [2013-03-04 19:16:54 875] DEBUG (image:734) flags = 0 [2013-03-04 19:16:54 875] DEBUG (image:735) superpages = 0 [2013-03-04 19:16:55 875] INFO (XendDomainInfo:2358) createDevice: vbd : {'uuid': 'fa2a9871-4d1b-deb4-c39d-b00f0900f752', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'xvda', 'uname': 'phy:/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2011-01.it.tekno-soft:xen.vm.Ubuntu-lun-4', 'mode': 'w'} [2013-03-04 19:16:55 875] DEBUG (DevController:95) DevController: writing {'virtual-device': '51712', 'device-type': 'disk', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/2/51712'} to /local/domain/2/device/vbd/51712. [2013-03-04 19:16:55 875] DEBUG (DevController:97) DevController: writing {'domain': 'Ubuntu12LTS4', 'frontend': '/local/domain/2/device/vbd/51712', 'uuid': 'fa2a9871-4d1b-deb4-c39d-b00f0900f752', 'bootable': '1', 'dev': 'xvda', 'state': '1', 'params': '/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2011-01.it.tekno-soft:xen.vm.Ubuntu-lun-4', 'mode': 'w', 'online': '1', 'frontend-id': '2', 'type': 'phy'} to /local/domain/0/backend/vbd/2/51712. [2013-03-04 19:16:55 875] INFO (XendDomainInfo:2358) createDevice: vif : {'bridge': 'peth0', 'mac': '00:16:3e:78:72:3d', 'uuid': '00ee7c72-6495-aeeb-b85b-78b8cf2e8f3a', 'script': 'vif-bridge'} [2013-03-04 19:16:55 875] DEBUG (DevController:95) DevController: writing {'mac': '00:16:3e:78:72:3d', 'handle': '0', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/2/0'} to /local/domain/2/device/vif/0. [2013-03-04 19:16:55 875] DEBUG (DevController:97) DevController: writing {'bridge': 'peth0', 'domain': 'Ubuntu12LTS4', 'handle': '0', 'uuid': '00ee7c72-6495-aeeb-b85b-78b8cf2e8f3a', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:78:72:3d', 'frontend-id': '2', 'state': '1', 'online': '1', 'frontend': '/local/domain/2/device/vif/0'} to /local/domain/0/backend/vif/2/0. [2013-03-04 19:16:55 875] DEBUG (XendDomainInfo:3426) Storing VM details: {'on_xend_stop': 'ignore', 'pool_name': 'Pool-0', 'shadow_memory': '0', 'uuid': '4c46f867-161a-c593-eb1d-0ac7494ae5d6', 'on_reboot': 'destroy', 'start_time': '1362421015.27', 'on_poweroff': 'destroy', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'destroy', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'bootloader': '', 'image': "(linux (kernel /var/lib/xen/virtinst-vmlinuz.DbC4dh) (ramdisk /var/lib/xen/virtinst-initrd.gz.loYsS3) (args 'method=http://ca.archive.ubuntu.com/ubuntu/dists/precise/main/installer-i386') (superpages 0) (pci ()) (localtime 0) (nomigrate 0) (tsc_mode 0) (notes (HV_START_LOW 4118806528) (FEATURES '!writable_page_tables|pae_pgdir_above_4gb') (VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 0) (GUEST_OS linux) (HYPERCALL_PAGE 3222282240) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3231150080) (XEN_VERSION xen-3.0)))", 'name': 'Ubuntu12LTS4'} [2013-03-04 19:16:55 875] DEBUG (XendDomainInfo:1795) Storing domain details: {'console/ring-ref': '3995592', 'image/entry': '3231150080', 'console/port': '2', 'store/ring-ref': '3995593', 'image/loader': 'generic', 'vm': '/vm/4c46f867-161a-c593-eb1d-0ac7494ae5d6', 'control/platform-feature-multiprocessor-suspend': '1', 'image/hv-start-low': '4118806528', 'image/guest-os': 'linux', 'cpu/1/availability': 'online', 'image/virt-base': '3221225472', 'memory/target': '1048576', 'image/guest-version': '2.6', 'control/platform-feature-xs_reset_watches': '1', 'image/pae-mode': 'yes', 'description': '', 'console/limit': '1048576', 'image/paddr-offset': '0', 'image/hypercall-page': '3222282240', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': '1', 'image/features/writable-page-tables': '0', 'console/type': 'xenconsoled', 'name': 'Ubuntu12LTS4', 'domid': '2', 'image/xen-version': 'xen-3.0', 'store/port': '1'} [2013-03-04 19:16:55 875] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/2/0'} to /local/domain/2/device/console/0. [2013-03-04 19:16:55 875] DEBUG (DevController:97) DevController: writing {'domain': 'Ubuntu12LTS4', 'frontend': '/local/domain/2/device/console/0', 'uuid': '5dd32309-9c65-6ffd-29f5-911184f95f09', 'frontend-id': '2', 'state': '1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/2/0. [2013-03-04 19:16:55 875] DEBUG (XendDomainInfo:1882) XendDomainInfo.handleShutdownWatch [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices tap2. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices vif. [2013-03-04 19:16:55 875] DEBUG (DevController:144) Waiting for 0. [2013-03-04 19:16:55 875] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status. [2013-03-04 19:16:55 875] DEBUG (DevController:642) hotplugStatusCallback 1. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices vkbd. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices ioports. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices tap. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices vif2. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices console. [2013-03-04 19:16:55 875] DEBUG (DevController:144) Waiting for 0. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices vscsi. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices vbd. [2013-03-04 19:16:55 875] DEBUG (DevController:144) Waiting for 51712. [2013-03-04 19:16:55 875] DEBUG (DevController:628) hotplugStatusCallback /local/domain/0/backend/vbd/2/51712/hotplug-status. [2013-03-04 19:16:55 875] DEBUG (DevController:642) hotplugStatusCallback 1. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices irq. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices vfb. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices pci. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices vusb. [2013-03-04 19:16:55 875] DEBUG (DevController:139) Waiting for devices vtpm. [2013-03-04 19:16:55 875] INFO (XendDomain:1225) Domain Ubuntu12LTS4 (2) unpaused. ------<<<<< end installation
------>>>>> boot after installation [2013-03-04 19:16:55 875] DEBUG (XendDomainInfo:260) XendDomainInfo.createDormant({'vcpus_params': {'cap': 0, 'weight': 256}, 'PV_args': '', 'features': '', 'cpus': [[], []], 'use_tmp_kernel': False, 'devices': {'83fdcc8b-0531-a070-31c1-fcbfb1c0f5a1': ('vbd', {'uuid': '83fdcc8b-0531-a070-31c1-fcbfb1c0f5a1', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'xvda', 'uname': 'phy:/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2011-01.it.tekno-soft:xen.vm.Ubuntu-lun-4', 'mode': 'w'}), 'd77894b3-f8bb-0c8a-cab8-8abe749b5123': ('vif', {'bridge': 'peth0', 'mac': '00:16:3e:78:72:3d', 'uuid': 'd77894b3-f8bb-0c8a-cab8-8abe749b5123', 'script': 'vif-bridge'})}, 'memory_sharing': 0, 'superpages': 0, 'VCPUs_live': 1, 'PV_bootloader': '/usr/bin/pygrub', 'actions_after_crash': 'restart', 'vbd_refs': ['83fdcc8b-0531-a070-31c1-fcbfb1c0f5a1'], 'PV_ramdisk': '', 'is_control_domain': False, 'name_label': 'Ubuntu12LTS4', 'VCPUs_at_startup': 1, 'HVM_boot_params': {}, 'platform': {'tsc_mode': 0, 'nomigrate': 0, 'localtime': '0'}, 'PV_kernel': '', 'console_refs': [], 'on_xend_stop': 'ignore', 'pool_name': 'Pool-0', 'memory_static_min': 0, 'HVM_boot_policy': '', 'description': '', 'VCPUs_max': 2, 'memory_static_max': 1073741824, 'actions_after_shutdown': 'destroy', 'use_tmp_ramdisk': False, 'on_xend_start': 'ignore', 'memory_dynamic_max': 1073741824, 'actions_after_suspend': '', 'is_a_template': False, 'PV_bootloader_args': '', 'memory_dynamic_min': 1073741824, 'uuid': '4c46f867-161a-c593-eb1d-0ac7494ae5d6', 'shadow_memory': 0, 'target': 0, 'vcpu_avail': 3, 'other_config': {}, 'auto_power_on': False, 'actions_after_reboot': 'restart', 'Description': '', 'vif_refs': ['d77894b3-f8bb-0c8a-cab8-8abe749b5123'], 'vtpm_refs': []}) [2013-03-04 19:16:55 875] DEBUG (XendDomain:1036) Creating new managed domain: Ubuntu12LTS4 [2013-03-04 19:37:03 875] INFO (XendDomainInfo:2079) Domain has shutdown: name=Ubuntu12LTS4 id=2 reason=reboot. [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:3077) XendDomainInfo.destroy: domid=2 [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:2402) Destroying device model [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:2409) Releasing devices [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:2415) Removing vif/0 [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:2415) Removing console/0 [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0 [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:2415) Removing vbd/51712 [2013-03-04 19:37:03 875] DEBUG (XendDomainInfo:1276) XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51712 [2013-03-04 19:37:11 875] DEBUG (SrvDomain:76) Starting domain Ubuntu12LTS4 False [2013-03-04 19:37:11 875] DEBUG (XendDomainInfo:2499) XendDomainInfo.constructDomain [2013-03-04 19:37:11 875] DEBUG (balloon:187) Balloon: 1053208 KiB free; need 16384; done. [2013-03-04 19:37:11 875] DEBUG (XendDomain:476) Adding Domain: 3 [2013-03-04 19:37:11 875] DEBUG (XendDomainInfo:2842) XendDomainInfo.initDomain: 3 256 [2013-03-04 19:37:11 7673] DEBUG (XendBootloader:113) Launching bootloader as ['/usr/bin/pygrub', '--output=/var/run/xend/boot/xenbl.639', '/dev/disk/by-path/ip-10.0.0.1:3260-iscsi-iqn.2011-01.it.tekno-soft:xen.vm.Ubuntu-lun-4']. [2013-03-04 19:37:12 875] DEBUG (XendDomainInfo:2869) _initDomain:shadow_memory=0x0, memory_static_max=0x40000000, memory_static_min=0x0. [2013-03-04 19:37:12 875] INFO (image:186) buildDomain os=linux dom=3 vcpus=2 [2013-03-04 19:37:12 875] DEBUG (image:725) domid = 3 [2013-03-04 19:37:12 875] DEBUG (image:726) memsize = 1024 [2013-03-04 19:37:12 875] DEBUG (image:727) image = /var/run/xend/boot/boot_kernel.o0xcMQ [2013-03-04 19:37:12 875] DEBUG (image:728) store_evtchn = 1 [2013-03-04 19:37:12 875] DEBUG (image:729) console_evtchn = 2 [2013-03-04 19:37:12 875] DEBUG (image:730) cmdline = root=UUID=e4aca1a8-2267-4709-99d5-557b9c49cda2 ro quiet splash $vt_handoff [2013-03-04 19:37:12 875] DEBUG (image:731) ramdisk = /var/run/xend/boot/boot_ramdisk.j3pLJu [2013-03-04 19:37:12 875] DEBUG (image:732) vcpus = 2 [2013-03-04 19:37:12 875] DEBUG (image:733) features = [2013-03-04 19:37:12 875] DEBUG (image:734) flags = 0 [2013-03-04 19:37:12 875] DEBUG (image:735) superpages = 0 [2013-03-04 19:37:12 875] ERROR (XendDomainInfo:2933) XendDomainInfo.initDomain: exception occurred Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2904, in _initDomain channel_details = self.image.createImage() File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 169, in createImage return self.createDomain() File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 188, in createDomain result = self.buildDomain() File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 1081, in buildDomain rc = LinuxImageHandler.buildDomain(self) File "/usr/lib64/python2.7/site-packages/xen/xend/image.py", line 749, in buildDomain superpages = self.superpages) Error: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images') [2013-03-04 19:37:12 875] ERROR (XendDomainInfo:488) VM start failed Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 474, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib64/python2.7/site-packages/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2936, in _initDomain raise VmError(str(exn)) VmError: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images') [2013-03-04 19:37:12 875] DEBUG (XendDomainInfo:3077) XendDomainInfo.destroy: domid=3 [2013-03-04 19:37:12 875] DEBUG (XendDomainInfo:2402) Destroying device model [2013-03-04 19:37:12 875] DEBUG (XendDomainInfo:2409) Releasing devices [2013-03-04 19:37:12 875] ERROR (SrvBase:88) Request start failed. Traceback (most recent call last): File "/usr/lib64/python2.7/site-packages/xen/web/SrvBase.py", line 85, in perform return op_method(op, req) File "/usr/lib64/python2.7/site-packages/xen/xend/server/SrvDomain.py", line 77, in op_start return self.xd.domain_start(self.dom.getName(), paused) File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomain.py", line 1070, in domain_start dominfo.start(is_managed = True) File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 474, in start XendTask.log_progress(31, 60, self._initDomain) File "/usr/lib64/python2.7/site-packages/xen/xend/XendTask.py", line 209, in log_progress retval = func(*args, **kwds) File "/usr/lib64/python2.7/site-packages/xen/xend/XendDomainInfo.py", line 2936, in _initDomain raise VmError(str(exn)) VmError: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')
On Tue, 5 Mar 2013, Roberto Fichera wrote:
I'm trying to boot Ubuntu 12.04 LTS precise i386 as domU after a clean installation on Fedora F17 and/or F18 dom0 fully updated.
VmError: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')
It seems that pygrub doesn't like your guest kernel (or possibly is failing to download them). Do you know what file format Ubuntu uses for these kernels?
Michael Young
On 03/05/2013 01:14 PM, M A Young wrote:
On Tue, 5 Mar 2013, Roberto Fichera wrote:
I'm trying to boot Ubuntu 12.04 LTS precise i386 as domU after a clean installation on Fedora F17 and/or F18 dom0 fully updated.
VmError: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')
It seems that pygrub doesn't like your guest kernel (or possibly is failing to download them). Do you know what file format Ubuntu uses for these kernels?
Looks a normal vmlinuz image
[root@storage dev]# file /mnt/boot/vmlinuz-3.2.0-38-generic /mnt/boot/vmlinuz-3.2.0-38-generic: Linux kernel x86 boot executable bzImage, version 3.2.0-38-generic (buildd@akateko) #61-Ubuntu SMP Tue Feb 19 12:, RO-rootFS, swap_dev 0x4, Normal VGA
Michael Young
On Tue, Mar 05, 2013 at 04:08:30PM +0100, Roberto Fichera wrote:
On 03/05/2013 01:14 PM, M A Young wrote:
On Tue, 5 Mar 2013, Roberto Fichera wrote:
I'm trying to boot Ubuntu 12.04 LTS precise i386 as domU after a clean installation on Fedora F17 and/or F18 dom0 fully updated.
VmError: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')
It seems that pygrub doesn't like your guest kernel (or possibly is failing to download them). Do you know what file format Ubuntu uses for these kernels?
Looks a normal vmlinuz image
[root@storage dev]# file /mnt/boot/vmlinuz-3.2.0-38-generic /mnt/boot/vmlinuz-3.2.0-38-generic: Linux kernel x86 boot executable bzImage, version 3.2.0-38-generic (buildd@akateko) #61-Ubuntu SMP Tue Feb 19 12:, RO-rootFS, swap_dev 0x4, Normal VGA
It might be that pygrub picks something else - not the vmlinuz but say multiboot.c32.
If you run pygrub -i <the disk image> and pick the right menu option - what does the command spit out?
Michael Young
-- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen
On 03/05/2013 04:55 PM, Konrad Rzeszutek Wilk wrote:
On Tue, Mar 05, 2013 at 04:08:30PM +0100, Roberto Fichera wrote:
On 03/05/2013 01:14 PM, M A Young wrote:
On Tue, 5 Mar 2013, Roberto Fichera wrote:
I'm trying to boot Ubuntu 12.04 LTS precise i386 as domU after a clean installation on Fedora F17 and/or F18 dom0 fully updated. VmError: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')
It seems that pygrub doesn't like your guest kernel (or possibly is failing to download them). Do you know what file format Ubuntu uses for these kernels?
Looks a normal vmlinuz image
[root@storage dev]# file /mnt/boot/vmlinuz-3.2.0-38-generic /mnt/boot/vmlinuz-3.2.0-38-generic: Linux kernel x86 boot executable bzImage, version 3.2.0-38-generic (buildd@akateko) #61-Ubuntu SMP Tue Feb 19 12:, RO-rootFS, swap_dev 0x4, Normal VGA
It might be that pygrub picks something else - not the vmlinuz but say multiboot.c32.
If you run pygrub -i <the disk image> and pick the right menu option - what does the command spit out?
pyGRUB version 0.6 ┌────────────────────────────────────────────────────────────────────────┐ │ Ubuntu, with Linux 3.2.0-38-generic │ │ Ubuntu, with Linux 3.2.0-38-generic (recovery mode) │ │ Memory test (memtest86+) │ │ Memory test (memtest86+, serial console 115200) │ │ │ │ │ │ │ │ │ └────────────────────────────────────────────────────────────────────────┘ Use the ^ and ┴ keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for a command line.
then terminate with:
Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /boot/grub/grub.cfg WARNING:root:Unknown directive load_video WARNING:root:Unknown directive terminal_output WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive export WARNING:root:Unknown image directive recordfail WARNING:root:Unknown image directive gfxmode WARNING:root:Unknown image directive recordfail WARNING:root:Unknown image directive linux16 WARNING:root:Unknown image directive linux16 WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive source linux (kernel /var/run/xend/boot/boot_kernel.uTenpi)(ramdisk /var/run/xend/boot/boot_ramdisk.3D1f0E)(args "root=UUID=e4aca1a8-2267-4709-99d5-557b9c49cda2 ro quiet splash $vt_handoff")[root@vserver4 bacula]#
looks like it isn't detecting grub2, right?
Michael Young
-- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen
On 03/05/2013 05:39 PM, Roberto Fichera wrote:
On 03/05/2013 04:55 PM, Konrad Rzeszutek Wilk wrote:
On Tue, Mar 05, 2013 at 04:08:30PM +0100, Roberto Fichera wrote:
On 03/05/2013 01:14 PM, M A Young wrote:
On Tue, 5 Mar 2013, Roberto Fichera wrote:
I'm trying to boot Ubuntu 12.04 LTS precise i386 as domU after a clean installation on Fedora F17 and/or F18 dom0 fully updated. VmError: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')
It seems that pygrub doesn't like your guest kernel (or possibly is failing to download them). Do you know what file format Ubuntu uses for these kernels?
Looks a normal vmlinuz image
[root@storage dev]# file /mnt/boot/vmlinuz-3.2.0-38-generic /mnt/boot/vmlinuz-3.2.0-38-generic: Linux kernel x86 boot executable bzImage, version 3.2.0-38-generic (buildd@akateko) #61-Ubuntu SMP Tue Feb 19 12:, RO-rootFS, swap_dev 0x4, Normal VGA
It might be that pygrub picks something else - not the vmlinuz but say multiboot.c32.
If you run pygrub -i <the disk image> and pick the right menu option - what does the command spit out?
pyGRUB version 0.6 ┌────────────────────────────────────────────────────────────────────────┐ │ Ubuntu, with Linux 3.2.0-38-generic │ │ Ubuntu, with Linux 3.2.0-38-generic (recovery mode) │ │ Memory test (memtest86+) │ │ Memory test (memtest86+, serial console 115200) │ │ │ │ │ │ │ │ │ └────────────────────────────────────────────────────────────────────────┘ Use the ^ and ┴ keys to select which entry is highlighted. Press enter to boot the selected OS, 'e' to edit the commands before booting, 'a' to modify the kernel arguments before booting, or 'c' for a command line.
then terminate with:
Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /boot/grub/grub.cfg WARNING:root:Unknown directive load_video WARNING:root:Unknown directive terminal_output WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive export WARNING:root:Unknown image directive recordfail WARNING:root:Unknown image directive gfxmode WARNING:root:Unknown image directive recordfail WARNING:root:Unknown image directive linux16 WARNING:root:Unknown image directive linux16 WARNING:root:Unknown directive else WARNING:root:Unknown directive else WARNING:root:Unknown directive source linux (kernel /var/run/xend/boot/boot_kernel.uTenpi)(ramdisk /var/run/xend/boot/boot_ramdisk.3D1f0E)(args "root=UUID=e4aca1a8-2267-4709-99d5-557b9c49cda2 ro quiet splash $vt_handoff")[root@vserver4 bacula]#
looks like it isn't detecting grub2, right?
I've found the reason of my problem. Basically it seems that the installed kernel isn't the required "-virtual" but instead the "-generic" one. So, during the installation I have selected to manually install the right kernel package once requested by the installer. Thus everything went ok.
Michael Young
-- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen
-- xen mailing list xen@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/xen