私的AI研究会 > OpenVINOer
USB 機器の使用できる仮想環境 VirtualBox に OpenVINO™ Toolkitをインストールする。
Windows10 環境下の VirtualBox でのメモと発生したエラー・メッセージの分析などを忘備録として残しておく。
仮想ディスクを「可変サイズのストレージ」にすると、一度使用した領域は確保されたままとなり、ゲストOSでファイルを削除しても仮想ディスクの容量は減らない。
エクスポートの前に仮想ディスク容量を圧縮しておくとイメージファイルサイズを小さくできる。
■ ホストOS:Windows10 / ゲストOS:Ubuntu20.04 の場合の手順
$ sudo dd if=/dev/zero of=zero bs=4k
$ sudo rm zero
> cd C:\Program Files\Oracle\VirtualBox > VBoxManage.exe list hdds : UUID: 689905d9-985f-4c94-93f1-67fd3b692f47 Parent UUID: base State: created Type: normal (base) Location: E:\VirtualBox\ubuntu-vbox_2021_4_mas\ubuntu-vbox_2021_4_mas-disk001.vdi Storage format: vdi Capacity: 262144 MBytes Encryption: disabled :
> VBoxManage.exe modifyhd 689905d9-985f-4c94-93f1-67fd3b692f47 --compact 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Intel® Advanced Technologies | Core™ i7-1185G7 | Core™ i3-1115G4 | Core™ i5-10210U | Core™ i7-6700 | Celeron® J4005 | Core™ i7-2620M | Core™ i5-520M | Pentium® E6500 |
Hyper-Threading Technology | Yes | Yes | Yes | Yes | No | Yes | No | Yes |
Virtualization Technology (VT-x) | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes |
Virtualization Technology for Directed I/O (VT-d) | Yes | Yes | Yes | Yes | Yes | Yes | Yes | No |
VT-x with Extended Page Tables (EPT) | Yes | Yes | Yes | Yrs | Yes | Yes | Yes | - |
OS | Core™ i7-1185G7 | Core™ i3-1115G4 | Core™ i5-10210J | Core™ i7-6700 | Celeron® J4005 | Core™ i5-2620M | Pentium® E6500 |
Ubuntu 20.04LTS | 〇 | ↓ | 〇 | ↓ | 〇 | ↓ | ↓ |
Windows10 Hyper-V | 〇 | 〇 | 〇 | × | |||
Windows10 VirtualBox | 〇 | 〇 | 〇 | 〇 | |||
OpenVINO™ 2021.3 | 〇 | 〇 | 〇 | 〇 | 〇 | 〇 | × |
****************************************************************** * FATAL ERROR: * * This OpenCV build doesn't support current CPU/HW configuration * * * * Use OPENCV_DUMP_CONFIG=1 environment variable for details * ****************************************************************** Required baseline features: ID= 2 (SSE) - OK ID= 3 (SSE2) - OK ID= 4 (SSE3) - OK ID= 5 (SSSE3) - OK ID= 6 (SSE4.1) - OK ID= 8 (POPCNT) - NOT AVAILABLE ID= 7 (SSE4.2) - OK terminate called after throwing an instance of 'cv::Exception' what(): OpenCV(4.5.2-openvino) ../opencv/modules/core/src/system.cpp:626: error: (-215:Assertion failed) Missing support for required CPU baseline features. Check OpenCV build configuration and required CPU/HW setup. in function 'initialize' /opt/intel/openvino_2021/deployment_tools/demo/utils.sh: 11 行: 8754 中止 (コアダンプ) "$@" Error on or near line 198; exiting with status 1
USB Configuration You must enable a USB 3.0 controller and create USB whitelist filters for the virtual machine. The USB 3.0 feature requires the VirtualBox Extension Pack. Shut down the virtual machine With the virtual machine selected on the VirtualBox Manager: Open Settings -> USB Check “Enable USB Controller” Check “USB 3.0 (xHCI) Controller” Add a new USB filter with Vendor ID: 03e7 The other filter fields can be blank. Add a new USB filter with Vendor ID: 040e The other filter fields can be blank.
※ OpenVINO™「2021.4」版ではこのエラーは解消された。(2021/0811 更新 )
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0 DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0 DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0 [setupvars.sh] OpenVINO environment initialized mizutu@ubuntu2004dk-vbox:~$
$ vainfo libva info: VA-API version 1.10.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_10 DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument Assuming 131072kB available aperture size. May lead to reduced performance or incorrect rendering. get chip id failed: -1 [22] param: 4, val: 0 libva error: /opt/intel/mediasdk/lib64/iHD_drv_video.so init failed libva info: va_openDriver() returns 18 vaInitialize failed with error code 18 (invalid parameter),exit
$ vainfo libva info: VA-API version 1.10.0 libva info: User environment variable requested driver 'iHD' libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_10 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.10 (libva 2.6.0) vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.4.5 (74e2f11) vainfo: Supported profile and entrypoints VAProfileNone : VAEntrypointVideoProc VAProfileNone : VAEntrypointStats VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Simple : VAEntrypointEncSlice VAProfileMPEG2Main : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264Main : VAEntrypointFEI VAProfileH264Main : VAEntrypointEncSliceLP VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileH264High : VAEntrypointFEI VAProfileH264High : VAEntrypointEncSliceLP VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264ConstrainedBaseline: VAEntrypointFEI VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileVP8Version0_3 : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointEncSlice VAProfileHEVCMain : VAEntrypointFEI VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointEncSlice VAProfileVP9Profile0 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD
Install Intel® Distribution of OpenVINO™ toolkit for Linux* より抜粋 (機械翻訳)