Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried to make clearOnSuspend work. #57

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ams-tschoening
Copy link
Contributor

This is related to #56 and tries to make clearOnSuspend work, 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.

VBoxManage controlvm "uuid|vmname" addencpassword "id" "password" [--removeonsuspend "yes|no"]

https://www.virtualbox.org/manual/ch09.html#diskencryption-startvm
https://www.virtualbox.org/sdkref/interface_i_console.html#afa62b003141e327ec7845446498ae87b

uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jul 27, 2017
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
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request Jul 27, 2017
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)
@h6w
Copy link
Collaborator

h6w commented Oct 26, 2017

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?

@ams-tschoening
Copy link
Contributor Author

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.

@h6w
Copy link
Collaborator

h6w commented Oct 26, 2017

Cool. Thanks. I'll try to test this patch separately to master. :-)

svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this pull request Jan 10, 2024
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants