VirtualBox 5.1.10_112026_el7 headless + phpvirtualbox problem.

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Valera
Posts: 1
Joined: 30. May 2017, 12:40

VirtualBox 5.1.10_112026_el7 headless + phpvirtualbox problem.

Post by Valera »

I'm using phpvirtualbox 5.0.5 running under vbox user to control VirtualBox 5.1.10_112026_el7 on CentOS 7.

Code: Select all

ps aux | grep vbox
vbox      1006  0.1  0.0 211068   444 ?        S     2016 380:06 /usr/lib/virtualbox/VBoxXPCOMIPCD
vbox      1013  0.3  0.1 2160040 52408 ?       Sl    2016 874:53 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
vbox      1214  0.1  0.0 2321784 18640 ?       Sl   Mar31  87:37 /usr/lib/virtualbox/vboxwebsrv --background -H 127.0.0.1
root      2856  0.0  0.0 187524  2328 pts/0    S    13:33   0:00 su vbox
vbox      2857  0.0  0.0 115384  2076 pts/0    S    13:33   0:00 bash
vbox      2931  3.2  0.1 2081268 62544 ?       Sl   13:34   0:52 /usr/lib/virtualbox/VBoxHeadless --comment vm02 --startvm f8c69f3a-3818-48ea-b8f6-75fcee0625bf --vrde config
vbox      3489  2.3  0.2 2086944 76044 ?       Sl   13:47   0:20 /usr/lib/virtualbox/VBoxHeadless --comment vm03 --startvm ccb04b3c-1ceb-4757-9a35-0cbb3f52eb67 --vrde config
vbox      3899  0.0  0.0 151056  1840 pts/0    R+   14:01   0:00 ps aux
vbox      3900  0.0  0.0 112648   964 pts/0    R+   14:01   0:00 grep --color=auto vbox
vbox      5283 11.0  4.8 3350864 1589468 ?     Sl   May15 2342:24 /usr/lib/virtualbox/VBoxHeadless --comment vm05 --startvm c3f1e8f9-0d8d-485a-bffe-5c3c5e780706 --vrde config
vbox      6295  8.1 12.8 5917528 4161940 ?     Sl   May02 3235:59 /usr/lib/virtualbox/VBoxHeadless --comment vm01 --startvm 8e42afc4-b74f-4c6a-b6ff-b4f6b532f596 --vrde config
vbox      6351  7.1  6.2 3842032 2017664 ?     Sl   May15 1509:30 /usr/lib/virtualbox/VBoxHeadless --comment vm04 --startvm a1c4c361-0f00-4d0b-9c3a-5f4c66727d16 --vrde config
vbox      7822  0.0  0.0 210980  1632 ?        S    May26   0:58 /usr/lib/virtualbox/VBoxXPCOMIPCD
vbox      7827  0.0  0.0 764972  7964 ?        Sl   May26   3:07 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
vbox      7862  4.9 10.9 5702880 3569592 ?     Sl   May26 316:54 /usr/lib/virtualbox/VBoxHeadless --comment vm01 --startvm 8e42afc4-b74f-4c6a-b6ff-b4f6b532f596 --vrde config
vbox      8634  0.0  0.0 412280   508 ?        Sl   Apr06   1:01 /usr/lib/virtualbox/vboxwebsrv -b
vbox     16814  0.0  0.0 412280   508 ?        Sl   Mar16   1:23 /usr/lib/virtualbox/vboxwebsrv -b
vbox     16878  0.0  0.0 412280   492 ?        Sl   Mar16   1:27 /usr/lib/virtualbox/vboxwebsrv -b
vbox     16934  0.0  0.0 412280   496 ?        Sl   Mar16   1:26 /usr/lib/virtualbox/vboxwebsrv -b
vbox     17657  0.9  5.6 3323060 1820960 ?     Sl   May16 186:16 /usr/lib/virtualbox/VBoxHeadless --comment vm06 --startvm f755cb4f-1e15-42de-8a08-16c2fa6af601 --vrde config
vbox     21022  1.1  5.1 3188448 1685008 ?     Sl   Apr21 654:52 /usr/lib/virtualbox/VBoxHeadless --comment vm07 --startvm 7c4fb160-ab79-49b9-918a-72d0922765d4 --vrde config
vbox     23564 21.3 15.5 6761460 5037148 ?     Sl   May16 4248:38 /usr/lib/virtualbox/VBoxHeadless --comment vm08 --startvm 517210e4-804d-4868-8865-e86ab7b36955 --vrde config
vbox     23902  1.1  3.1 2588360 1034520 ?     Sl   May16 232:41 /usr/lib/virtualbox/VBoxHeadless --comment vm09 --startvm 61cc07ee-55e6-4402-b9f9-f170d59afb9a --vrde config
vbox     24616  0.0  0.0 412280   492 ?        Sl   Mar20   1:23 /usr/lib/virtualbox/vboxwebsrv -b
vbox     28545  1.3  4.4 6028200 1452060 ?     Sl   Mar22 1390:47 /usr/lib/virtualbox/VBoxHeadless --comment vm10 --startvm 1e42c115-3289-4511-a69a-3b7eb8d5ed41 --vrde config
I have 3 physical virtualbox servers and using multiple servers configuration in phpvirtualbox.

A couple of days ago I tried to run a backup script (from vbox user) and it failed as it ran vboxmanage list runningvms and found nothing!

At the same time vms ARE running and I can see them in phpvirtualbox interface, connect to them & etc.

Now the weird part:

I stopped one of them using poweroff in cli:

Code: Select all

su vbox
VBoxManage controlvm "vm01" poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Then started it through phpvirtualbox interface and the machine became visible in cli:

Code: Select all

su vbox
vboxmanage list runningvms
"vm01" {8e42afc4-b74f-4c6a-b6ff-b4f6b532f596}
But now in the phpvirtualbox interface it shows the machine state as "Stopped"!

If I try to start it from there, it says:

Code: Select all

VirtualBox error: rc=0x80bb0007 The machine 'vm01' is already locked by a session (or being locked or unlocked) (0x80bb0007)
So I stopped the vm from the cli & started it from the phpvirtualbox interface.
The progress bar on the bottom of the page froze at

Code: Select all

0% Creating process for virtual machine "vm01" (headless)
But the vm showed up as a running one in cli:

Code: Select all

su vbox
vboxmanage list runningvms
"vm01" {8e42afc4-b74f-4c6a-b6ff-b4f6b532f596}
But it stull has a powered off state in phpvirtualbox interface!!! :(

Everything seems to be running from the vbox user, so I really don't get what's going on here. Please help me to bring this stuff back to normal.

Thanks!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: VirtualBox 5.1.10_112026_el7 headless + phpvirtualbox problem.

Post by socratis »

I'm sorry, but phpVirtualBox is a program that relies on VirtualBox but modifies its configuration files in unknown ways to us. It is not supported on these VirtualBox user forums, they have their own support channels. If you are having this problem with a standalone version of VirtualBox, then we can continue this discussion.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply