Bug 2970 - kvm not enabled with qemu
Summary: kvm not enabled with qemu
Status: VERIFIED FIXED
Alias: None
Product: General Runtime
Classification: Runtime
Component: General Runtime (show other bugs)
Version: 1.3
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.3 M4
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-08-20 11:27 UTC by Laurentiu Serban
Modified: 2012-09-20 21:22 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Laurentiu Serban 2012-08-20 11:27:17 UTC
The following error occurs when trying to run qemu with kvm.
Although the condition required is met.

lserban@computer2:~/work/master/build$ runqemu tmp/deploy/images/bzImage-qemux86.bin tmp/deploy/images/core-image-sato-qemux86-20120819235319.rootfs.btrfs kvm
KVM only support x86 & x86-64. Remove kvm from the command-line
lserban@computer2:~/work/master/build$ lsmod | grep kvm
kvm_intel             137721  0
kvm                   415459  1 kvm_intel
Comment 1 Saul Wold 2012-08-21 20:45:49 UTC
Does this also happen with ext3 images?  I notice this is a btrfs image, I am building a btrfs image also to test.
Comment 2 Saul Wold 2012-08-21 22:54:01 UTC
I also tested with a btrfs image and it works for me.I am going to close this one, if there is a real problem, please provide more details.
Comment 3 Alexandru Palalau 2012-08-23 08:15:09 UTC
Tested on 1.3_M3.rc2 tag with ext3 image and the error is still encountered.
Comment 4 Saul Wold 2012-08-23 20:45:45 UTC
Ok, I see the problem now!  It's really a runqemu issue not parsing MACHINE, you missed putting qemux86 on the runqemu command

runqemu tmp/deploy/images/bzImage-qemux86.bin tmp/deploy/images/core-image-sato-qemux86-20120819235319.rootfs.btrfs kvm

It should be 

runqemu qemux86 tmp/deploy/images/bzImage-qemux86.bin tmp/deploy/images/core-image-sato-qemux86-20120819235319.rootfs.btrfs kvm

The check for a blank machine and parsing of the kernel comes AFTER the kvm check, should be a straight forward fix.
Comment 6 Laurentiu Serban 2012-09-20 21:22:46 UTC
Verified in commit id 8ebed883d45ee952bd89d2143e0b0ab8736049b0