Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
dbd8c2c
Update qemu-kubevirt.yaml
dmkarthi Feb 16, 2026
c70cd45
Update 0001-Bump-dependency-versions-for-kubevirt-v1.5.0.patch
dmkarthi Feb 16, 2026
43681ce
Update qemu-kubevirt.yaml
smitesh-sutaria Feb 16, 2026
921acd0
replace build
dmkarthi Feb 17, 2026
2390a5c
build fix
dmkarthi Feb 17, 2026
b2f5c2e
Update qemu-kubevirt.yaml
dmkarthi Feb 17, 2026
93f9adc
Merge branch 'main' into kubevirt_update
smitesh-sutaria Apr 6, 2026
f27dd71
Update qemu-kubevirt.yaml
dmkarthi Apr 9, 2026
c452862
revert to 1.7.0 and add libblkio
dmkarthi Apr 9, 2026
735996f
Update WORKSPACE with llvm-libs alternate link
dmkarthi Apr 9, 2026
5f10cea
update llvm-filesystem and llvm-libs to 21.1.8-2
dmkarthi Apr 9, 2026
d926031
Merge branch 'main' into kubevirt_update
smitesh-sutaria Apr 9, 2026
c6a34fa
fix libdbus.so.1 in virt-launcher
dmkarthi Apr 9, 2026
6581d4c
add other missing packages
dmkarthi Apr 10, 2026
81075d6
update kernel-headers version
dmkarthi Apr 13, 2026
67d5cb8
update hwdata package version
dmkarthi Apr 13, 2026
e59167f
fix llvm version to support qemu 9.1.0
dmkarthi Apr 13, 2026
262883b
update llvm to 20.1.8-3
dmkarthi Apr 13, 2026
92f1edf
fix llvm with 20.1.8-1 for llvm-19 so file
dmkarthi Apr 13, 2026
e735f36
add libbrotli package
dmkarthi Apr 13, 2026
d975842
add fonts-filesystem pkg
dmkarthi Apr 13, 2026
28c1bce
Update rpm-BUILD.bazel
dmkarthi Apr 13, 2026
4f477bb
move patched files to version specific folder
dmkarthi Apr 13, 2026
feb53da
Update 0001-Bump-dependency-versions-for-kubevirt-v1.5.0.patch
dmkarthi Apr 13, 2026
e9c67a2
readme update
dmkarthi Apr 14, 2026
c34ac9c
cleanup and formating patched dependencies for v1.7.0
dmkarthi Apr 14, 2026
7f1e922
enabling EDV on KV v1.8.1 CentOS 9
dmkarthi Apr 14, 2026
d0b277b
Update README.md
dmkarthi Apr 14, 2026
65e2576
enabling EDV on KV v1.5.0 and fix v1.8.1 kernel-headers pkg version
dmkarthi Apr 14, 2026
f7fd563
fix hwdata pkg version
dmkarthi Apr 14, 2026
95da83c
Build trigger for 1.5.0
dmkarthi Apr 15, 2026
e255f9c
fix device-mapper version for v1.5.0
dmkarthi Apr 15, 2026
042129d
change containerpull to ocipull for v.1.5.0 similar to v1.7.0
dmkarthi Apr 15, 2026
2a65397
update BUILD.bazel files for ocipull image for v1.5.0
dmkarthi Apr 15, 2026
baf78a3
update rules_pkg_deps for v1.5.0
dmkarthi Apr 15, 2026
3967b47
updated links for rules_pkg v1.5.0
dmkarthi Apr 15, 2026
60ebe23
Revert "updated links for rules_pkg v1.5.0"
dmkarthi Apr 16, 2026
67b7a05
Revert "update rules_pkg_deps for v1.5.0"
dmkarthi Apr 16, 2026
279911b
Revert "update BUILD.bazel files for ocipull image for v1.5.0"
dmkarthi Apr 16, 2026
8be7dac
Revert "change containerpull to ocipull for v.1.5.0 similar to v1.7.0"
dmkarthi Apr 16, 2026
2802ded
change to sidecar script to patch the libvirt XML version for KV v1.8.1
dmkarthi Apr 20, 2026
ee07635
build 1.8.1 by default
dmkarthi Apr 20, 2026
792065e
sidecar script minimize to singleline command for kv v1.8.1
dmkarthi Apr 20, 2026
1980a33
patch with libvirtxml version only if its not present
dmkarthi Apr 22, 2026
0652001
update go_version to 1.8.1
dmkarthi Apr 24, 2026
b9ad5f0
use go ver 1.25.8
dmkarthi Apr 24, 2026
1926a98
update bazel_rules_go
dmkarthi Apr 24, 2026
1fa9ff5
Update WORKSPACE
dmkarthi Apr 24, 2026
6ef5bad
Update WORKSPACE
dmkarthi Apr 24, 2026
4f46cfe
updated version of llvm-filesystem and llvm-libs
tathagax Apr 24, 2026
bb9a709
Updated sha256 and name of the llvm-filesystem and llvm-libs packages…
tathagax Apr 27, 2026
e77c59a
Updated versions of qemu-kvm-common, qemu-kvm-core, qemu-img and qemu…
tathagax Apr 27, 2026
184ab5e
Fixed the version changes for the packages qemu-kvm-common and qemu-k…
tathagax Apr 27, 2026
8a56b1a
Updating qemu-img package version in the BUILD.bazel file .
tathagax Apr 27, 2026
f0d31ed
Reverting back to older qemu-kvm and qemu-img packages packages and a…
tathagax Apr 28, 2026
a4b93c2
update builddeps url as primary for selinux-policy and qemu-kvm-devi…
tathagax Apr 28, 2026
3ebf5a9
set arch
dmkarthi Apr 28, 2026
29a09dd
change arch to amd64
dmkarthi Apr 28, 2026
35955e8
revert WORKSPACE changes
dmkarthi Apr 28, 2026
fe48c54
updating the sha256sum of distroless/base-debian12 go_image_base
tathagax Apr 29, 2026
bab297a
updated go binary version
tathagax Apr 29, 2026
e447836
patched files for kv v1.8.2
dmkarthi Apr 30, 2026
832e3bb
Merge branch 'kubevirt_update' of https://github.com/dmkarthi/edge-de…
dmkarthi Apr 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/qemu-kubevirt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -383,11 +383,15 @@ jobs:
git clone https://github.com/kubevirt/kubevirt.git
cd kubevirt
git checkout v1.5.0
KV_VER=v1.8.2
git apply $EDV_HOME/kubevirt-patch/0001-Bump-dependency-versions-for-kubevirt-v1.5.0.patch
git checkout $KV_VER
git apply $EDV_HOME/kubevirt-patch/0001-Patching-Kubevirt-with-GTK-libraries_v1.patch
cp $EDV_HOME/kubevirt-patch/$KV_VER/WORKSPACE ./WORKSPACE
cp $EDV_HOME/kubevirt-patch/$KV_VER/rpm-BUILD.bazel ./rpm/BUILD.bazel
cp $EDV_HOME/kubevirt-patch/$KV_VER/cmd-virtlauncher-BUILD.bazel ./cmd/virt-launcher/BUILD.bazel
mkdir build
cp $EDV_HOME/qemu-artifact/qemu-system-x86_64 build/qemu-system-x86_64
Expand All @@ -398,8 +402,8 @@ jobs:
export DOCKER_PREFIX=localhost:5000
export DOCKER_TAG=$EDV_VERSION
export BUILD_ARCH=amd64
make rpm-deps
make all
make bazel-build-images
Expand Down
41 changes: 19 additions & 22 deletions kubevirt-patch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The following will be captured in this document:
- Build and Deploy Kubevirt

> [!Note]
> This has been verified on `Kubevirt Version v1.5.0`
> This has been verified on `Kubevirt Version v1.5.0`, `v1.7.0`, `v1.8.1 CentOS-9-Stream`.
> OS and QEMU version provided in default Kubevirt virt-launcher image is

```shell
Expand Down Expand Up @@ -184,43 +184,41 @@ The original idea to build within the Centos container comes from this [link](ht
cd kubevirt
```

1. Check out the specific kubevirt version you want to build with.
```
git checkout v1.5.0
```
1. Check out the specific kubevirt version you want to build with. $KV_VER should be set to either `v1.5.0`, `v1.7.0` or `v1.8.1`.

1. Apply a patch to kubevirt to update dependencies which resolve potential security issues since the original v1.5.0 kubevirt was released. $EDV_HOME should be set to the path to the top level of this repository (e.g. edge-desktop-virtualization).
```sh
git apply $EDV_HOME/kubevirt-patch/0001-Bump-dependency-versions-for-kubevirt-v1.5.0.patch
```
KV_VER=v1.8.1
git checkout $KV_VER
```

1. [OPTIONAL] Update kubevirt dependency images using the `make bump-images` command. Note that you may also have to update `go_version` in `WORKSPACE` if applicable.
2. Apply a patched to kubevirt files to update dependencies. $EDV_HOME should be set to the path to the top level of this repository (e.g. edge-desktop-virtualization).

1. Apply the kubevirt patch from this repo to expand kubevirt virt-launcher image with additional dependencies to support GTK
```sh
git apply $EDV_HOME/kubevirt-patch/0001-Patching-Kubevirt-with-GTK-libraries_v1.patch
```
cp $EDV_HOME/kubevirt-patch/$KV_VER/WORKSPACE ./WORKSPACE
cp $EDV_HOME/kubevirt-patch/$KV_VER/rpm-BUILD.bazel ./rpm/BUILD.bazel
cp $EDV_HOME/kubevirt-patch/$KV_VER/cmd-virtlauncher-BUILD.bazel ./cmd/virt-launcher/BUILD.bazel
```

1. Create a directory to place the custom QEMU binary and copy it from the QEMU build
3. Create a directory to place the custom QEMU binary and copy it from the QEMU build

```sh
mkdir build
cp ../qemu-9.1.0/build/qemu-system-x86_64 build/qemu-system-x86_64
```

1. Obtain the `SHA` hash number of the QEMU binary
4. Obtain the `SHA` hash number of the QEMU binary

```sh
QEMU_SHA256="$(sha256sum ./build/qemu-system-x86_64 | cut -d ' ' -f 1)"
echo "QEMU_SHA256=$QEMU_SHA256"
```

1. Patch the top level `WORKSPACE` file in top level `kubevirt` directory. Replace `<SHA256SUM_OF_PATCHED_QEMU>` with your sha256sum from the previous step
5. Patch the top level `WORKSPACE` file in top level `kubevirt` directory. Replace `<SHA256SUM_OF_PATCHED_QEMU>` with your sha256sum from the previous step
```sh
perl -p -i -e "s|<SHA256SUM_OF_PATCHED_QEMU>|$QEMU_SHA256|g" WORKSPACE
```

1. Export the location of the docker registry and build tag (local docker registry in this case)
6. Export the location of the docker registry and build tag (local docker registry in this case)

```sh
export DOCKER_PREFIX=localhost:5000
Expand All @@ -233,14 +231,13 @@ The original idea to build within the Centos container comes from this [link](ht
export HTTP_PROXY="http://proxy-dmz.intel.com:912"
```

1. Build Kubevirt & dependencies.
7. Build Kubevirt & dependencies.
```sh
make rpm-deps
make all
make bazel-build-images
```

1. Push the images to the local Docker registry
8. Push the images to the local Docker registry

```sh
make push
Expand All @@ -249,19 +246,19 @@ The original idea to build within the Centos container comes from this [link](ht
BUILD_ARCH= DOCKER_PREFIX=localhost:5000 DOCKER_TAG=mybuild hack/push-container-manifest.sh
```

1. Build manifests referencing the image locations
9. Build manifests referencing the image locations

```sh
make manifests
```

1. To install Kubevirt
10. To install Kubevirt
```sh
kubectl apply -f _out/manifests/release/kubevirt-operator.yaml
kubectl apply -f _out/manifests/release/kubevirt-cr.yaml
```

1. Verify Deployment
11. Verify Deployment
```sh
kubectl get all -n kubevirt

Expand Down
Loading
Loading