Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] VirtualBox failed to run for guests with USB controller 2/3 (Read 1309 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

[SOLVED] VirtualBox failed to run for guests with USB controller 2/3

Hello... I installed VirtualBox (VB) based on this. A couple of things I had to modify:
(1) I cannot find /etc/modules-load.d/modules.conf , but i do find /usr/lib/modules-load.d/modules.conf (but i do not think that is a problem?)
(2) vboxpci is missing - it is not in the list and even if i add in (or create that missing conf file for that matter) and rebuild, the module is still missing

Anyways, other than the missing vboxpci, everything gets installed ok and I can get VirtualBox to run, but ONLY for guest machines are NOT using USB controllers 2 or 3. I suspect the problem lies with the missing vboxpci, but I have no idea how to get that. Any help is appreciated! Thanks!

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #1
Sorry, forgot to include details for the error

Code: [Select]
The VM session was aborted.

Result Code:
NS_ERROR_FAILURE (0x80004005)

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #2
if you're newbie and you don't know what to do, read archlinux's wiki FIRST https://wiki.archlinux.org/index.php/VirtualBox

your linked artix's topic is really irrelevant!

my hint:
Code: [Select]
pacman -S virtualbox  virtualbox-guest-dkms  virtualbox-guest-iso   virtualbox-host-dkms

and install   virtualbox-ext-oracle from AUR


Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #3
I have done (installed) all that... I linked to that page because that was the 'closest' i could find related to my problem. Like I have said, I only have that error when trying to start guests with USB controller 2 or 3. All the vbox* kernel modules are loaded (although I cannot see vboxpci as mentioned in that link i gave in the original post).

The link you gave me is just general info on how to get VB to run. Thanks for trying to help, but I do not see how that can help me. But, what do i know...

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #4
For USB2/3 to work, you user needs to be a member of vboxusers as described here.

Besides this, you need to have the extensions installed and activated in Virtualbox. I haven't used the AUR package till now, simply download the extension from the downloads page and add it to virtualbox with the preferences dialog.

I had an similar issue showing the 'vm session aborted' message, i needed to reinstall the virtualbox-host-dkms.

@alium
Afaik you should never mix guest- and host-modules. On the vbox host virtualbox-guest-dkms should not be installed.

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #5
As a fair warning, the 5.8 kernel and VirtualBox are basically a disaster at the moment. Well for me, it completely locks up the entire system if I try to run it (USB controller doesn't even matter at that point). Some people seem to have gotten more benign bugs though. Maybe it applies to you. Related link: https://bbs.archlinux.org/viewtopic.php?id=258217

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #6
As a fair warning, the 5.8 kernel and VirtualBox are basically a disaster at the moment. Well for me, it completely locks up the entire system if I try to run it (USB controller doesn't even matter at that point). Some people seem to have gotten more benign bugs though. Maybe it applies to you. Related link: https://bbs.archlinux.org/viewtopic.php?id=258217
@Dudemanguy i noticed no problems (with USB2) in virtualbox and 5.8.3 (using linux-zen+dkms modules)

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #7
For USB2/3 to work, you user needs to be a member of vboxusers as described here.

Besides this, you need to have the extensions installed and activated in Virtualbox. I haven't used the AUR package till now, simply download the extension from the downloads page and add it to virtualbox with the preferences dialog.

I had an similar issue showing the 'vm session aborted' message, i needed to reinstall the virtualbox-host-dkms.

@alium
Afaik you should never mix guest- and host-modules. On the vbox host virtualbox-guest-dkms should not be installed.

1- i think my user is already in vboxusers and vboxsf groups - i'll have to check tomorrow on my work desktop, but i am quite sure of that
2- i install the aur package (had to modify pkgbuild to get the correct version 6.1.12) - the options for usb2/3 are grayed out otherwise
3- i tried rebuilding dkms (i am still curious about vboxpci because i saw some posts mentioning it, but the dkms never built that for me)
4- i did not install guest-modules (saved that for last and figured i do not need it since virtualbox was already running)
 
will have to wait until tomorrow morning to check the group thingy...

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #8
As a fair warning, the 5.8 kernel and VirtualBox are basically a disaster at the moment. Well for me, it completely locks up the entire system if I try to run it (USB controller doesn't even matter at that point). Some people seem to have gotten more benign bugs though. Maybe it applies to you. Related link: https://bbs.archlinux.org/viewtopic.php?id=258217

thanks for that link - i think i have that same issue, although virtualbox just spits out that vm session error thingy instead of freezing. so, i guess this may be a virtualbox issue....

Thanks.


Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #10
1- i think my user is already in vboxusers and vboxsf groups - i'll have to check tomorrow on my work desktop, but i am quite sure of that
...
will have to wait until tomorrow morning to check the group thingy...

ok... i got the group stuffs right - so, no  problem there.

i reviewed my VBox.log file and found error about 'VMSetError: Failed to load R0 module' (and one with ring-0 module). a quick search shows that it is also occurring in other distro with kernel 5.8.3 and vbox version 6.1.12 ... and it may not be a kernel issue coz a similar error is reported on win10...

just in case someone finds this useful...

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #11
Anybody affected by xhci_pci module missing, maybe by installing upd72020x-fw package solves the issue

Re: VirtualBox failed to run for guests with USB controller 2/3

Reply #12
Just to put a closure to this thread,  the latest virtualbox-6.1.14 fixed the issue. I am on latest kernel 5.8.6-artix1.

Re: [SOLVED] VirtualBox failed to run for guests with USB controller 2/3

Reply #13
Yup it seems to fix it for me too. Finally.