- Command to setup KVM.
- Commands to launch the Guest VM using QEMU.
Set up the development machine
To set up the development machine, follow the steps:- To set up the build, see Build Qualcomm Linux.
kvmis enabled by default inDISTRO_FEATURESfor all Qualcomm Linux distributions. No separate KVM distro configuration is required. KVM hardware acceleration is available on machines that includekvminMACHINE_FEATURES, currently:iq-9075-evkandiq-8275-evk. On other machines, QEMU runs without KVM acceleration. - Append
virtualizationtoDISTRO_FEATURESin build directory:conf/local.conf. - Build
qcom-console-imageorqcom-multimedia-image:
Launch Guest VM
This section describes how to launch a Guest VM on a Qualcomm Linux machine using QEMU, with and without Kernel‑based virtual machine (KVM) acceleration. Prerequisites- QEMU is available on the machine.
- The Guest VM uses the host root file system image.
- The Guest VM kernel image is available at
/boot/Image.
- Copy the host root file system image to the device and use it as the root file system for the Guest VM.
Note
If
qcom-console-imageis built for theqcs9100-ride-sxplatform, the root file system image for the Guest VM is available at:<build dir>/tmp/deploy/images/qcs9100-ride-sx/qcom-console-image-qcs9100-ride-sx.rootfs.qcomflash/rootfs.img. - Launch the Guest VM.
- Launching the Guest VM without KVM acceleration:
Run the following command to launch the Guest VM using QEMU without KVM acceleration:
- Launching the Guest VM with KVM:
- KVM is enabled by default in
DISTRO_FEATURES. The machine must includekvminMACHINE_FEATURES(e.g.,iq-9075-evk,iq-8275-evk).
- The
/dev/kvmdevice node must be present on the machine. - Verify that KVM is available:
- Run the following command to launch Guest VM in QEMU with KVM acceleration.
- KVM is enabled by default in
- The
rootfs.imgfile is located in the current working directory. To use a different location, update the-driveoption accordingly. For example:-drivefile=/mydir/rootfs.img,if=virtio,format=raw - The Guest VM kernel is provided using the
-kernel /boot/Imageoption.
- Launching the Guest VM without KVM acceleration:
Run the following command to launch the Guest VM using QEMU without KVM acceleration:
Next steps
- For Docker container support, see Run Docker containers.
- For Kubernetes enablement, see Set up Kubernetes with Qualcomm Linux.
kvmis enabled by default inDISTRO_FEATURESfor all Qualcomm Linux distributions. No separate KVM distro configuration is required. KVM hardware acceleration is available on machines that includekvminMACHINE_FEATURES, currently:iq-9075-evkandiq-8275-evk. On other machines, QEMU runs without KVM acceleration.

