OpenEmbedded KVM testing
The standard Linaro OE setup is created by:
For KVM, some changes are needed to conf/site.conf
PREFERRED_PROVIDER_virtual/kernel = "linux-aarch64-kvm" IMAGE_ROOTFS_EXTRA_SPACE = "1048576" IMAGE_FSTYPES = "tar.gz ext3 cpio.gz"
For host we build linaro-image-kvm, which is basic linaro image with qemu added and kernel included. For guest core-image-minimal (to have a minimal cpio initramfs)
Once that finishes we copy the guest image to inside host image:
Running kvm in model
Start the foundation model, and verify that the kernel messages mention kvm successfully initialized.
1 qemu-system-aarch64 -M machvirt -kernel /boot/Image-* -initrd core-image-minimal-genericarmv8-*.rootfs.cpio.gz -append 'earlyprintk=smh rdinit=/bin/sh init=/bin/sh console=ttyAMA0,38400 keep_bootcon' -enable-kvm -nographic
If everything works, you get into shell prompt inside kvm in a moment
All the build instructions are inside meta-linaro git tree:
Qemu is built with qemu_git.bb inside meta-aarch64. Configure options and git url can be changed there:
Kernel is is built Marc's tree:
arm64/defconfig is in Marc's tree is missing KVM and Foundation model essential config options. These have been hacked into:
Changin any of these, and "bitbake linaro-image-kvm" will cook you a new image with the changes.
ATM putting the job to LAVA would not work as the guest image doesn't seem to shut down.
- Build images
- submit to lava
- Adapt existing kvm-ci
- Add tests
Platform/DevPlatform/OpenEmbbeddedAArch64QEMU (last modified 2013-06-13 12:00:32)