Skip to content

Commit

Permalink
README updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
ladar committed Oct 23, 2023
1 parent 37bb580 commit 5ed9efd
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 36 deletions.
36 changes: 26 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@

# QEMU with SPICE support for Alma / Rocky / Oracle / RHEL 9 (aka el9)

The official virtualization packages for RHEL 9 lack support for hardware acceleration, and the drop in performance made my development environments unusuable. As a result my choices were rebuild the packages with SPICE support, or switch to a commercial/proprietary alternative. Ultimately I decided to rebuild the packages myself.
The official virtualization packages for RHEL 9 lack support for hardware acceleration, and this made my graphical development environments unusuable. As a result, my choices were rebuild the packages with SPICE support, or switch to a commercial/proprietary alternative. Ultimately I've decided to rebuild the packages with SPICE support.

Use the `INSTALL.sh` script to replace the default packages with the ones in this repository. If you would like to build the packages yourself, you can use the `BUILD.sh` script. These RPMS were built using the equivalent Fedora source package, which is why the version is newer than what is shipped with RHEL (where applicable).
Use the `INSTALL.sh` script to replace the default packages with the RPMs in this repository. If you would like to build the packages yourself, you can use the `BUILD.sh` script. These RPMS were built using equivalent Alma and Fedora source packages, which is why some versions are newer than what is shipped with RHEL. As such a handful of additional features are enabled in addition to SPICE support.

To the best of my knowledge, all of the features available on Fedora are included with these packages, with the exception of webdav support.
To quickly download and installthese packages without using the `INSTALL.sh` script:

Note, the `qemu-*.btrh9.src.rpm` and the `qemu-user-debuginfo-*.btrh9.x86_64.rpm` exceeded the 100 MiB limit. As a result, those packages have been split into four files. Use the following commands to split/reassemble the original RPM files.
```bash
git clone --depth=1 https://github.com/ladar/qemu-spice-el9.git && cd qemu-spice-el9
export PACKAGES="$(ls *rpm depends/libblkio*rpm | grep -Ev '\.src\.|debug|ocaml|vala|uki\-direct|xorg\-x11\-drv')"
sudo dnf install --enablerepo=baseos --enablerepo=appstream --enablerepo=epel --enablerepo=crb $PACKAGES
```

The `edk2-*.btrh9.src.rpm`, `qemu-*.btrh9.src.rpm` and `qemu-user-debuginfo-*.btrh9.x86_64.rpm` packages exceed the repo size limit. As a result, these packages have been split into eight files. Use the following commands to split/reassemble the original RPM files.

```bash
# The packages were split using these commands.
export QEMURPM="`ls qemu-*.btrh9.src.rpm`" && \
export QEMUDEBUGRPM="`ls qemu-user-debuginfo-*.btrh9.x86_64.rpm`" && \
split --numeric-suffixes=01 --number=4 $QEMURPM $QEMURPM. && \
split --numeric-suffixes=01 --number=4 $QEMUDEBUGRPM $QEMUDEBUGRPM.
export EDKRPM="$(ls edk2-*.btrh9.src.rpm)" && \
export QEMURPM="$(ls qemu-*.btrh9.src.rpm)" && \
export QEMUDEBUGRPM="$(ls qemu-user-debuginfo-*.btrh9.x86_64.rpm)" && \
split --numeric-suffixes=01 --number=8 $EDKRPM $EDKRPM. && \
split --numeric-suffixes=01 --number=8 $QEMURPM $QEMURPM. && \
split --numeric-suffixes=01 --number=8 $QEMUDEBUGRPM $QEMUDEBUGRPM.

# To recombine them.
cat qemu-*.btrh9.src.rpm.{01,02,03,04} > qemu-7.1.0-3.btrh9.src.rpm
cat qemu-user-debuginfo-*.btrh9.x86_64.rpm.{01,02,03,04} > qemu-user-debuginfo-7.1.0-3.btrh9.x86_64.rpm
export EDKRPM="$(ls edk2-*.btrh9.src.rpm.01 | sed 's/.01$//g')"
export QEMURPM="$(ls qemu-*.btrh9.src.rpm.01 | sed 's/.01$//g')"
export QEMUDEBUGRPM="$(ls qemu-user-debuginfo-*.btrh9.x86_64.rpm.01 | sed 's/.01$//g')"
export EDKFILES="$(ls edk2-*.btrh9.src.rpm.0[1-8])"
export QEMUFILES="$(ls qemu-*.btrh9.src.rpm.0[1-8])"
export QEMUDEBUGFILES="$(ls qemu-user-debuginfo-*.btrh9.x86_64.rpm.0[1-8])"
cat $EDKFILES > $EDKRPM=
cat $QEMUFILES > $QEMURPM
cat $QEMUDEBUGFILES > $QEMUDEBUGRPM
sha256sum --quiet -c SHA256SUMS
```

Since these packages won't be needed in most cases, I felt this was better than using LFS.
Expand Down
51 changes: 25 additions & 26 deletions SHA256SUMS
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
4a6bd28a883331abd1f215c8302a08e3e1f8a9884c5292e598fe3b34bdecc007 BUILD.sh
4e5f8abbc5393f58ba0379524c0c09a812621d34edc35f89d4b633f5c2ac1f89 INSTALL.sh
792f69c0fe92787a55b92c5a0ac0d4ddf16cd2fae9baa1c66429bbc2a79f6dda INSTALL.sh
5ab6d5eaf00159fad6927d96b9f58a0e70bdaa81b00ee5d02df8b3e53f2db8e1 SLOF-20220719-2048.git6b6c16b4.btrh9.noarch.rpm
2317bd1842a60ad7a23f52d9462a877d161aa4558233d21b03602b215617264c SLOF-20220719-2048.git6b6c16b4.btrh9.src.rpm
ebb7410ef976f8b690912974e904c01544792ebc4b68599c24c3bfbda02cb3a4 avahi-0.8-2048.btrh9.1.src.rpm
Expand Down Expand Up @@ -574,6 +573,30 @@ c69344c9cd18a1d294079caf063511e5824dc95127a77eb7dc4a88161709c88a xorg-x11-drv-q
0b885b00fabee9f872ad8d13921921a681bf0ca7c60a5d939c4eb4aa1baa244b xorg-x11-drv-qxl-debugsource-0.1.6-2048.btrh9.x86_64.rpm
785445d4352787417600c839dedf78739248a4c0d7df53a22547ddec58da0153 xorg-x11-server-Xspice-0.1.6-2048.btrh9.x86_64.rpm
871a61264cdbe792906b259da5db3494b3ee122a991247739f463ee9978a96e4 xorg-x11-server-Xspice-debuginfo-0.1.6-2048.btrh9.x86_64.rpm
cdc68ea2a99ba94330c4297ada41fd5e63421523a6effdf0469bd9eeb7d0f84b edk2-20230825-2048.btrh9.src.rpm.01
b869a431f0ecb80454403a5894c044689ee06b3fd02b698efbb5ada7c0531ec1 edk2-20230825-2048.btrh9.src.rpm.02
7f994d79ea8d8299d11676867e3a6407a85e6e41b31dcfd20d90e93bcc54df20 edk2-20230825-2048.btrh9.src.rpm.03
949274b8a56f2ed3ae39a8dec6ec631d150502235ca88ef246e9309dc72bd99d edk2-20230825-2048.btrh9.src.rpm.04
0059e940ce2ec522ea16169e75541038bb1d9f7a4b08d27b0972082e029a5d46 edk2-20230825-2048.btrh9.src.rpm.05
3852bbc0bd98139e8dee649ac670a71687b7474852ab5efb8c1eec76bea34d3a edk2-20230825-2048.btrh9.src.rpm.06
0bf620251e4866d74152d40f9b9842e0121042b4afd095c591a90c21ae702cd4 edk2-20230825-2048.btrh9.src.rpm.07
51181f6974c7af23314dad412626817d9975b715af8effce99fee96f6c990b39 edk2-20230825-2048.btrh9.src.rpm.08
8447debca2c9b2ba5d24b96712ec6380ba3e16d69d2778f15b8c1c0505c0273d qemu-8.1.2-2048.btrh9.src.rpm.01
4d17ada1a087d2fc9a0a6387ee25f3ccc4196899843d5f9fbb62c8ea0b74148d qemu-8.1.2-2048.btrh9.src.rpm.02
3c934fdea3f44d9780615e39cde8033cd2791ec882e29256f065d31bc6a12d80 qemu-8.1.2-2048.btrh9.src.rpm.03
8d8efc4d4a0488993f27e7c91c3e1e8179a7a7a83560ad5fb1c3a42be841cd99 qemu-8.1.2-2048.btrh9.src.rpm.04
3ca8b5c4100e5d46550d04a512775957b919310028b69d79879e86db5c5470c3 qemu-8.1.2-2048.btrh9.src.rpm.05
cbefc71d61a737d7c41947641e9ec378c22d357cfad4622951404633dd002807 qemu-8.1.2-2048.btrh9.src.rpm.06
0d9b834cd1e67398341d91b72887f0a35d7da81c67aedbc48186860d2382e1f8 qemu-8.1.2-2048.btrh9.src.rpm.07
0a04fadc03f57af98752d0f3805150444528bfb577038a7c4dce7a24a11d8b46 qemu-8.1.2-2048.btrh9.src.rpm.08
08a6f95b19d7c27364afde60402e6948caae44fda32f62f28eceef6fc8110952 qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.01
e71cec352a05722356f2c46da7124a5b36977515ac0c24a24ceeefb9129b1c04 qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.02
6acc41f30ca3307cc1ff621c47e72afefae93918158c5cfe91e667b8f7c62f3f qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.03
15d72e6a8af0c3f9e4ecf1487adac1c32b9ee850fa578372b293e6622392ccfa qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.04
fa554015d8e40a00090dd7a0e0edc88caff5bdde7ba38c65f80ec8676e7442ce qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.05
8b9262f12dadbb7ce292baf06bb7daa203c89453632d75b29781b60ec580d00d qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.06
4ad7f4229b39fe5c02193e6aa3b60378d5a6361b5c318fa345ac83fb0203a8da qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.07
57cb9d55898c428a8e74c6e25747b20295f47b89236e95bb689f7a2382030eac qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.08
ec9d3cd66252c7fb3d5bd429abf149b01f99f779ce6d9fcca1ccdbc5bb0df758 depends/SDL2_image-2.6.3-1.el9.x86_64.rpm
ac34c5b5f0afeee5eea7a90354f3c72445a7cdad8ce734d292927109e5a8ee4b depends/SDL2_image-debuginfo-2.0.5-6.el9.remi.x86_64.rpm
dc6beb96db55cb35d94495122c7a40e8707aafce4b385e889d649cd0b3c034b2 depends/SDL2_image-debugsource-2.0.5-6.el9.remi.x86_64.rpm
Expand Down Expand Up @@ -620,27 +643,3 @@ d3d6874bd0bf782151af8b6c6fd9b99e2f776dda1574b4451728358300090949 depends/usbred
9b6d488565301311ee641ac7817f4db9f0469c67bb05ad7728eb564bd8d60a11 depends/vala-debuginfo-0.48.19-1.el9.x86_64.rpm
07eb8a56e378db616d97d56a550dd21975488f1f8dbe64e073ef3d35fd164589 depends/vala-debugsource-0.48.19-1.el9.x86_64.rpm
b1c6b96e0bcae38d51a9ca6f7d07075e7d9b1995fe54664abff84313d15d733b depends/valadoc-debuginfo-0.48.19-1.el9.x86_64.rpm
cdc68ea2a99ba94330c4297ada41fd5e63421523a6effdf0469bd9eeb7d0f84b edk2-20230825-2048.btrh9.src.rpm.01
b869a431f0ecb80454403a5894c044689ee06b3fd02b698efbb5ada7c0531ec1 edk2-20230825-2048.btrh9.src.rpm.02
7f994d79ea8d8299d11676867e3a6407a85e6e41b31dcfd20d90e93bcc54df20 edk2-20230825-2048.btrh9.src.rpm.03
949274b8a56f2ed3ae39a8dec6ec631d150502235ca88ef246e9309dc72bd99d edk2-20230825-2048.btrh9.src.rpm.04
0059e940ce2ec522ea16169e75541038bb1d9f7a4b08d27b0972082e029a5d46 edk2-20230825-2048.btrh9.src.rpm.05
3852bbc0bd98139e8dee649ac670a71687b7474852ab5efb8c1eec76bea34d3a edk2-20230825-2048.btrh9.src.rpm.06
0bf620251e4866d74152d40f9b9842e0121042b4afd095c591a90c21ae702cd4 edk2-20230825-2048.btrh9.src.rpm.07
51181f6974c7af23314dad412626817d9975b715af8effce99fee96f6c990b39 edk2-20230825-2048.btrh9.src.rpm.08
8447debca2c9b2ba5d24b96712ec6380ba3e16d69d2778f15b8c1c0505c0273d qemu-8.1.2-2048.btrh9.src.rpm.01
4d17ada1a087d2fc9a0a6387ee25f3ccc4196899843d5f9fbb62c8ea0b74148d qemu-8.1.2-2048.btrh9.src.rpm.02
3c934fdea3f44d9780615e39cde8033cd2791ec882e29256f065d31bc6a12d80 qemu-8.1.2-2048.btrh9.src.rpm.03
8d8efc4d4a0488993f27e7c91c3e1e8179a7a7a83560ad5fb1c3a42be841cd99 qemu-8.1.2-2048.btrh9.src.rpm.04
3ca8b5c4100e5d46550d04a512775957b919310028b69d79879e86db5c5470c3 qemu-8.1.2-2048.btrh9.src.rpm.05
cbefc71d61a737d7c41947641e9ec378c22d357cfad4622951404633dd002807 qemu-8.1.2-2048.btrh9.src.rpm.06
0d9b834cd1e67398341d91b72887f0a35d7da81c67aedbc48186860d2382e1f8 qemu-8.1.2-2048.btrh9.src.rpm.07
0a04fadc03f57af98752d0f3805150444528bfb577038a7c4dce7a24a11d8b46 qemu-8.1.2-2048.btrh9.src.rpm.08
08a6f95b19d7c27364afde60402e6948caae44fda32f62f28eceef6fc8110952 qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.01
e71cec352a05722356f2c46da7124a5b36977515ac0c24a24ceeefb9129b1c04 qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.02
6acc41f30ca3307cc1ff621c47e72afefae93918158c5cfe91e667b8f7c62f3f qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.03
15d72e6a8af0c3f9e4ecf1487adac1c32b9ee850fa578372b293e6622392ccfa qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.04
fa554015d8e40a00090dd7a0e0edc88caff5bdde7ba38c65f80ec8676e7442ce qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.05
8b9262f12dadbb7ce292baf06bb7daa203c89453632d75b29781b60ec580d00d qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.06
4ad7f4229b39fe5c02193e6aa3b60378d5a6361b5c318fa345ac83fb0203a8da qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.07
57cb9d55898c428a8e74c6e25747b20295f47b89236e95bb689f7a2382030eac qemu-user-debuginfo-8.1.2-2048.btrh9.x86_64.rpm.08

0 comments on commit 5ed9efd

Please sign in to comment.