kvm -kernel with grub multiboot kernel dumps core or exits
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned | ||
qemu-kvm (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I attempted to use kvm -kernel with a grub multiboot image, specifically grub-maverick-
$ url="http://
$ wget $url -O grub-maverick-
$ qemu-img create -f qcow2 disk.img 1G
$ kvm -curses -kernel grub-maverick-
This process works fine on oneiric and you will see a curses interface, and some output of grub looking for a image to boot.
On my laptop (with kvm support), I saw:
$ kvm -curses -kernel grub-maverick-
fread() failed
$ echo $?
1
On a kvm guest (via openstack instance), it crashed differently:
$ kvm -curses -kernel grub-maverick-
Could not access KVM kernel module: No such file or directory
failed to initialize KVM: No such file or directory
Back to tcg accelerator.
GLib-ERROR **: /build/
Trace/breakpoint trap (core dumped)
Just for a test, I tried loading kvm-amd, got nested kvm virtualization, but the instance fails the same way.
--
[1] http://
[2] http://
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: kvm (not installed)
ProcVersionSign
Uname: Linux 3.2.0-18-virtual x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
CurrentDmesg:
[27230.320857] init: qemu-kvm pre-start process (8659) terminated with status 1
[27230.361904] init: qemu-kvm post-stop process (8664) terminated with status 1
[27249.426836] kvm[9021] trap int3 ip:7f44c2bbc13b sp:7fff447e1120 error:0
[27263.380598] kvm[9283] trap int3 ip:7f3fba9f713b sp:7fff8b55d1a0 error:0
Date: Sat Mar 17 01:48:13 2012
Ec2AMI: ami-00000000
Ec2AMIManifest: FIXME
Ec2Availability
Ec2InstanceType: m1.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit code 1: UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
Lsusb:
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
MachineType: Bochs Bochs
ProcEnviron:
TERM=screen
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
ProcModules:
acpiphp 24231 0 - Live 0x0000000000000000
floppy 70365 0 - Live 0x0000000000000000
psmouse 87603 0 - Live 0x0000000000000000
serio_raw 13211 0 - Live 0x0000000000000000
virtio_balloon 13108 0 - Live 0x0000000000000000
SourcePackage: qemu-kvm
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 01/01/2007
dmi.bios.vendor: Bochs
dmi.bios.version: Bochs
dmi.chassis.type: 1
dmi.chassis.vendor: Bochs
dmi.modalias: dmi:bvnBochs:
dmi.product.name: Bochs
dmi.sys.vendor: Bochs
tags: | added: patch |
description: | updated |
Changed in qemu: | |
status: | Fix Committed → Fix Released |
some more info, with debug enabled in hw/multiboot.kvm on kvm git trunk:
$ ./x86_64- softmmu/ qemu-system- x86_64 --machine accel=tcg -kernel ~/grub- maverick- 20100729. img
qemu: I believe we found a multiboot image!
multiboot: mh_header_addr = 0x10025c
multiboot: mh_load_addr = 0x100000
multiboot: mh_load_end_addr = 0
multiboot: mh_bss_end_addr = 0
qemu: loading multiboot kernel (0xfff00000 bytes) at 0x100000
GLib-ERROR **: /build/ buildd/ glib2.0- 2.31.20/ ./glib/ gmem.c: 165: failed to allocate 4293918720 bytes
Trace/breakpoint trap (core dumped)