Tried to make clearOnSuspend work.#57
Tried to make clearOnSuspend work.#57ams-tschoening wants to merge 2 commits intophpvirtualbox:developfrom
Conversation
Sadly upstream is very silent and has not released a new version which supports VirtualBox 5.1, supports PHP 7.1 or fixes bugs. In the meantime the community has created patches which are collected in the github projects bugtracker and pull requests. This unofficial version cherry picks the useful stuff of it. Highlights of unofficial phpvirtualbox 5.1-1: * based on git commit 65ebced (latest commit from May 19, 2016) * Patch to support Virtualbox 5.1 phpvirtualbox/phpvirtualbox#22 * Fix argument count mismatches revealed by PHP 7.1 phpvirtualbox/phpvirtualbox#24 * Make decryption of images/VMs work by not providing a password ID phpvirtualbox/phpvirtualbox#55 * Tried to make clearOnSuspend work phpvirtualbox/phpvirtualbox#57 PR: ports/220171 Submitted By: rozhuk.im With hat: vbox@ (kind of) git-svn-id: svn+ssh://svn.freebsd.org/ports/head@446746 35697150-7ecd-e111-bb59-0022644237b5
Sadly upstream is very silent and has not released a new version which supports VirtualBox 5.1, supports PHP 7.1 or fixes bugs. In the meantime the community has created patches which are collected in the github projects bugtracker and pull requests. This unofficial version cherry picks the useful stuff of it. Highlights of unofficial phpvirtualbox 5.1-1: * based on git commit 65ebced (latest commit from May 19, 2016) * Patch to support Virtualbox 5.1 phpvirtualbox/phpvirtualbox#22 * Fix argument count mismatches revealed by PHP 7.1 phpvirtualbox/phpvirtualbox#24 * Make decryption of images/VMs work by not providing a password ID phpvirtualbox/phpvirtualbox#55 * Tried to make clearOnSuspend work phpvirtualbox/phpvirtualbox#57 PR: ports/220171 Submitted By: rozhuk.im With hat: vbox@ (kind of)
|
Without running it, it looks reasonable to me. What do you mean by "doesn't seem to work"? Are you saying that the underlying OS call doesn't work as expected? |
|
I don't know where the problem actually is, that is why I provided the PR for review. "doesn't work" really only means that I'm forced to always enter the password, while according to the docs of VirtualBox that shouldn't be necessary IF my changes would be correct. So either I'm doing something wrong somewhere or yes, the argument might be ignored by VirtualBox for some reason. But I'm somewhat sure that I tested it without phpVirtualBox on the shell and that worked and I think it is more likely that I'm doing something wrong as well. |
|
Cool. Thanks. I'll try to test this patch separately to master. :-) |
This is related to #56 and tries to make
clearOnSuspendwork, but doesn't seem to work for some reason. I've chosen the approach to provide that flag per password, because it makes implementation easier and simply seems more in line with the used API and commandline: One password, one flag.https://www.virtualbox.org/manual/ch09.html#diskencryption-startvm
https://www.virtualbox.org/sdkref/interface_i_console.html#afa62b003141e327ec7845446498ae87b