Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VirtualBox, unexpected exit code 1(0x1)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1856
Location: PB, Germany

PostPosted: Mon Jan 24, 2022 8:48 am    Post subject: VirtualBox, unexpected exit code 1(0x1) Reply with quote

Hi,

recently I can't start any VM anymore and can't start any new created VM:

Code:
Failed to open a session for the virtual machine Windows 7 Pro.

The virtual machine 'Windows 7 Pro' has terminated unexpectedly during startup with exit code 1 (0x1).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {85632c68-b5bb-4316-a900-5eb28d3413df}


What is missing here?
    Kernel: 5.10.76-gentoo-r1
    app-emulation/virtualbox-6.1.28-r1
    app-emulation/virtualbox-additions-6.1.28
    app-emulation/virtualbox-extpack-oracle-6.1.28
    app-emulation/virtualbox-modules-6.1.28

app-emulation/virtualbox-guest-additions is only required inside guests?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3950

PostPosted: Mon Jan 24, 2022 10:27 am    Post subject: Reply with quote

Hi
What is the output of
Code:

ls ~/.config/VirtualBox

Does it happen with all guests or only win7?
_________________
:)
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1856
Location: PB, Germany

PostPosted: Mon Jan 24, 2022 11:20 am    Post subject: Reply with quote

Code:
ls ~/.config/VirtualBox
compreg.dat  selectorwindow.log  selectorwindow.log.1  VBoxSVC.log  VBoxSVC.log.1  VBoxSVC.log.2  VirtualBox.xml  VirtualBox.xml-prev  xpti.dat

All guests, also new created VMs.
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3950

PostPosted: Mon Jan 24, 2022 11:25 am    Post subject: Reply with quote

Plz try
Code:

mv  ~/.config/VirtualBox/VirtualBox.xml ~/.config/VirtualBox/VirtualBox.xml-current
mv  ~/.config/VirtualBox/VirtualBox.xml-prev ~/.config/VirtualBox/VirtualBox.xml

and try relaunching VM
If this doesnt help plz try reemerging VBox followed by
Code:

dispatch-conf

Or downgrade to previous version of VBox.
Are the VBox modules loading properly?
_________________
:)
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23100

PostPosted: Mon Jan 24, 2022 4:31 pm    Post subject: Reply with quote

Is there anything interesting in dmesg when this fails? What changed just before this started failing? If you unload the VirtualBox modules, does qemu/kvm work?
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Tue Jan 25, 2022 4:07 am    Post subject: Reply with quote

When was the last time VirtualBox worked properly? I don't see any reason to suspect virtualbox-6.1.28-r1 which is the current stable version. I've been running it without issue for the last six weeks or so.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1856
Location: PB, Germany

PostPosted: Tue Jan 25, 2022 9:15 am    Post subject: Reply with quote

alamahant wrote:
Code:

mv  ~/.config/VirtualBox/VirtualBox.xml ~/.config/VirtualBox/VirtualBox.xml-current
mv  ~/.config/VirtualBox/VirtualBox.xml-prev ~/.config/VirtualBox/VirtualBox.xml
That made it work. Thank you very much.
Looking at the diff there is only one line:
Code:
diff VirtualBox.xml VirtualBox.xml-current
11a12
>       <ExtraDataItem name="GUI/GroupDefinitions/" value="m=2015c668-7d85-404c-8937-3558ce302e3e"/>

What is the reason for this new line introduced which breaks all VMs?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770


Last edited by Massimo B. on Wed Jan 26, 2022 8:09 am; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3950

PostPosted: Tue Jan 25, 2022 12:34 pm    Post subject: Reply with quote

Glad it worked out.
Quote:

What is the reason for this new line introduced which breaks all VMs?


Nasty VirtualBox.
Maybe you should bring it up with them.
Maybe also file a bug report in our Gentoo bugs.
_________________
:)
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 3007
Location: Edge of marsh USA

PostPosted: Tue Jan 25, 2022 4:34 pm    Post subject: Reply with quote

Lord have mercy. That line in my VirtualBox.xml (and not in VirtualBox.xml-prev) reads:
Code:
<ExtraDataItem name="GUI/GroupDefinitions/" value="n=GLOBAL,m=11990160-c988-4e7a-f893-78d93f580d37,m=19236436-deef-483b-a87e-d60dde61f45b,m=fdfbee48-81ea-43b4-9d5f-7497d9810bb4,m=bb6f3ae9-7b7e-48bd-9337-d38c2c1a8c4f,m=ca5d5a20-a8bd-4182-87fa-6079f62d6a0d,m=0f52a218-7c9b-4b42-beec-64f29a9e5b5d"/>

Both files show the same date/time. There have been no rebuilds since Jan 5 and I use it every day. Both files are written to whenever VirtualBox application is closed. It looks like a fingerprint to me.

Are my VirtualBox files being manipulated remotely by Oracle?
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1856
Location: PB, Germany

PostPosted: Wed Jan 26, 2022 8:38 am    Post subject: Reply with quote

Talking with the #vbox@OFTC experts, I need to correct all this. The issue is not based on that config file. Moving back my configuration, it still works. Must be something related to the kernel modules.
I currently have 3 modules loaded: vboxnetadp vboxnetflt vboxdrv
Who did load these modules? Comparing with the Wiki I don't have a /etc/modules-load.d/virtualbox.conf. But the app-emulation/virtualbox-modules provides /usr/lib/modules-load.d/virtualbox.conf. Is that generally used at boot?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3950

PostPosted: Wed Jan 26, 2022 10:48 am    Post subject: Reply with quote

Yes
It is read by /etc/init.d/modules init script.
Code:

find_modfiles()
{
   local dirs="/usr/lib/modules-load.d /run/modules-load.d /etc/modules-load.d"
   local basenames files fn x y
   for x in $dirs; do
      [ ! -d $x ] && continue
      for y in $x/*.conf; do
         [ -f $y ] && basenames="${basenames}\n${y##*/}"
      done
   done
   basenames=$(printf "$basenames" | sort -u)
   for x in $basenames; do
      for y in $dirs; do
         [ -r $y/$x ] &&
            fn=$y/$x
      done
      files="$files $fn"
   done
   echo $files
}

_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum