Skip to main content

Setting up QEMU

The following instructions are for Ubuntu 22.04.

Install Dependencies

sudo apt update && \
sudo apt install git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev \
ninja-build libslirp-dev -y

Get Source Code

Go to the root directory opencxl and run:

git submodule update --init --recursive --progress opencxl-qemu && cd opencxl-qemu

Configure and Build QEMU

In the root directory of opencxl-qemu, create build directory:

mkdir build && cd build

Once in build, configure and build QEMU:

../configure --target-list=x86_64-softmmu --enable-debug --enable-slirp --with-git-submodules=ignore && make -j$(nproc)

Finally, we need to download the guest OS images and the credential file to build:

wget https://download.fedoraproject.org/pub/fedora/linux/releases/39/Cloud/x86_64/images/Fedora-Cloud-Base-39-1.5.x86_64.qcow2
wget https://eeum.s3.us-west-1.amazonaws.com/public/qemu-images/fedora_39.qcow2
wget https://eeum.s3.us-west-1.amazonaws.com/public/qemu-images/seed.qcow2

Since the image is already patched with a custom kernel, there is no need to build a custom kernel.

Continue to Run Instructions