OBS Studio 虛擬相機在虛擬機器上無法運作 (v4l2loopback-dkms)

OBS Studio 虛擬相機在虛擬機器上無法運作 (v4l2loopback-dkms)

我目前正在嘗試設置OBS Studio 中的虛擬相機在我的 Ubuntu 20.04 虛擬機器(DigitalOcean Droplet)上安裝v4l2loopback-dkms模組。然而,雖然OBS軟體中出現了虛擬相機按鈕,但點擊它沒有任何作用,如這裡所述堆疊溢位問題。以下是我安裝模組時發生的情況的日誌v4l2loopback

ramy@opal-cafe:~$ sudo apt -y install v4l2loopback-dkms v4l2loopback-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed: [ABRIDGED]
Suggested packages: [ABRIDGED]
The following NEW packages will be installed: [ABRIDGED]
0 upgraded, 38 newly installed, 0 to remove and 65 not upgraded.
Need to get 37.6 MB of archives.
After this operation, 173 MB of additional disk space will be used [ABRIDGED]
Fetched 37.6 MB in 1s (33.1 MB/s)               
Extracting templates from packages: 100%
[ABRIDGED]
Setting up build-essential (12.8ubuntu1.1) ...
Setting up v4l2loopback-dkms (0.12.3-1ubuntu0.4) ...
Loading new v4l2loopback-0.12.3 DKMS files...
Building for 5.4.0-107-generic
Building initial module for 5.4.0-107-generic
Can't load /var/lib/shim-signed/mok/.rnd into RNG
139665634772288:error:2406F079:random number generator:RAND_load_file:Cannot open file: ../crypto/rand/randfile.c:98:Filename=/var/lib/shim-signed/mok/.rnd
Generating a RSA private key
............................................................+++++
...............................+++++
writing new private key to '/var/lib/shim-signed/mok/MOK.priv'
-----
EFI variables are not supported on this system
/sys/firmware/efi/efivars not found, aborting.
Done.

v4l2loopback.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.0-107-generic/updates/dkms/

depmod...

DKMS: install completed.
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Processing triggers for man-db (2.9.1-1) ...

以不同的方式卸載並重新安裝v4l2loopback模組和 OBS Studio 幾次後都無濟於事,並且使用sudo modprobe v4l2loopback,我嘗試了通過禁用安全啟動的建議這個方法。但是,當我嘗試使用 檢查安全啟動狀態時mokutil --sb-state,遇到以下錯誤:

EFI variables are not supported on this system.

其他建議的禁用安全啟動的方法是從 BIOS 中停用它,但我不確定如何存取它,因為這是一個虛擬機器(我正在使用帶有 Gnome 桌面的 xrdp 來獲取 GUI)。如果有人對我下一步可以做什麼有任何建議,請告訴我 - 我對 Ubuntu 還很陌生,正在盲目地嘗試。

在此新增後續內容:當我運行時sudo modprobe v4l2loopback,我收到此錯誤:

modprobe: ERROR: could not insert 'v4l2loopback': Unknown symbol in module, or unknown parameter (see dmesg)

相關內容