install virtualbox
This commit is contained in:
parent
f78e75b5f0
commit
6de634d623
1 changed files with 13 additions and 3 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -50,9 +50,18 @@ RUN dnf install -y ${KERNEL} ${KERNEL}-devel-matched
|
|||
RUN dnf remove -y kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra kernel-tools kernel-tools-libs
|
||||
|
||||
RUN wget https://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo
|
||||
RUN dnf install -y chkconfig
|
||||
|
||||
RUN dnf install VirtualBox-7.2 -y
|
||||
RUN /sbin/vboxconfig
|
||||
RUN dnf install VirtualBox-7.2 -y && \
|
||||
KVER=$(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" ${KERNEL}) && \
|
||||
for mod in vboxdrv vboxnetflt vboxnetadp; do \
|
||||
make -C /lib/modules/${KVER}/build M=/usr/share/virtualbox/src/vboxhost/${mod} \
|
||||
KERN_VER=${KVER} CONFIG_MODULE_COMPRESS_GZIP= CONFIG_MODULE_COMPRESS_XZ= \
|
||||
CONFIG_MODULE_COMPRESS_ZSTD= -j$(nproc) modules; \
|
||||
make -C /lib/modules/${KVER}/build M=/usr/share/virtualbox/src/vboxhost/${mod} \
|
||||
KERN_VER=${KVER} modules_install; \
|
||||
done && \
|
||||
depmod ${KVER}
|
||||
|
||||
# Install Negativo17 Nvidia driver
|
||||
RUN dnf install -y dkms-nvidia nvidia-driver nvidia-persistenced opencl-filesystem libva-nvidia-driver
|
||||
|
|
@ -117,6 +126,7 @@ RUN printf '[connection]\nwifi.powersave=2\n' > /usr/lib/NetworkManager/conf.d/d
|
|||
COPY etc /etc
|
||||
COPY usr /usr
|
||||
|
||||
RUN systemctl enable vboxdrv
|
||||
RUN systemctl enable waydroid-choose-intel-gpu.service
|
||||
|
||||
# Disable SELinux
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue