Skip to content

Add 6.0 support #136

Closed
Closed

Description

@hydrian

Add support for VirtualBox 6.0. It is currently in beta. Link for packages: http://download.virtualbox.org/virtualbox/6.0.0_BETA1/

Activity

  1. hydrian commented on Nov 8, 2018

    @hydrian
    Author

    I can be an early adopter once to coding is done.

  2. h6w commented on Nov 9, 2018

    @h6w
    Contributor

    Done! Pull from the develop tree. Thanks!

  3. hydrian commented on Nov 9, 2018

    @hydrian
    Author

    Pulled the most recent version and at least the version error is gone. I'll continue testing for other issues.

  4. tom077 commented on Nov 19, 2018

    @tom077
    Contributor

    In theory, we also need to upgrade phpvirtualbox/endpoints/lib/vboxServiceWrappers.php which is automaticaly generated by a script from virtualbox SDK.

  5. e-alfred commented on Jan 25, 2019

    @e-alfred

    @h6w Any chance to get support for different graphics cards now supported by Virtualbox into phpvirtualbox?

  6. derekschrock commented on Apr 21, 2019

    @derekschrock

    In theory, we also need to upgrade phpvirtualbox/endpoints/lib/vboxServiceWrappers.php which is automaticaly generated by a script from virtualbox SDK.

    Looks like this should be done for the current release as well. Best that I can tell we're lucky that anything changed or added since whatever version we have that breaks functionality.

    I'd assume we can just download the SDK file and plop down sdk/bindings/webservice/php/lib/vboxServiceWrappers.php to endpoints/lib/vboxServiceWrappers.php?

  7. trasherdk commented on Apr 21, 2019

    @trasherdk

    Well, doing a diff between vboxServiceWrappers.php on the current github dev version and sdk 6.0.4 version, tells me it's not that simple.

  8. derekschrock commented on Apr 21, 2019

    @derekschrock

    I can say that the missing (bool) casts are a problem.

  9. derekschrock commented on Apr 21, 2019

    @derekschrock

    I can say that the missing (bool) casts are a problem.

    However, this seems to be either the client's (phpvirtualbox) usage or vboxwebsrv not being able to convert a null to the proper boolean type. This was 'fixed' by 911952b.

    Looks like these might be unfixed methods:

    repos/phpvirtualbox/endpoints/lib/vboxconnector.php:                                            $m->mountMedium($name,$ma['port'],$ma['device'],(is_object($med) ? $med->handle : null),true);
    repos/phpvirtualbox/endpoints/lib/vboxconnector.php:                            $this->session->machine->attachDevice(trans($DVDbusType,'UIMachineSettingsStorage'),1,0,'DVD',null);
    repos/phpvirtualbox/endpoints/lib/vboxconnector.php:                    list($progress, $snapshotId) = $this->session->machine->takeSnapshot($args['name'], $args['description'], null);
    repos/phpvirtualbox/endpoints/lib/vboxconnector.php:                                    $this->session->machine->mountMedium($r['controller'],$r['port'],$r['device'],null,true);
    repos/phpvirtualbox/endpoints/lib/vboxconnector.php:            $this->session->machine->mountMedium($args['controller'],$args['port'],$args['device'],(is_object($med) ? $med->handle : null),true);
    

    phpvirtualbox is already using true/false so might as well do the right thing in the client code?
    At that point you should just be able drop the SDK file directly as new SDKs are released.

    Can phpvirtualbox support both 5 and 6 via a config.php var and include either vboxServiceWrappers5.php or vboxServiceWrappers6.php via https://github.com/phpvirtualbox/phpvirtualbox/blob/develop/endpoints/lib/vboxconnector.php#L123

  10. pasha1st commented on Apr 29, 2019

    @pasha1st
  11. jzedwards commented on May 30, 2019

    @jzedwards

    any planned release for 6.0.8? I can prob rollback to 6.0.6 to test, but if there is a 6.0.8 pending I would rather

  12. h6w commented on May 31, 2019

    @h6w
    Contributor

    Virtualbox doesn't make API changes between sub-point releases, so that means that phpvirtualbox only needs to release at every full point release. So 6.0.6 and 6.0.8 will work with the 6.0 release.

  13. easyyu commented on Jan 17, 2020

    @easyyu

    I have the same problem with installed virtual box v6.1.2.
    I tried to update the phpVirtualBox 6.0-0 -/- VirtualBox 6.0.x compatible with latest version but I getting the same error.
    What can I do to fix this?

  14. h6w commented on Feb 6, 2020

    @h6w
    Contributor

    Please try the current develop branch with Virtualbox 6.1. We've been focusing our efforts on getting that to a release state.

  15. easyyu commented on Feb 7, 2020

    @easyyu

    Please try the current develop branch with Virtualbox 6.1. We've been focusing our efforts on getting that to a release state.

    Yes..later I found.
    Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions