Something went wrong on our end
-
Pavel Zhukov authored
With default network settings of runqemu script Oniro images start without IP address assigned which may cause inconvenience for some users. Using user network allows network access from the Oniro VM and enables port forwarding for ssh access. Signed-off-by:
Pavel Zhukov <pavel.zhukov@huawei.com>
Pavel Zhukov authoredWith default network settings of runqemu script Oniro images start without IP address assigned which may cause inconvenience for some users. Using user network allows network access from the Oniro VM and enables port forwarding for ssh access. Signed-off-by:
Pavel Zhukov <pavel.zhukov@huawei.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
qemux86.rst 1.34 KiB
Qemu X86
Overview
|main_project_name| supports running the software stack into an virtual environment using Qemu.
Building an Oniro image
To clone the source code, perform the procedure in: :ref:`Setting up a repo workspace <RepoWorkspace>`.
Building a Linux image
Build Steps
- Source the environment with proper template settings, flavour being linux and target machine being qemux86. Pay attention to how relative paths are constructed. The value of TEMPLATECONF is relative to the location of the build directory ./build-oniro-linux, that is going to be created after this step:
$ TEMPLATECONF=../oniro/flavours/linux . ./oe-core/oe-init-build-env build-oniro-linux
- You will find yourself in the newly created build directory. Call bitbake to build the image. For example, if you are using oniro-image-base run the following command:
$ MACHINE=qemux86 bitbake oniro-image-base
Once the image is done, you can run the Qemu using the provided script wrapper:
$ MACHINE=qemux86 runqemu oniro-image-base wic ovmf slirp