Received: from eggs.gnu.org ([208.118.235.92]:36489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA0Lh-00007k-2d for qemu-devel@nongnu.org; Tue, 20 Mar 2012 10:47:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SA0Lb-0002yz-Aq for qemu-devel@nongnu.org; Tue, 20 Mar 2012 10:47:44 -0400 Received: from indium.canonical.com ([91.189.90.7]:45335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SA0Lb-0002yu-1l for qemu-devel@nongnu.org; Tue, 20 Mar 2012 10:47:39 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1SA0LZ-0001ZS-3G for ; Tue, 20 Mar 2012 14:47:37 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 37EE72E84C9 for ; Tue, 20 Mar 2012 14:41:00 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 20 Mar 2012 14:35:09 -0000 From: Serge Hallyn <957622@bugs.launchpad.net> Sender: bounces@canonical.com References: <20120317020812.26782.73775.malonedeb@gac.canonical.com> Message-Id: <20120320143509.16838.26121.launchpad@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 957622] Re: kvm -kernel with grub multiboot kernel dumps core or exits Reply-To: Bug 957622 <957622@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Description changed: I attempted to use kvm -kernel with a grub multiboot image, specifically grub-maverick-20100729.img at [1]. That file was built using [2] = $ url=3D"http://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-e= c2-builds/download/head:/grubmaverick20100729-20100729071944-bevge631maio9j= pl-2/grub-maverick-20100729.img" $ wget $url -O grub-maverick-20100729.img - $ qemu-kvm create -f qcow2 disk.img 1G + $ qemu-img create -f qcow2 disk.img 1G $ kvm -curses -kernel grub-maverick-20100729.img -drive file=3Ddisk.img,i= f=3Dvirtio = 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-20100729.img -drive file=3Ddisk.img,i= f=3Dvirtio; fread() failed $ echo $? 1 = On a kvm guest (via openstack instance), it crashed differently: $ kvm -curses -kernel grub-maverick-20100729.img -drive file=3Ddisk.img,i= f=3Dvirtio 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/buildd/glib2.0-2.31.20/./glib/gmem.c:165: failed to= allocate 4293918720 bytes 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. - = + Just for a test, I tried loading kvm-amd, got nested kvm virtualization, + but the instance fails the same way. = -- [1] http://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-ec2-bu= ilds/files/head:/loaders/ [2] http://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-ec2-bu= ilds/view/head:/mk-image-mb-loader = ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: kvm (not installed) ProcVersionSignature: User Name 3.2.0-18.29-virtual 3.2.9 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 s= tatus 1 - [27230.361904] init: qemu-kvm post-stop process (8664) terminated with s= tatus 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 + =C2=A0[27230.320857] init: qemu-kvm pre-start process (8659) terminated w= ith status 1 + =C2=A0[27230.361904] init: qemu-kvm post-stop process (8664) terminated w= ith status 1 + =C2=A0[27249.426836] kvm[9021] trap int3 ip:7f44c2bbc13b sp:7fff447e1120 = error:0 + =C2=A0[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 Ec2AvailabilityZone: nova Ec2InstanceType: m1.small Ec2Kernel: unavailable Ec2Ramdisk: unavailable KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit cod= e 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 + =C2=A0Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub + =C2=A0Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd MachineType: Bochs Bochs ProcEnviron: - TERM=3Dscreen - PATH=3D(custom, user) - LANG=3Den_US.UTF-8 - SHELL=3D/bin/bash + =C2=A0TERM=3Dscreen + =C2=A0PATH=3D(custom, user) + =C2=A0LANG=3Den_US.UTF-8 + =C2=A0SHELL=3D/bin/bash ProcKernelCmdLine: BOOT_IMAGE=3D/boot/vmlinuz-3.2.0-18-virtual root=3DLAB= EL=3Dcloudimg-rootfs ro console=3DttyS0 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 + =C2=A0acpiphp 24231 0 - Live 0x0000000000000000 + =C2=A0floppy 70365 0 - Live 0x0000000000000000 + =C2=A0psmouse 87603 0 - Live 0x0000000000000000 + =C2=A0serio_raw 13211 0 - Live 0x0000000000000000 + =C2=A0virtio_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:bvrBochs:bd01/01/2007:svnBochs:pnBochs:pvr:cvn= Bochs:ct1:cvr: dmi.product.name: Bochs dmi.sys.vendor: Bochs -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/957622 Title: kvm -kernel with grub multiboot kernel dumps core or exits Status in QEMU: Confirmed Status in =E2=80=9Cqemu-kvm=E2=80=9D package in Ubuntu: In Progress Bug description: I attempted to use kvm -kernel with a grub multiboot image, specifically grub-maverick-20100729.img at [1]. That file was built using [2] $ url=3D"http://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-e= c2-builds/download/head:/grubmaverick20100729-20100729071944-bevge631maio9j= pl-2/grub-maverick-20100729.img" $ wget $url -O grub-maverick-20100729.img $ qemu-img create -f qcow2 disk.img 1G $ kvm -curses -kernel grub-maverick-20100729.img -drive file=3Ddisk.img,i= f=3Dvirtio 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-20100729.img -drive file=3Ddisk.img,i= f=3Dvirtio; fread() failed $ echo $? 1 On a kvm guest (via openstack instance), it crashed differently: $ kvm -curses -kernel grub-maverick-20100729.img -drive file=3Ddisk.img,i= f=3Dvirtio 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/buildd/glib2.0-2.31.20/./glib/gmem.c:165: failed to= allocate 4293918720 bytes 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://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-ec2-bu= ilds/files/head:/loaders/ [2] http://bazaar.launchpad.net/~ubuntu-on-ec2/vmbuilder/automated-ec2-bu= ilds/view/head:/mk-image-mb-loader ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: kvm (not installed) ProcVersionSignature: User Name 3.2.0-18.29-virtual 3.2.9 Uname: Linux 3.2.0-18-virtual x86_64 ApportVersion: 1.94.1-0ubuntu2 Architecture: amd64 CurrentDmesg: =C2=A0[27230.320857] init: qemu-kvm pre-start process (8659) terminated w= ith status 1 =C2=A0[27230.361904] init: qemu-kvm post-stop process (8664) terminated w= ith status 1 =C2=A0[27249.426836] kvm[9021] trap int3 ip:7f44c2bbc13b sp:7fff447e1120 = error:0 =C2=A0[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 Ec2AvailabilityZone: nova Ec2InstanceType: m1.small Ec2Kernel: unavailable Ec2Ramdisk: unavailable KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit cod= e 1: UID PID PPID C SZ RSS PSR STIME TTY TIME CMD Lsusb: =C2=A0Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub =C2=A0Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd MachineType: Bochs Bochs ProcEnviron: =C2=A0TERM=3Dscreen =C2=A0PATH=3D(custom, user) =C2=A0LANG=3Den_US.UTF-8 =C2=A0SHELL=3D/bin/bash ProcKernelCmdLine: BOOT_IMAGE=3D/boot/vmlinuz-3.2.0-18-virtual root=3DLAB= EL=3Dcloudimg-rootfs ro console=3DttyS0 ProcModules: =C2=A0acpiphp 24231 0 - Live 0x0000000000000000 =C2=A0floppy 70365 0 - Live 0x0000000000000000 =C2=A0psmouse 87603 0 - Live 0x0000000000000000 =C2=A0serio_raw 13211 0 - Live 0x0000000000000000 =C2=A0virtio_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:bvrBochs:bd01/01/2007:svnBochs:pnBochs:pvr:cvn= Bochs:ct1:cvr: dmi.product.name: Bochs dmi.sys.vendor: Bochs To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/957622/+subscriptions