You are not logged in.

#1 2022-09-01 02:37:05

Mr_Dumpling
Member
Registered: 2022-09-01
Posts: 2

[SOLVED] Running Vulkan on VirtualBox (VMware GPU)

Hello, I've recently installed Arch through a VirtualBox (Windows 11 Host) and have wanted to work with bevy, a game engine built in rust which utilizes Vulkan. However attempting to use any of the examples provided by the bevy repo results in the same error, namely:

Running `target/debug/bevy_temp`
2022-09-01T02:14:07.541309Z  INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1    
2022-09-01T02:14:07.557217Z ERROR wgpu_hal::vulkan::instance: GENERAL [Loader Message (0x0)]
	setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config    
2022-09-01T02:14:07.557313Z ERROR wgpu_hal::vulkan::instance: 	objects: (type: INSTANCE, hndl: 0x556ee2be6200, name: ?)    
2022-09-01T02:14:07.557346Z ERROR wgpu_hal::vulkan::instance: enumerate_adapters: Initialization of a object has failed    
thread 'main' panicked at 'Unable to find a GPU! Make sure you have installed required drivers!', /home/doubl/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render-0.8.1/src/renderer/mod.rs:103:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

More specifically, running vulkaninfo yeilds:

ERROR: [Loader Message] Code 0 : loader_get_json: Failed to open JSON file /usr/share/vulkan/icd.d/nv_vulkan_wrapper.json
ERROR: [Loader Message] Code 0 : setup_loader_term_phys_devs:  Failed to detect any valid GPUs in the current config
ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.3.217/vulkaninfo/vulkaninfo.h:231:vkEnumeratePhysicalDevices failed with ERROR_INITIALIZATION_FAILED

Looking around online there are mixed responses for to what to do in this case. From what I can tell, Vulkan does not support VMware's GPU, and I am not able to use passthrough to give Arch direct access to a GPU with current VirtualBox versions.
I would love to hear that I messed up somewhere along my research into this issue and I'm just missing a driver or package. If that isn't the case, what options do I have for making this work?

Last edited by Mr_Dumpling (2022-09-01 19:56:43)

Offline

#2 2022-09-01 09:10:34

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,721

Re: [SOLVED] Running Vulkan on VirtualBox (VMware GPU)

From what I can tell, Vulkan does not support VMware's GPU

It's the other way around, gpu hw/drivers need to support vulkan .

https://wiki.archlinux.org/title/Vulkan … :_lavapipe would be  an option .
performance will depend largely on how powerful your cpu is.
(latest version is  conformant.)

You may find https://github.com/bevyengine/bevy/issues/413 interesting/useful .


Welcome to archlinux forums.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-09-01 19:58:34

Mr_Dumpling
Member
Registered: 2022-09-01
Posts: 2

Re: [SOLVED] Running Vulkan on VirtualBox (VMware GPU)

Thank you for the welcome, that appears to work like a charm!

Offline

Board footer

Powered by FluxBB