Page 1 of 1

Need hint

Posted: 31. May 2016, 17:56
by myhobby
Situation:

Running 5.0.20 headless for years now. Recently upgraded from 0.18 to 0.20 and after reboot everything worked for days. Using phpVirtualbox to control my machines. Everything is working great (If it works)
After a reboot I have vbox running as root and all my machines are unchanged at the same place, same attributes. Virtualbox.xml is in /home/vbox/.config/VirtualBox with owner vbox and unchanged. Vbox services are running as root.
Phpvirtualbox does NOT show my previous machines.. (It feels like virtualbox.xml is not found)

I've had it before (I think) and I'm not sure anymore if Vbox need to run as user vbox..... Any ideas anybody ?

Re: Need hint

Posted: 31. May 2016, 18:29
by socratis
myhobby wrote:Running 5.0.20 headless for years now.
You are lying, sir!
5.0.20 has only been out for 34 days! You can't be possibly be running it for years!
:lol: Just joking man...
myhobby wrote:I have vbox running as root
Big bad mistake. VirtualBox is a user-land application and it definitely does not need you to be root.
myhobby wrote:Virtualbox.xml is in /home/vbox/.config/VirtualBox ... It feels like virtualbox.xml is not found
VirtualBox reads its configuration files (including the existence or not of a VM) from the user's config directory. If you run it as root, well it looks at the root's directory, not at /home/vbox/. Switch to running as the user that installed the VMs (I guess it is 'vbox').
myhobby wrote:Phpvirtualbox does NOT show my previous machines
You'll need to ask them for support. If you have the problem with the plain-vanilla, original VirtualBox, we can talk about it, otherwise, ask the phpVirtualBox forums for assistance...

Re: Need hint

Posted: 31. May 2016, 19:54
by myhobby
I'm almost sure that running Virtualbox not with user Vbox is the issue. Will give that a try right now! Thanks so far for your help

Re: Need hint

Posted: 31. May 2016, 20:35
by myhobby
I just finished a reinstallation of virtualbox via Yum and repo. Reboot and everything is back on track............Will make a note for this one, so in case it happens again.

Up and running !

Re: Need hint

Posted: 31. May 2016, 23:44
by socratis
myhobby wrote:I just finished a reinstallation of virtualbox via Yum and repo.
Just one quickie. The 'yum' and 'repo' indicates that you're most probably installing the distro-based VirtualBox. If you run into problems in the future, neither the unofficial build, nor phpVirtualBox are going to be supported here.