Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into live
Browse files Browse the repository at this point in the history
  • Loading branch information
vietchinh committed Nov 7, 2023
2 parents a03e8c9 + 5cc2891 commit 68a9b7e
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
recipe:
- recipe-ucore-zfs-light.yml
- recipe-ucore-zfs-light-lxd.yml
- recipe-ucore-zfs-light-hci-vgpu.yml
- recipe-kinoite-light.yml
- recipe-kinoite-light-bore-eevdf.yml
- recipe-kinoite-light-libvirt.yml
Expand Down
18 changes: 18 additions & 0 deletions config/recipe-ucore-zfs-light-hci-vgpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# image will be published to ghcr.io/<user>/<name>
name: ucore-zfs-rpm-podman-lxd
# description will be included in the image's metadata
description: Ucore minimal with zfs and lxd

# the base image to build on top of (FROM) and the version tag to use
base-image: ghcr.io/ublue-os/ucore-hci
image-version: stable-zfs # latest is also supported if you want new updates ASAP

# list of modules, executed in order
# you can include multiple instances of the same module
modules:

- from-file: recipe-ucore-zfs-light.yml

- type: script
scripts:
- vgpu.sh
1 change: 0 additions & 1 deletion config/recipe-ucore-zfs-light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ modules:
- moby-engine
- toolbox
- distrobox
- lzop
- mbuffer
- perl-Capture-Tiny
- perl-Config-IniFiles
Expand Down
40 changes: 40 additions & 0 deletions config/scripts/vgpu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/sh

set -oeux pipefail

cd /tmp

### BUILD nvidia

NVIDIA_VERSION="535.104"
ZIP_NAME="NVIDIA-GRID-Linux-KVM-${NVIDIA_VERSION}.06-535.104.05-537.13.zip"
DEVELOPMENT_PACKAGES="wget p7zip p7zip-plugins mscompress osslsigncode git kernel-devel unzip patch vulkan-loader"

rpm-ostree install "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm" "https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-$(rpm -E %fedora)-1.noarch.rpm"
# shellcheck disable=SC2086
rpm-ostree install ${DEVELOPMENT_PACKAGES} vulkan-loader

git clone --recursive https://github.com/VGPU-Community-Drivers/vGPU-Unlock-patcher.git -b ${NVIDIA_VERSION}

VGPU_FOLDER="vGPU-Unlock-patcher"

wget -q "https://github.com/justin-himself/NVIDIA-VGPU-Driver-Archive/releases/download/16.1/${ZIP_NAME}"
unzip ${ZIP_NAME} -d ${VGPU_FOLDER}
rm -f ${ZIP_NAME}

cd ${VGPU_FOLDER}

mv Guest_Drivers/* .
mv Host_Drivers/* .
mv Signing_Keys/* .

chmod +x patch.sh

./patch.sh general-merge

KERNEL_VERSION="$(rpm -q kernel-devel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"

./NVIDIA-Linux-x86_64-535.104.05-merged-vgpu-kvm-patched/nvidia-installer -s --kernel-source-path /usr/src/kernels/"${KERNEL_VERSION}" --no-systemd --dkms

cd ..
rm -rf ${VGPU_FOLDER}

0 comments on commit 68a9b7e

Please sign in to comment.