Open klukaszczyk opened 4 years ago
6.1 is now out... Support would be veeery welcome :-)
Clicking on any virtual machine in the web UI gives following error with VirtualBox 6.1:
Method 'ns1:IMachine_getVRAMSize' not implemented: method name or namespace not recognized
Thus, phpvirtualbox is currently unusable with VirtualBox 6.1
Changed WSDL. In new SDK VRAMSize is property of Class IGraphicsAdapter.
it's need to modify endpoints/lib/vboxconnector.php
to work.
instruction from here How to update to 6.0.10 - SharedFolder #185
current sdk - https://download.virtualbox.org/virtualbox/6.1.0/VirtualBoxSDK-6.1.0-135406.zip
Hi cesium147, Thx for patch, but it doesn't seem to work for me. I get an error : Function ("IMachine_getGraphicsAdapter") is not a valid method for this service
Details in attached file.
I get an error : Function ("IMachine_getGraphicsAdapter") is not a valid method for this service
@klukaszczyk
mkdir ~/src
cd ~/src
wget https://download.virtualbox.org/virtualbox/6.1.0/VirtualBoxSDK-6.1.0-135406.zip
unzip VirtualBoxSDK-6.1.0-135406.zip
mv sdk sdk-6.1.0
git clone https://github.com/phpvirtualbox/phpvirtualbox.git
cd phpvirtualbox
cp -v ../sdk-6.1.0/bindings/webservice/vboxweb.wsdl endpoints/lib/vboxweb-6.1.wsdl
cp -v ../sdk-6.1.0/bindings/webservice/vboxwebService.wsdl endpoints/lib/vboxwebService-6.1.wsdl
after these apply my quickfix patch v0.3
Can you please create a fork with all the necessary patches correctly applied? I think that would help many people, thanks!
@cesium147 Unfortunately it didn't help. I'm still have the same error. Could you as suggest @Polve create a fork with all patched files ?
Hi, I found the problem. In addition to the instructions sent by @cesium147 you need to modify variable PHPVBOX_VER in file /endpoints/lib/config.php as follows: define('PHPVBOX_VER', '6.1-0'); After that everything work like a charm
Rewrite PHPVBOX_VER not help bc /endpoints/lib/vboxwebService-6.1.wsdl
is not present
Oh i see now, this sdk is need to be downloaded
Thanks @cesium147 for your PR, I hope it will be merged soon!
I get an error : Function ("IMachine_getGraphicsAdapter") is not a valid method for this service
@klukaszczyk
mkdir ~/src cd ~/src wget https://download.virtualbox.org/virtualbox/6.1.0/VirtualBoxSDK-6.1.0-135406.zip unzip VirtualBoxSDK-6.1.0-135406.zip mv sdk sdk-6.1.0 git clone https://github.com/phpvirtualbox/phpvirtualbox.git cd phpvirtualbox cp -v ../sdk-6.1.0/bindings/webservice/vboxweb.wsdl endpoints/lib/vboxweb-6.1.wsdl cp -v ../sdk-6.1.0/bindings/webservice/vboxwebService.wsdl endpoints/lib/vboxwebService-6.1.wsdl
after these apply my quickfix patch v0.3
Hi i got same error. i try your phpvirtualbox-a84a1ea251d999da605baa06e9440a1b62e2fa14 from 15.12.i try modify in connector. $m->createSharedFolder($s['name'],$s['hostPath'],(bool)$s['writable'],(bool)$s['autoMount']); to $m->createSharedFolder($s['name'],$s['hostPath'],(bool)$s['writable'],(bool)$s['autoMount'],$s['autoMountPoint']); not work for me. fix v0.3 it`s correct name or you mean v0.4? where i watch v0.3 fix thanks.
Hi @tasteeeeee You need to apply quickfix patch v0.4 by @cesium147 or use complete solution from fork https://github.com/cesium147/phpvirtualbox
Work well thanks, but after install extend puck for vrde, vms cant start :)
Could you merge then/create a pull request?
its not a problem phpvirtualbox , its a problem virtualbox, vms cant start from console too
VBoxManage: error: Invalid entry in the device registration structure. (VERR_PDM_INVALID_DEVICE_REGISTRATION) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
Have been successfully working with solution by @cesium147 using the 6.1-0 branch. Just noticed that taking snapshots in phpvirtualbox do not work. Taking a snapshot shows the dialog asking for name and description, then briefly the spinning wheel, and that's all. No snapshot taken. Web developer console remains silent about potential reason, no error thrown either. Taking snapshots with VBoxManage on the command line works, though.
I can confirm, snapshooting does not work. it's just a no-op.
When taking a snapshot with command line, it promptly appears in the GUI under snapshots. Restoring the snapshot also works. It looks like just taking a snapshot does not work. How to debug this?
Hi @tasteeeeee You need to apply quickfix patch v0.4 by @cesium147 or use complete solution from fork https://github.com/cesium147/phpvirtualbox
Hello people. I apologize for my ignorance. How do I apply the patch? I am confused by the post. Doesn't the "complete solution" have the files updated? I've tried several ways but I get: SoapFault Object ( [message: protected] => Method 'ns1: IMachine_getVRAMSize' not implemented: method name or namespace not recognized
Thanks in advance!
... How do I apply the patch?
I'm stuck in the same situation ... Is it enough replacing (old)/adding (new) files in the same path where I find old ones?
As of today the current develop branch will give you working VirtualBox 6.1 support. @klukaszczyk, I think this issue can be closed. Happy testing.
Please send all your ♥ to @cesium147.
WOW! it works. Extreme <3 @cesium147 Thank you guys!!!!!!! I no longer must xterm xorg over ssh putty to manage the system. You've made a major difference in my life, thank you!
p.s. had to reboot vboxwebsrv, then works instantly.
I updated all requested files but now, when I try to access phpVirtualbox from browser (Chrome, as usual), I get this error:
There was an error obtaining the list of registered virtual machines from VirtualBox. Make sure vboxwebsrv is running and that the settings in config.php are correct. ------------------------------- Details: readyState: "4" responseText: "" status: "500" statusText: "Internal Server Error"
Any suggestion?
@finger65 How do you mean update all requested files? Make a backup of your existing phpvirtualbox installation and thereby empty the web folder. You download current develop branch at https://github.com/phpvirtualbox/phpvirtualbox/archive/develop.zip and unpack it into your web folder. Copy the config from your old phpvirtualbox installation into this directory. You also need to update VirtualBox to Version 6.1 and make sure that vboxwebsrv is running properly.
And please ignore instructions to update whatever files from this ticket. The current develop branch of phpvirtualbox perfectly supports VirtualBox 6.1. Someone please close this issue. @h6w? There's also dozens of other issues that could be closed because they're obsolete.
And please ignore instructions to update whatever files from this ticket. Got it!
Now it works fine, thanx!!
One general recommendation is to clear browser cache. phpvirtualbox does not correctly set last-modified headers for all resources, so in most cases this happens after any update.
I think we should close this issue. I can't do this.
@uschindler Can you open another issue regarding the last-modified headers? That sounds like a bug to me.
This issue will be closed once the 6.1 version is released which will be Feb 14 if we don't see any more major issues before then. :-)
the latest development release works almost, except that shared folder is causing a issue
readyState: "4" responseText: "" status: "500" statusText: "Internal Server Error"
@maxcalandrelli is this something you could look into?
Any plans for a formal release for supporting VB 6.1?
Hello Everyone, I hope all is ok ! What about the support for the latest VirtualBox version - 6.1.6 r137129 (Qt5.6.2) for Win 10 ? Best, cegepgim1001
There's no release, but just download the master branch as zip. Works fine since several months.
There's no release, but just download the master branch as zip. Works fine since several months.
Thank you very much for your prompt reply Uwe, and I am sorry to be late with mine. Now it is working fine ! Best, Asen
Hello again everyone, After installing the newest version from github, the phpvirtualbox is on, working, and I see a preview of the pcs started. My "console"'s icon is blured though, and cannot really open a virtual pc. Could you give a hand with this one, please? Best, Asen
There's no release, but just download the master branch as zip. Works fine since several months.
@uschindler you mean the develop (or the default) branch, right?
Yes, the develop branch. It does have a couple of known faults with Shared Folders and Private Networks that have kept back the release but it otherwise works.
@cegepgim1001
Hello again everyone, After installing the newest version from github, the phpvirtualbox is on, working, and I see a preview of the pcs started. My "console"'s icon is blured though, and cannot really open a virtual pc. Could you give a hand with this one, please? Best, Asen
You should use a dedicated terminal to connect to the virtual machine. If its not possible, because of network connections, configure the vm to use the rdp server of virtualbox and connect to the vm using "microsoft remote desktop" or any other rdp client.
The problem is because of the extension pack, uninstall it, as root or as a normal user, depending on the case, and then lift the virtual machine, you will see that it does not happen again.
If another error occurs, reinstall VirtualBox and it will not cause more problems.
Greetings of Uruguay
And remember to install the extension pack that is the same version as your virtualbox
Example: VirtualBox 6.1.10 = Adition Extension Pack 6.1.0
Hi, Please add support for VirtualBox 6.1. Currently released version is RC1. More information here: https://forums.virtualbox.org/viewtopic.php?f=15&t=95711