Coder Social home page Coder Social logo

phpvirtualbox's Introduction

About

phpVirtualBox is from 2017 maintained by Smart Guide Pty Ltd (tudor at smartguide dot com dot au)

with support from various contributors (see https://github.com/phpvirtualbox/phpvirtualbox/graphs/contributors)

Originally Copyright (C) 2015 Ian Moore (imoore76 at yahoo dot com)

FREE, WITHOUT WARRANTY:

All files of this program (phpVirtualBox) are distributed under the terms contained in the LICENSE.txt file in this folder unless otherwise specified in an individual source file. By using this software, you are agreeing to the terms contained therein. If you have not received and read the license file, or do not agree with its conditions, please cease using this software immediately and remove any copies you may have in your possession.

Installation from Zip file

  1. Download zip file from GitHub project site: https://github.com/phpvirtualbox/phpvirtualbox/archive/master.zip

  2. Unzip the zipfile into a folder accessible by your web server

  3. Rename config.php-example to config.php and edit as needed.

Read the wiki for more information : https://github.com/phpvirtualbox/phpvirtualbox/wiki

Post installation

Default login is username: admin password: admin

Please report bugs / feature requests to GitHub https://github.com/phpvirtualbox/phpvirtualbox/issues

Password Recovery

Rename the file recovery.php-disabled to recovery.php, navigate to it in your web browser, and follow the instructions presented.

phpvirtualbox's People

Contributors

adam5wu avatar ams-tschoening avatar arthurfreycobraag avatar ashway83 avatar cesium147 avatar chotaire avatar chrjorgensen avatar clcain avatar der-eismann avatar h6w avatar imoore76 avatar krakentyio avatar mikedld avatar mylux avatar p-bo avatar remcodm avatar rozhuk-im avatar scootergrisen avatar stianvis avatar svetlana-t avatar thedisbo1125 avatar ti4luciano avatar tioigor96 avatar tom077 avatar twingg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phpvirtualbox's Issues

SF Bug:#55 VNC on IPv6

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/55/

When you start a VNC service for a VM, it works fine under IPv4 but only uses port 5900 on IPv6. If two VMs are using VNC on IPv6 with the same port and you attempt to connect to them, both VMs will crash.
Manually specifying the port does not fix the issue, it appears that 5900 is hard-coded.

Pointing Device in VM settings

VirtualBox GUI contains a dropdown menu in VM settings to select a pointing device. Please add this option to phpVirtualBox.

VM Settings > System > Motherboard > Pointing Device:

  • PS/2 Mouse
  • USB Tablet
  • USB Multi-Touch Tablet

These settings were available since at least VirtualBox 5.0, but probably even earlier.

A command for modifying pointing device via VBoxManage:
$ VBoxManage modifyvm --mouse <ps2|usb|usbtablet|usbmultitouch>

virtualbox-win-5.1.4-pointing-device

phpvirtualbox-5.0-5-no-pointing-device

SF Bug:#61 General communication failure on fresh image/install

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/61/

I am running phpVBOX on a freenas... whever i log in i get this message:
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.
The list of virtual machines will not begin auto-refreshing again until this page is reloaded.
(General communication failure)
I havent even touched anything yet, its a fresh default image from "http://download.freenas.org/jails/9.2/x64/freenas-virtualbox-4.3.12.tgz"

SF Bug:#64 SOAP Error Using VirtualBox 5.1.14 on Intel Xenon E5620

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/64/

So I installed the latest version of virtualbox 5.1.14 on Debian Jessie and there is a problem with phpvirtualbox. When I login I get a SOAP error see below

SoapFault Object
(
    [message:protected] => VirtualBox error: rc=0x80004005
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /usr/share/phpvirtualbox/endpoints/lib/vboxServiceWrappers.php
    [line:protected] => 4880
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /usr/share/phpvirtualbox/endpoints/lib/vboxServiceWrappers.php
                    [line] => 4880
                    [function] => __soapCall
                    [class] => SoapClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => IHost_getProcessorDescription
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [_this] => 444dc1d726f3481f-0000000000000002
                                            [cpuId] => 1
                                        )
                                )
                        )
                )
            [1] => Array
                (
                    [file] => /usr/share/phpvirtualbox/endpoints/lib/vboxconnector.php
                    [line] => 3394
                    [function] => getProcessorDescription
                    [class] => IHost
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 1
                        )
                )
            [2] => Array
                (
                    [file] => /usr/share/phpvirtualbox/endpoints/lib/vboxconnector.php
                    [line] => 951
                    [function] => remote_hostGetDetails
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                        )
                )
            [3] => Array
                (
                    [file] => /usr/share/phpvirtualbox/endpoints/api.php
                    [line] => 316
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => hostGetDetails
                            [1] => Array
                                (
                                    [0] => 
                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                )
                                                        )
                                                    [errors] => Array
                                                        (
                                                        )
                                                    [persist] => Array
                                                        (
                                                        )
                                                    [messages] => Array
                                                        (
                                                        )
                                                )
                                        )
                                )
                        )
                )
            [4] => Array
                (
                    [file] => /usr/share/phpvirtualbox/endpoints/api.php
                    [line] => 316
                    [function] => hostGetDetails
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => Array
                                                (
                                                    [responseData] => Array
                                                        (
                                                        )
                                                )
                                            [errors] => Array
                                                (
                                                )
                                            [persist] => Array
                                                (
                                                )
                                            [messages] => Array
                                                (
                                                )
                                        )
                                )
                        )
                )
        )
    [previous:Exception:private] => 
    [faultstring] => VirtualBox error: rc=0x80004005
    [faultcode] => SOAP-ENV:Client
    [detail] => stdClass Object
        (
            [RuntimeFault] => stdClass Object
                (
                    [resultCode] => -2147467259
                    [returnval] => 
                )
        )
)

My CPU is an Intel Xenon E5620. It looks like the code it bombing while trying to get the description of my CPU so I commented out line 4880 in vboxServiceWrappers.php and so that I can continue to use the interface. I don't know how to fix it and I believe it to be a bug.

phpvirtualbox

SF FR:#17 Add watchdog timer configuration option

Migrated from https://sourceforge.net/p/phpvirtualbox/feature-requests/17/

When creating a fixed size disk, VirtualBox will often lock up the entire system for several seconds. When this happens phpVirtualBox's watchdog thinks that an error has occurred and requests a page refresh. This results in an orphaned VM that doesn't show up in the web UI and must be manually removed. I can recreate this on CentOS 6 and Fedora 20 on different machines.
An option to increase the watchdog timer would be a simple fix. I manually increased the timer in eventlistener.js and the issue was resolved. I would be willing to submit a patch for a configuration option if you approve of this approach.

SF Bug:#62 phpvirtualbox-5.0-5/ bloking due to an ajax error

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/62/

When I conect with phpvirtualbox-5.0-5/ /usr/bin/vboxwebsrv service I get an ajax error
I can log with my account
Until now it all was working ok
I have several virtual machines in a Vitualbox headless host with vboxwebsrv running properly
Suddenly after taking a snapshot the interface freeze with the errors attached in the image
I tried restarting php/apache server
I tried restarting Vitualbox headless host
but nothing worked and I don't have access to my virtual machines. I can't do anyhing.

2error phpvirtualbox-5 0-5

Has development ceased?

The maintainer for the project seems to have gone quiet the last few months and appears to have not logged in for around 6 months on either Github or Sourceforge. I do wonder if they're still around?

SF Bug:#53 Chrome JS error

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/53/

VM170:44
Uncaught TypeError: Cannot read property 'contextMenu' of undefined
(anonymous function) @ VM170:44
(anonymous function) @ jquery-1.11.2.min.js:2
m.extend.globalEval @ jquery-1.11.2.min.js:2
m.fn.extend.domManip @ jquery-1.11.2.min.js:3
m.fn.extend.append @ jquery-1.11.2.min.js:3
callback @ phpvirtualbox.js:4503
j @ jquery-1.11.2.min.js:2
k.fireWith @ jquery-1.11.2.min.js:2
x @ jquery-1.11.2.min.js:4
b @ jquery-1.11.2.min.js:4
Chrome 46.0.2490.86 m (Windows 10)
FireFox works fine.

Stuck loading settings

When I try to open the settings for a VM, running or not it get stuck in an endless loading screen.
I'm not sure how to diagnose the problem.

Guess I should add, phpvirtualbox-5.0.3, virtualbox-5.0.4, archlinux

SF FR:#14 Expand folder on single click

The file browers requires a double click to expand folders. This does not work on mobile devices like my android phone. Would it be possible to create a configuration option to expand folders on single click?

SF Bug:#56 After update to ubuntu server 16.04 - phpvirtualbox is not working.

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/56/

Hello. I have a Problem. When I tried to login, I have "An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox's folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).
Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message." ERROR... I tried to downgrade from php7 to php5.6 - but have error about SOAP. And I understand, that php5 not supported by ubuntu till 16.04.
Thanks for your product, I hope - you can try to check this issue.

2

Remote Console does'nt works

Hi everyone.

In my Server Machine with Open Suse 42.3 and virtualbox 5.1.26_SUSE, I Installed Oracle Extensión but is not possible start the virtual machine with remote display option enabled, this show "Could not find the VirtualBox Remote Desktop Extension library".

Do you know about that?

Best Regards!

PD: phpVirtualbox is a nice tool, good works!!!

Operation History

Is there anyway to make phpvirtualbox retain a history of operations that have been performed? Also it looks like if you reload the page the currently inprogress operations are lost, e.g. restoring an OVA

SF Bug:#54 Disconnect reason: E: TCP: SECURITY_ERROR Error #2048

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/54/

Hello
I recently started using phpvirtualbox.
It first it all worked well, but now my guest OS throws this error.
Problem:
When i use console or RDP, it will give me an error, on console (website) it will give me the "Disconnect reason: E: TCP: SECURITY_ERROR Error #2048" message.
It used to work. Now it doesn't. I even used an older snapshot. Same error!
The server does still work. I can login with ssh. But I installed desktop on the server, slimmed down unity desktop that was slow as hell, was going to change to something else. 3D accelerations down work for ubuntu, but do for the windows guests.
Just so you know, I'm a student, programming. All my knowledge is self learned and very basic.
Host:
Ubuntu server 14.04
VirtualBox 5.0.14
phpVirtualBox 5.0-5 -/- VirtualBox 5.0.x compatible
Guest:
Ubuntu server 14.04 with slimmed down unity desktop (throws error)
Guest drives installed
Windows server 2012 (works)
guest drives installed

ss 2016-01-31 at 10 37 29

SF Bug:#57 Could not connect to host (http://127.0.0.1:18083/

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/57/

After updating my Synology NAS to the latest version phpvirtualbox doesn't seem to run any longer. I have tried reinstalling but this didn't solve the problem This is the error I keep getting:

Exception Object
(
    [message:protected] => Could not connect to host (http://127.0.0.1:18083/)
    [string:Exception:private] => 
    [code:protected] => 64
    [file:protected] => /var/services/web/phpvirtualbox/endpoints/lib/vboxconnector.php
    [line:protected] => 220
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /var/services/web/phpvirtualbox/endpoints/lib/vboxconnector.php
                    [line] => 5252
                    [function] => connect
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [1] => Array
                (
                    [file] => /var/services/web/phpvirtualbox/endpoints/lib/vboxconnector.php
                    [line] => 951
                    [function] => remote_vboxRecentMediaGet
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                        )

                )

            [2] => Array
                (
                    [file] => /var/services/web/phpvirtualbox/endpoints/api.php
                    [line] => 316
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => vboxRecentMediaGet
                            [1] => Array
                                (
                                    [0] => 
                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => Array
                                                        (
                                                            [responseData] => Array
                                                                (
                                                                )

                                                        )

                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                    [messages] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [3] => Array
                (
                    [file] => /var/services/web/phpvirtualbox/endpoints/api.php
                    [line] => 316
                    [function] => vboxRecentMediaGet
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => 
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => Array
                                                (
                                                    [responseData] => Array
                                                        (
                                                        )

                                                )

                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                            [messages] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
)

Location:http://127.0.0.1:18083/
I have also tried changing 127.0.0.1 to localhost.
My DSM version is DSM 6.0.1-7393 and I'm running a 1815+. Not sure what version I ran before updating. I have installed "VirtualBox_x86_64_5.0.20-106931-1".
I have seen more than a couple of posts concerning this issue. Maybe you have a solution that works?

SF FR:#12 Avoid cleartext passwords in config.php

Migrated from https://sourceforge.net/p/phpvirtualbox/feature-requests/12/

As described in https://code.google.com/p/phpvirtualbox/issues/detail?id=445 back at Google's Bugtracker used prior to the sourceforge transition, the fact that the password of the webservice user has to put in the config.php as clear text is "not a good idea", to say it polite.
Also described there is a way to get rid of the clear text password using 4 additional lines for ajax.php, changing 1 line in virtualboxconnector.php, and a few special steps.

SF FR:#21 Windows drive-/symlink-awareness

Migrated from https://sourceforge.net/p/phpvirtualbox/feature-requests/21/

phpVirtualBox is totally oblivious to the Windows directory structure. I've got phpVirtualBox working with IIS 8.5 and PHP 5.6 on Server 2012 R2 and when assigning an image to a DVD drive, the file picker shows '' as the root (C:). All my files and images are on the N: drive, and a symlink at C:\NDrive doesn't show up in the file picker; neither does it if I mount the drive under a folder at the same path.
As a non-PHP developer, is there any kind of recourse I have here? Using Windows for the first time in ages, I'm a little confused and upset at the loss of the all-encompassing directory structure I've come to love from *nix.
Thanks

SF Bug:#51 Virtual Media Manager

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/51/

Hi!
In phpVirtualBox 5.0.2 there is a problem in the Virtual Media Manager.
If you enter the Virtual Media Manager and then choose the copying of the hard disk, selecting the folder of new disk , phpVirtualBox doesnt see disks, except disk 'C: ' , but they exist. The situation is similar in expert mode: if you select the location folder of new disk phpVirtualBox 5.0.2 does not see the new hard disk except disk 'C: '

New repository?

Is this the new official repository for phpVirtualBox or is development still SF based?

SourceForge or GitHub?

I'm confused as to which repo is active at this point. Which are you going to be using going forward, Sourceforge or GitHub?

There's no mention of the GitHub repo on Sourceforge and there's no mention of the Sourceforge repo on GitHub.

Thanks

SF Bug:#39 Auto fill the empty block when previewWidth is > 180

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/39/

It seems that phpvirtualbox is set up to expect the items beside Preview are General and System. The default side of Preview (at least for the FreeBSD port is 180). This default width seems to cause everything to size/align nicely.
Setting the preview width to something larger than 180 it's possible there's a block of empty content. It would be nice if phpvirtualbox would auto fill thise content with the below setting rows (Display, Storage, Audio, etc.) makine the empty block go away and doesn't make you scroll down.
See the attached screen shot where preview width is set to 400:
...
var $previewWidth = 400;
...

screen shot 2015-08-01 at 9 09 22 pm

Error in phpvirtualbox.conf ???

The phpvirtualbox.conf file has "DirectoryIndex index.php"

However the only file in the root directory is index.html

Accessing the html file directly works and hence modifying the apache config file also works.

Problem with settings window in VirtualBox 5.0.x on x86 Linux host

On press OK button in Settings window, even if nothing has changed, i always get error box:
VirtualBox error: rc=0x80004001 Page fusion is only supported on 64-bit hosts (0x80004001)

Ubuntu 14.04.3 LTS
Linux vboxhost 3.13.0-62-generic #102-Ubuntu SMP Tue Aug 11 14:28:35 UTC 2015 i686 i686 i686 GNU/Linux

Error on decrypting encrypted VMs

I tested encryption of complete VMs using phpVirtualBox 5.1-0 and Virtual Box 5.1.22 and while the encryption seems to work as expected, decryption doesn't. If I uncheck the activation checkbox in the encryption tab, the inputs for cipher and new passwords are deactivated. After pressing OK, another dialog opens and asks for a password, which most likely is the formerly set encryption password. I input the password, press OK and a decryption progress bar is shown. Very few seconds afterwards the following error is shown. Decryption fails this way, the VMs and all attached disks stay encrypted.

The password and password identifier must be empty if the output should be unencrypted

I think the problem is that you seem to provide the password ID on decryption, which seems to be wrong according the code and docs. It's only a guess of course, but the old password is definitely needed and you dialogue asking for that password is showing the password ID as well. So I guess that is the problem.

In some circumstances it might be required to decrypt previously encrypted images.
This can be done in the GUI for a complete VM or using VBoxManage with the following command:

VBoxManage encryptmedium "uuid|filename" --oldpassword "file|-"

https://www.virtualbox.org/manual/ch09.html#diskencryption-encryption

As you can see, no password ID. Additionally, the code where the error is thrown:

if (task.mstrCipher.isNotEmpty())
{
[...]
}
else if (task.mstrNewPasswordId.isNotEmpty() || task.mstrNewPassword.isNotEmpty())
    throw setError(VBOX_E_INVALID_OBJECT_STATE,
                            tr("The password and password identifier must be empty if the output should be unencrypted"));

https://www.virtualbox.org/browser/vbox/trunk/src/VBox/Main/src-server/MediumImpl.cpp#L10056

clipboard01
clipboard02
error details.txt

I've created an issue on Sourceforge first, until I found this here.

Undefined function simplexml_load_string()

Every time I navigate to the index page I get an error and it mentions browsing to the config.php page, but that's blank. So I tailed my webserver's error log and it seems to be related to endpoints/lib/language.php file.

Heres the stack trace:

Stack trace:
#0 endpoints/language.php(15): __vbox_language->__construct()
#1 {main}
  thrown in endpoints/lib/language.php on line 73" while reading response header from upstream, client: 0.0.0.0, server: www.example.ovh, request: "GET endpoints/language.php?_=1510292459369 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php7-fpm.sock:", host: "www.example.ovh", referrer: "https://www.example.ovh/"

VirtualBox update seems to have broken PHPVirtualBox

Today I did an update on a CentOS server, and one of the updates happened to be an update to VirtualBox. Unfortunately this seems to have a conflict with phpvirtualbox.

Symptoms: can start, clone and move VMs, but cannot change them. Closing the dialog box there is a wheel that turns and then a time out. Inspecting the VM afterwards, one can see that the change was not registered. Thus there seems to be some lack of communication between the two.

SF Bug:#34 Minor UI Bug in Status Box Slider

Migrated from https://sourceforge.net/p/phpvirtualbox/bugs/34/

I'm running phpVirtualBox 4.3-1 with Virtual Box 4.3.20 (96996). I noticed that when using the slider to adjust the size of the status box at the bottom of the page, if it is moved all the way to the bottom of the browser window, the entire page is redrawn incorrectly (screenshot attached.) A reload of the page redraws correctly (with the slider back in the default position.) Tested in Firefox 34.0.5 and Pale Moon 24.7.2.

phpvbox

clearOnSuspend or removeonsuspend not supported for encrypted VMs/media.

I've tested with encrypted individual media and whole VMs and it seems that whenever I suspend a VM afterwards I'm forced to provide the password for an encrypted media again. Using VBoxManage one is able to provide some configuration to influence this behaviour:

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

I've debugged the code and found that support for removeonsuspend seems to be available under the keyword clearOnSuspend:

vboxconnector.php:

	public function remote_consoleAddDiskEncryptionPasswords($args) {
[...]
    	    try {
    	        $this->session->console->addDiskEncryptionPassword($creds['id'], $creds['password'], (bool)@$args['clearOnSuspend']);
    	        $response['accepted'][] = $creds['id'];
    		} catch (Exception $e) {
[...]
	}

The problem seems to be the JS, where no flag or such for clearOnSuspend is forwarded:

phpvirtualbox.js:

		/* Get passwords and start VM Logic */
		_getEncryptionPasswordsStartVM: function(vm, validIds) {
[...]
             // vboxVMActions.start._getEncryptionPasswordsStartVM(vm);
                $.when(vboxAjaxRequest('consoleAddDiskEncryptionPasswords',
                        {'vm':vm.id,'passwords':pwdata}))
[...]
		},

The dialogue for password entry is already missing some flag or such as well:

mediumEncryptionPasswords.html:

function vboxMediumEncryptionPasswordsGet() {
[...]
        encryptionPWs.push({
            'id': $(rowlist[i]).data('vboxEncryptionId'),
            'password': $(rowlist[i]).find('input').first().val()
        });
[...]
}

The interesting thing about the code is that clearOnSuspend is casted to bool and according the PHP docs, a missing value would be false, which would lead to the desired effect, that the password would be cached by VirtualBox. clearOnSuspend false is documented that way in the SDK as well:

clearOnSuspend Flag whether to clear the password on VM suspend (due to a suspending host for example). The password must be supplied again before the VM can resume.

https://www.virtualbox.org/sdkref/interface_i_console.html#afa62b003141e327ec7845446498ae87b

But in the end, it's simply not working as expected... I additionally hacked the code to get that thing working by providing some checkbox for clearOnSuspend in the dialogue, but that didn't work either. Not with true and false, not with 1 and 0 and not with yes and no like documented for VBoxManage. I'm going to provide a pull request for code review...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.