Bug 2550

Summary: Add "kvm" machine for running virtualised
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Ross Burton <ross.burton>
Component: meta-yoctoAssignee: Cristian Iorga <cristian.iorga>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandru.c.georgescu, poky.bs.watcher, poky.watcher, sgw, song.liu
Version: 1.1.1   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: a69b5e1eae58618bb92f3f03c8727ae7462d2d26, 79947f1eb9f695c374ba63672f94deaa1de75561, a69b5e1eae58618bb92f3f03c8727ae7462d2d26, ebe1f9f7cf1fa63683bcd2bf21e809588780b1d9
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Ross Burton 2012-06-06 12:51:38 UTC
A KVM machine type, similar to qemux86 but with with virtio drivers, the right drivers when virtio isn't available, other tweaks and the guest tools for X would be great.
Comment 1 Saul Wold 2012-06-07 07:44:43 UTC
This might be similar to adding the guest drivers for the Build Appliance
Comment 2 Cristian Iorga 2012-08-22 14:10:47 UTC
Started investigation.
Comment 3 Cristian Iorga 2012-08-24 09:47:18 UTC
The net result of this bug will be a new machine called qemux86kvm.
qemux86kvm will run under QEMU with KVM enabled.
KVM necessitates from the host system a HW virtualization feature present in the CPU (VT-x for Intel, AMD-V for AMD).
Being that KVM is a para-virtualization techology, the guest OS will now that it is running under virtualization.
In this case, the guest OS can activate the virtio tech, which relates to access to peripherals in a para-virtualized environment.
virtio will need to be activated in the guest OS kernel (Linux in our case) if KVM is activated inside QEMU.
Comment 4 Cristian Iorga 2012-09-13 10:33:04 UTC
Technical solution decided, architected and tested.
Implementation still in progress, dependent upon approval of new kernel configuration fragments.
Comment 5 Cristian Iorga 2012-09-21 07:13:49 UTC
Patchessubmitted for review.
Comment 6 Cristian Iorga 2012-09-24 06:53:53 UTC
Fixed.
Comment 7 Cristian Iorga 2012-09-24 14:15:57 UTC
KVM, paravirtualization and virtio drivers are now activated in runqemu using the kvm option flag for qemux86 and qemux86-64.Host CPU features are also exported to guest OS (Yocto Linux).
Usage example:
runqemu qemux86 core-image-x11 kvm
runqemu qemux86-64 core-image-x11 kvm
Comment 8 Cristian Iorga 2012-09-25 10:15:10 UTC
For testing, use the following guide:
https://wiki.yoctoproject.org/wiki/Running_an_x86_Yocto_Linux_image_under_QEMU_KVM
Comment 9 Alexandru Georgescu 2012-09-25 13:22:36 UTC
Verified.